x_ite-node 2.0.25 → 2.0.26

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 +1 -1
  2. package/src/index.js +8 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite-node",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "Pure Node.js Wrapper of X_ITE",
5
5
  "main": "src/index.js",
6
6
  "files": [
package/src/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  // Restore it later.
4
4
  const BlobClass = Blob;
5
+ const URLClass = URL;
5
6
 
6
7
  require ("jsdom-global") ();
7
8
 
@@ -114,6 +115,12 @@ Object .defineProperties (window,
114
115
  configurable: true,
115
116
  writable: true,
116
117
  },
118
+ URL:
119
+ {
120
+ value: URLClass,
121
+ configurable: true,
122
+ writable: true,
123
+ },
117
124
  atob:
118
125
  {
119
126
  value: require ("atob"),
@@ -250,6 +257,7 @@ Object .defineProperties (global,
250
257
  "Image",
251
258
  "MutationObserver",
252
259
  "ResizeObserver",
260
+ "URL",
253
261
  ]
254
262
  .map (name => [name,
255
263
  {
@@ -402,22 +410,6 @@ HTMLCanvasElement .prototype .getContext = function (contextType, ... args)
402
410
  }
403
411
  };
404
412
 
405
- Object .defineProperties (URL,
406
- {
407
- createObjectURL:
408
- {
409
- value: blob => "",
410
- configurable: true,
411
- writable: true,
412
- },
413
- revokeObjectURL:
414
- {
415
- value: Function .prototype,
416
- configurable: true,
417
- writable: true,
418
- },
419
- });
420
-
421
413
  // X_ITE
422
414
 
423
415
  const