x_ite-node 2.0.34 → 2.1.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/package.json +12 -7
- package/src/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x_ite-node",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Pure Node.js Wrapper of X_ITE",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"release": "node build/release.js",
|
|
11
11
|
"test-script": "node tests/script.js",
|
|
12
|
-
"test": "
|
|
12
|
+
"test": "vitest tests --run"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -58,13 +58,18 @@
|
|
|
58
58
|
"node-localstorage": "^3.0.5",
|
|
59
59
|
"nogl": "^1.1.0",
|
|
60
60
|
"skia-canvas": "^3.0.8",
|
|
61
|
-
"x_ite": "^
|
|
61
|
+
"x_ite": "^16.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@eslint/js": "^10.0.1",
|
|
65
|
-
"eslint": "^10.
|
|
66
|
-
"globals": "^17.
|
|
67
|
-
"
|
|
68
|
-
"
|
|
65
|
+
"eslint": "^10.7.0",
|
|
66
|
+
"globals": "^17.7.0",
|
|
67
|
+
"shell-tools": "^1.1.9",
|
|
68
|
+
"vitest": "^4.1.10"
|
|
69
|
+
},
|
|
70
|
+
"allowScripts": {
|
|
71
|
+
"fsevents@2.3.3": true,
|
|
72
|
+
"skia-canvas@3.0.8": true,
|
|
73
|
+
"unrs-resolver@1.12.2": true
|
|
69
74
|
}
|
|
70
75
|
}
|
package/src/index.js
CHANGED
|
@@ -244,6 +244,7 @@ Object .defineProperties (global,
|
|
|
244
244
|
// classes
|
|
245
245
|
... Object .fromEntries ([
|
|
246
246
|
"Blob",
|
|
247
|
+
"DOMParser",
|
|
247
248
|
"FileReader",
|
|
248
249
|
"FontFace",
|
|
249
250
|
"MutationObserver",
|
|
@@ -404,7 +405,7 @@ HTMLCanvasElement .prototype .getContext = function (contextType, ... args)
|
|
|
404
405
|
// X_ITE
|
|
405
406
|
|
|
406
407
|
const
|
|
407
|
-
X3D = require ("x_ite"),
|
|
408
|
+
X3D = require ("x_ite"), // require ("../../x_ite/dist/x_ite"),
|
|
408
409
|
nogl = require ("nogl");
|
|
409
410
|
|
|
410
411
|
X3D .createBrowser = function (url, parameter)
|