@4bitlabs/sci0 6.1.0 → 6.1.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-and-number-predicate.d.ts","names":[],"sources":["../../src/matchers/type-and-number-predicate.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"type-and-number-predicate.d.ts","names":[],"sources":["../../src/matchers/type-and-number-predicate.ts"],"mappings":";;;cAMa,QACX;EACE;EACA,OAAO,eAAe;MAEvB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { matchResourceNumber } from "./number-predicate.js";
|
|
2
|
+
import { matchResourceType } from "./type-predicates.js";
|
|
2
3
|
import { joinResourcePredicates } from "./utils.js";
|
|
3
4
|
//#region src/matchers/type-and-number-predicate.ts
|
|
4
5
|
const match = (criteria = {}) => {
|
|
@@ -9,7 +10,7 @@ const match = (criteria = {}) => {
|
|
|
9
10
|
}
|
|
10
11
|
if (criteria.type !== void 0) {
|
|
11
12
|
const set = Array.isArray(criteria.type) ? criteria.type : [criteria.type];
|
|
12
|
-
predicates.push(
|
|
13
|
+
predicates.push(matchResourceType(...set));
|
|
13
14
|
}
|
|
14
15
|
return joinResourcePredicates(...predicates);
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-and-number-predicate.js","names":[],"sources":["../../src/matchers/type-and-number-predicate.ts"],"sourcesContent":["import type { ResourceType } from '../models/resource-type.js';\nimport type { ResourceMapPredicate } from './resource-map-predicate.js';\nimport { joinResourcePredicates } from './utils.js';\nimport { matchResourceNumber } from './number-predicate.js';\n\nexport const match = (\n criteria: {\n number?: number | number[];\n type?: ResourceType | ResourceType[];\n } = {},\n): ResourceMapPredicate => {\n const predicates = [];\n if (criteria.number !== undefined) {\n const set = Array.isArray(criteria.number)\n ? criteria.number\n : [criteria.number];\n predicates.push(matchResourceNumber(...set));\n }\n\n if (criteria.type !== undefined) {\n const set = Array.isArray(criteria.type) ? criteria.type : [criteria.type];\n predicates.push(
|
|
1
|
+
{"version":3,"file":"type-and-number-predicate.js","names":[],"sources":["../../src/matchers/type-and-number-predicate.ts"],"sourcesContent":["import type { ResourceType } from '../models/resource-type.js';\nimport type { ResourceMapPredicate } from './resource-map-predicate.js';\nimport { joinResourcePredicates } from './utils.js';\nimport { matchResourceNumber } from './number-predicate.js';\nimport { matchResourceType } from './type-predicates.js';\n\nexport const match = (\n criteria: {\n number?: number | number[];\n type?: ResourceType | ResourceType[];\n } = {},\n): ResourceMapPredicate => {\n const predicates = [];\n if (criteria.number !== undefined) {\n const set = Array.isArray(criteria.number)\n ? criteria.number\n : [criteria.number];\n predicates.push(matchResourceNumber(...set));\n }\n\n if (criteria.type !== undefined) {\n const set = Array.isArray(criteria.type) ? criteria.type : [criteria.type];\n predicates.push(matchResourceType(...set));\n }\n\n return joinResourcePredicates(...predicates);\n};\n"],"mappings":";;;;AAMA,MAAa,SACX,WAGI,CAAC,MACoB;CACzB,MAAM,aAAa,CAAC;CACpB,IAAI,SAAS,WAAW,KAAA,GAAW;EACjC,MAAM,MAAM,MAAM,QAAQ,SAAS,MAAM,IACrC,SAAS,SACT,CAAC,SAAS,MAAM;EACpB,WAAW,KAAK,oBAAoB,GAAG,GAAG,CAAC;CAC7C;CAEA,IAAI,SAAS,SAAS,KAAA,GAAW;EAC/B,MAAM,MAAM,MAAM,QAAQ,SAAS,IAAI,IAAI,SAAS,OAAO,CAAC,SAAS,IAAI;EACzE,WAAW,KAAK,kBAAkB,GAAG,GAAG,CAAC;CAC3C;CAEA,OAAO,uBAAuB,GAAG,UAAU;AAC7C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4bitlabs/sci0",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Library for decoding and parsing assets from Sierra On-line's SCI-engine.",
|
|
5
5
|
"homepage": "https://github.com/32bitkid/sci.js/tree/main/libs/sci0#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@4bitlabs/readers": "^3.0.0",
|
|
37
37
|
"@4bitlabs/vec2": "^3.0.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "297c461cf9b826fea7f3dc4bec197fbdda8f2f14"
|
|
40
40
|
}
|