@ianlucas/cs2-lib 5.4.0 → 5.5.0
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.
- package/dist/inventory.d.ts +1 -1
- package/dist/inventory.js +3 -2
- package/package.json +13 -12
package/dist/inventory.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare class CS2Inventory {
|
|
|
84
84
|
getAllAsBase(): CS2BaseInventoryItem[];
|
|
85
85
|
setAll(items: Map<number, CS2InventoryItem>): this;
|
|
86
86
|
size(): number;
|
|
87
|
-
move(): CS2Inventory;
|
|
87
|
+
move(options?: Partial<CS2InventorySpec>): CS2Inventory;
|
|
88
88
|
}
|
|
89
89
|
export declare class CS2InventoryItem extends CS2EconomyItem implements Interface<Omit<CS2BaseInventoryItem, "patches" | "stickers" | "storage">> {
|
|
90
90
|
private inventory;
|
package/dist/inventory.js
CHANGED
|
@@ -377,10 +377,11 @@ export class CS2Inventory {
|
|
|
377
377
|
size() {
|
|
378
378
|
return this.items.size;
|
|
379
379
|
}
|
|
380
|
-
move() {
|
|
380
|
+
move(options = {}) {
|
|
381
381
|
return new CS2Inventory({
|
|
382
382
|
...this.options,
|
|
383
|
-
economy: this.economy
|
|
383
|
+
economy: this.economy,
|
|
384
|
+
...options
|
|
384
385
|
}).setAll(this.items);
|
|
385
386
|
}
|
|
386
387
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ianlucas/cs2-lib",
|
|
3
|
-
"version": "5.4.0",
|
|
4
3
|
"description": "A TypeScript library for manipulating Counter-Strike 2 data",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"author": "Ian Lucas",
|
|
@@ -8,25 +7,25 @@
|
|
|
8
7
|
"type": "module",
|
|
9
8
|
"main": "dist/index.js",
|
|
10
9
|
"scripts": {
|
|
10
|
+
"docs": "typedoc --out docs src/index.ts",
|
|
11
11
|
"format": "prettier . --write",
|
|
12
12
|
"prepack": "([ -d dist ] && rm -rf dist); tsc",
|
|
13
13
|
"test": "jest",
|
|
14
14
|
"upgrade": "npx npm-check-updates@latest --target minor -u",
|
|
15
|
-
"
|
|
15
|
+
"update": "npm run cs2 && npm run item-generator && npm run item-generator-changelog",
|
|
16
16
|
"container-scraper": "tsx scripts/container-scraper.ts",
|
|
17
|
-
"
|
|
18
|
-
"item-generator-
|
|
17
|
+
"cs2": "tsx scripts/cs2.ts",
|
|
18
|
+
"item-generator-changelog": "tsx scripts/item-generator-changelog.ts",
|
|
19
19
|
"item-generator": "tsx scripts/item-generator.ts",
|
|
20
20
|
"non-legacy-paint-scraper": "tsx scripts/non-legacy-paints-scraper.ts",
|
|
21
21
|
"tint-graffiti-image-scraper": "tsx scripts/tint-graffiti-image-scraper.ts",
|
|
22
|
-
"tint-graffiti-name-generator": "tsx scripts/tint-graffiti-name-generator.ts"
|
|
23
|
-
"update-items": "npm run assets-downloader && npm run item-generator && npm run item-generator-diff"
|
|
22
|
+
"tint-graffiti-name-generator": "tsx scripts/tint-graffiti-name-generator.ts"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
|
-
"@ianlucas/depot-downloader": "^
|
|
27
|
-
"@ianlucas/vrf-decompiler": "^
|
|
25
|
+
"@ianlucas/depot-downloader": "^2.7.0",
|
|
26
|
+
"@ianlucas/vrf-decompiler": "^10.1.0",
|
|
28
27
|
"@types/jest": "^29.5.12",
|
|
29
|
-
"@types/node": "^18.19.
|
|
28
|
+
"@types/node": "^18.19.46",
|
|
30
29
|
"@types/node-fetch": "^2.6.11",
|
|
31
30
|
"cheerio": "^1.0.0",
|
|
32
31
|
"dotenv": "^16.4.5",
|
|
@@ -36,8 +35,10 @@
|
|
|
36
35
|
"node-fetch": "^2.7.0",
|
|
37
36
|
"prettier": "3.3.3",
|
|
38
37
|
"string-strip-html": "^13.4.8",
|
|
39
|
-
"ts-jest": "^29.2.
|
|
40
|
-
"tsx": "^4.
|
|
38
|
+
"ts-jest": "^29.2.5",
|
|
39
|
+
"tsx": "^4.19.0",
|
|
40
|
+
"typedoc": "^0.26.6",
|
|
41
41
|
"typescript": "^5.5.4"
|
|
42
|
-
}
|
|
42
|
+
},
|
|
43
|
+
"version": "5.5.0"
|
|
43
44
|
}
|