nirs4all 0.2.0 → 0.2.3
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/package.json +18 -3
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirs4all",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Portable nirs4all aggregate binding for JavaScript and WASM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -9,18 +9,22 @@
|
|
|
9
9
|
"default": "./src/index.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
+
"types": "./src/index.d.ts",
|
|
12
13
|
"files": [
|
|
13
14
|
"src",
|
|
14
15
|
"README.md",
|
|
15
16
|
"LICENSE"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
|
-
"test": "
|
|
19
|
+
"test": "npm run test:js && npm run typecheck",
|
|
20
|
+
"test:js": "node --test tests/*.test.js",
|
|
21
|
+
"test:v1-surface": "node --test tests/index.test.js tests/execution.test.js && npm run typecheck",
|
|
22
|
+
"typecheck": "tsc --project tsconfig.typecheck.json"
|
|
19
23
|
},
|
|
20
24
|
"license": "(CECILL-2.1 OR AGPL-3.0-or-later)",
|
|
21
25
|
"repository": {
|
|
22
26
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/GBeurier/nirs4all-
|
|
27
|
+
"url": "git+https://github.com/GBeurier/nirs4all-core.git",
|
|
24
28
|
"directory": "bindings/wasm"
|
|
25
29
|
},
|
|
26
30
|
"keywords": [
|
|
@@ -32,6 +36,17 @@
|
|
|
32
36
|
"dependencies": {
|
|
33
37
|
"yaml": "^2.9.0"
|
|
34
38
|
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"typescript": "5.9.3"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@nirs4all/datasets-wasm": "*",
|
|
44
|
+
"@nirs4all/methods-wasm": "*",
|
|
45
|
+
"dag-ml-data-wasm": "*",
|
|
46
|
+
"dag-ml-wasm": "*",
|
|
47
|
+
"nirs4all-formats-wasm": "*",
|
|
48
|
+
"nirs4all-io-wasm": "*"
|
|
49
|
+
},
|
|
35
50
|
"peerDependenciesMeta": {
|
|
36
51
|
"@nirs4all/methods-wasm": {
|
|
37
52
|
"optional": true
|
package/src/index.js
CHANGED
|
@@ -177,7 +177,7 @@ export function loadPipelineDefinition(source) {
|
|
|
177
177
|
const unsupported = portableClassNames(definition).filter((name) => !portableOperatorSet.has(name));
|
|
178
178
|
if (unsupported.length > 0) {
|
|
179
179
|
throw new Error(
|
|
180
|
-
`Pipeline uses operators outside the current nirs4all-
|
|
180
|
+
`Pipeline uses operators outside the current nirs4all-core portable subset: ${[...new Set(unsupported)].join(', ')}`,
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
|