@playcademy/sdk 0.0.1-beta.23 → 0.0.1-beta.24

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.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -291,7 +291,7 @@ function createUsersNamespace(client) {
291
291
  },
292
292
  remove: async (identifier, qty) => {
293
293
  const itemId = await resolveItemId(identifier);
294
- const res = await client["request"](`/inventory/spend`, "POST", { itemId, qty });
294
+ const res = await client["request"](`/inventory/remove`, "POST", { itemId, qty });
295
295
  client["emit"]("inventoryChange", {
296
296
  itemId,
297
297
  delta: -qty,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@playcademy/sdk",
3
+ "version": "0.0.1-beta.24",
3
4
  "type": "module",
4
- "version": "0.0.1-beta.23",
5
5
  "exports": {
6
6
  ".": {
7
7
  "import": "./dist/index.js",
@@ -14,25 +14,25 @@
14
14
  "types": "./dist/types.d.ts"
15
15
  }
16
16
  },
17
+ "main": "dist/index.js",
18
+ "module": "dist/index.js",
17
19
  "files": [
18
20
  "dist"
19
21
  ],
20
- "main": "dist/index.js",
21
- "module": "dist/index.js",
22
22
  "scripts": {
23
23
  "build": "bun build.js",
24
- "pub": "bun run build && bun run bump && bun publish --access public",
25
- "bump": "bunx bumpp --no-tag --no-push -c \"chore(@playcademy/sdk): release v%s\""
24
+ "bump": "bunx bumpp --no-tag --no-push -c \"chore(@playcademy/sdk): release v%s\"",
25
+ "pub": "bun run build && bun run bump && bun publish --access public"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@playcademy/types": "^0.0.1-beta.6",
29
29
  "@types/bun": "latest",
30
- "typescript": "^5.0.0",
31
- "yocto-spinner": "^0.2.1"
30
+ "typescript": "^5.7.2",
31
+ "yocto-spinner": "^0.2.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "drizzle-orm": "^0.42.0",
35
34
  "@playcademy/types": "latest",
35
+ "drizzle-orm": "^0.42.0",
36
36
  "typescript": "^5"
37
37
  }
38
38
  }