Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ file. Like so:
<script type="importmap">
{
"imports": {
"@applura/client": "https://cdn.applura.com/dist/js/client/v2.js"
"@applura/client": "https://cdn.applura.com/dist/js/client/v4.js"
}
}
</script>
<link
rel="preload"
as="script"
href="https://cdn.applura.com/dist/js/client/v2.js"
href="https://cdn.applura.com/dist/js/client/v4.js"
crossorigin
/>
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A JavaScript client for Applura APIs",
"main": "index.js",
"scripts": {
"build": "npx rollup index.js --config=rollup.config.cjs --file dist/v2.js",
"build": "npx rollup index.js --config=rollup.config.cjs --file dist/v4.js",
"check": "npm run fmt -- --check && npm run lint && npm test",
"test": "deno test --allow-net",
"lint": "deno lint --rules-exclude=no-window",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { nodeResolve } = require("@rollup/plugin-node-resolve");

module.exports = {
output: {
file: "dist/v2.js",
file: "dist/v4.js",
},
plugins: [nodeResolve()],
};
4 changes: 2 additions & 2 deletions src/client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Deno.test("Client", async (t) => {
assertEquals(resource, undefined);
assertEquals(
problem.type,
"https://docs.applura.com/client/v2/errors#UnexpectedContentTypeError",
"https://docs.applura.com/client/v4/errors#UnexpectedContentTypeError",
);
// Get a good response.
server.respondWith(
Expand Down Expand Up @@ -166,7 +166,7 @@ Deno.test("Client", async (t) => {
assertEquals(resource.id, "200 resource");
assertEquals(
problem.type,
"https://docs.applura.com/client/v2/errors#UnexpectedContentTypeError",
"https://docs.applura.com/client/v4/errors#UnexpectedContentTypeError",
);
client.stop();
});
Expand Down
2 changes: 1 addition & 1 deletion src/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class LibraryError extends Error {
}
get detail() {
return {
type: `https://docs.applura.com/client/v2/errors#${this.name}`,
type: `https://docs.applura.com/client/v4/errors#${this.name}`,
title: this.name,
detail: this.message,
};
Expand Down