Skip to content

Commit 46c0b5d

Browse files
authored
Merge pull request #20 from Applura/update-for-v4
Update to v4
2 parents df1569d + 58d5fc6 commit 46c0b5d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ file. Like so:
1212
<script type="importmap">
1313
{
1414
"imports": {
15-
"@applura/client": "https://cdn.applura.com/dist/js/client/v2.js"
15+
"@applura/client": "https://cdn.applura.com/dist/js/client/v4.js"
1616
}
1717
}
1818
</script>
1919
<link
2020
rel="preload"
2121
as="script"
22-
href="https://cdn.applura.com/dist/js/client/v2.js"
22+
href="https://cdn.applura.com/dist/js/client/v4.js"
2323
crossorigin
2424
/>
2525
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "A JavaScript client for Applura APIs",
66
"main": "index.js",
77
"scripts": {
8-
"build": "npx rollup index.js --config=rollup.config.cjs --file dist/v2.js",
8+
"build": "npx rollup index.js --config=rollup.config.cjs --file dist/v4.js",
99
"check": "npm run fmt -- --check && npm run lint && npm test",
1010
"test": "deno test --allow-net",
1111
"lint": "deno lint --rules-exclude=no-window",

rollup.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { nodeResolve } = require("@rollup/plugin-node-resolve");
22

33
module.exports = {
44
output: {
5-
file: "dist/v2.js",
5+
file: "dist/v4.js",
66
},
77
plugins: [nodeResolve()],
88
};

src/client_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Deno.test("Client", async (t) => {
135135
assertEquals(resource, undefined);
136136
assertEquals(
137137
problem.type,
138-
"https://docs.applura.com/client/v2/errors#UnexpectedContentTypeError",
138+
"https://docs.applura.com/client/v4/errors#UnexpectedContentTypeError",
139139
);
140140
// Get a good response.
141141
server.respondWith(
@@ -166,7 +166,7 @@ Deno.test("Client", async (t) => {
166166
assertEquals(resource.id, "200 resource");
167167
assertEquals(
168168
problem.type,
169-
"https://docs.applura.com/client/v2/errors#UnexpectedContentTypeError",
169+
"https://docs.applura.com/client/v4/errors#UnexpectedContentTypeError",
170170
);
171171
client.stop();
172172
});

src/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class LibraryError extends Error {
66
}
77
get detail() {
88
return {
9-
type: `https://docs.applura.com/client/v2/errors#${this.name}`,
9+
type: `https://docs.applura.com/client/v4/errors#${this.name}`,
1010
title: this.name,
1111
detail: this.message,
1212
};

0 commit comments

Comments
 (0)