x_ite-node 2.0.34 → 2.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.
- package/package.json +13 -8
- package/src/index.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x_ite-node",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
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",
|
|
@@ -53,18 +53,23 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"atob": "^2.1.2",
|
|
55
55
|
"filereader": "^0.10.3",
|
|
56
|
-
"jsdom": "
|
|
56
|
+
"jsdom": "30.0.0",
|
|
57
57
|
"jsdom-global": "^3.0.2",
|
|
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.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@eslint/js": "^10.0.1",
|
|
65
|
-
"eslint": "^10.
|
|
66
|
-
"globals": "^17.
|
|
67
|
-
"
|
|
68
|
-
"
|
|
65
|
+
"eslint": "^10.8.0",
|
|
66
|
+
"globals": "^17.8.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
|
@@ -172,7 +172,7 @@ Object .defineProperties (window,
|
|
|
172
172
|
|
|
173
173
|
if (result)
|
|
174
174
|
{
|
|
175
|
-
// const mimeType = result [1] ||
|
|
175
|
+
// const mimeType = result [1] || "text/plain"";
|
|
176
176
|
|
|
177
177
|
let data = parsedURL .href .substring (result [0] .length);
|
|
178
178
|
|
|
@@ -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)
|
|
@@ -472,7 +473,7 @@ const glFunctions = Object .fromEntries ([
|
|
|
472
473
|
]
|
|
473
474
|
.map (name => [name, Function .prototype]));
|
|
474
475
|
|
|
475
|
-
X3D .Context .create = function (canvas,
|
|
476
|
+
X3D .Context .create = function (/* canvas, preserveDrawingBuffer */)
|
|
476
477
|
{
|
|
477
478
|
const
|
|
478
479
|
gl = nogl (),
|