x_ite-node 2.0.26 → 2.0.28

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.
Files changed (2) hide show
  1. package/package.json +2 -4
  2. package/src/index.js +2 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite-node",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "description": "Pure Node.js Wrapper of X_ITE",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -52,11 +52,9 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "atob": "^2.1.2",
55
- "canvas": "^3.2.3",
56
55
  "filereader": "^0.10.3",
57
- "jsdom": "27.0.0",
56
+ "jsdom": "29.1.1",
58
57
  "jsdom-global": "^3.0.2",
59
- "node-fetch": "^2.7.0",
60
58
  "node-localstorage": "^3.0.5",
61
59
  "nogl": "^1.1.0",
62
60
  "skia-canvas": "^3.0.8",
package/src/index.js CHANGED
@@ -6,12 +6,10 @@ const URLClass = URL;
6
6
 
7
7
  require ("jsdom-global") ();
8
8
 
9
- const { Image } = require ("canvas");
10
-
11
9
  // Preparations
12
10
 
13
11
  const
14
- nodeFetch = require ("node-fetch"),
12
+ globalFetch = global .fetch,
15
13
  { LocalStorage } = require ("node-localstorage"),
16
14
  path = require ("path"),
17
15
  url = require ("url"),
@@ -89,12 +87,6 @@ Object .defineProperties (window,
89
87
  configurable: true,
90
88
  writable: true,
91
89
  },
92
- Image:
93
- {
94
- value: Image,
95
- configurable: true,
96
- writable: true,
97
- },
98
90
  MutationObserver:
99
91
  {
100
92
  value: class
@@ -196,7 +188,7 @@ Object .defineProperties (window,
196
188
  }
197
189
  default:
198
190
  {
199
- return nodeFetch (resource, options);
191
+ return globalFetch (resource, options);
200
192
  }
201
193
  }
202
194
  },
@@ -254,7 +246,6 @@ Object .defineProperties (global,
254
246
  "Blob",
255
247
  "FileReader",
256
248
  "FontFace",
257
- "Image",
258
249
  "MutationObserver",
259
250
  "ResizeObserver",
260
251
  "URL",