@kirby-tools/licensing 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -50,7 +50,7 @@ function useLicense({
50
50
  throw new Error("Email and order ID are required");
51
51
  }
52
52
  const response = await api.post(`${apiNamespace}/register`, { email, orderId });
53
- if (!response?.ok) {
53
+ if (response?.status !== "ok") {
54
54
  throw new Error("Registration failed");
55
55
  }
56
56
  return true;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@kirby-tools/licensing",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "packageManager": "pnpm@9.3.0",
6
6
  "description": "Shared tooling for licensing in the Panel",
7
7
  "author": "Johann Schopplich <hello@johannschopplich.com>",
8
8
  "license": "MIT",
9
- "homepage": "https://github.com/kirby-tools/licensing#readme",
9
+ "homepage": "https://github.com/kirby-tools/licensing-panel#readme",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+https://github.com/kirby-tools/licensing.git"
12
+ "url": "git+https://github.com/kirby-tools/licensing-panel.git"
13
13
  },
14
14
  "bugs": {
15
- "url": "https://github.com/kirby-tools/licensing/issues"
15
+ "url": "https://github.com/kirby-tools/licensing-panel/issues"
16
16
  },
17
17
  "sideEffects": false,
18
18
  "exports": {