x_ite-node 2.0.13 → 2.0.15

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 -2
  2. package/src/index.js +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite-node",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "Pure Node.js Wrapper of X_ITE",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -59,7 +59,7 @@
59
59
  "node-localstorage": "^3.0.5",
60
60
  "nogl": "^1.1.0",
61
61
  "skia-canvas": "^3.0.8",
62
- "x_ite": "^14.1.5"
62
+ "x_ite": "^15.0.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "jest": "^30.2.0",
package/src/index.js CHANGED
@@ -127,6 +127,13 @@ Object .defineProperties (window,
127
127
  writable: true,
128
128
  enumerable: true,
129
129
  },
130
+ devicePixelRatio:
131
+ {
132
+ value: 1,
133
+ configurable: true,
134
+ writable: true,
135
+ enumerable: true,
136
+ },
130
137
  fetch:
131
138
  {
132
139
  value: function (resource, options)
@@ -203,6 +210,18 @@ Object .defineProperties (window,
203
210
  writable: true,
204
211
  enumerable: true,
205
212
  },
213
+ visualViewport:
214
+ {
215
+ value:
216
+ {
217
+ scale: 1,
218
+ addEventListener: Function .prototype,
219
+ removeEventListener: Function .prototype,
220
+ },
221
+ configurable: true,
222
+ writable: true,
223
+ enumerable: true,
224
+ },
206
225
  });
207
226
 
208
227
  // Global
@@ -232,10 +251,12 @@ Object .defineProperties (global,
232
251
  ... Object .fromEntries ([
233
252
  "atob",
234
253
  "customElements",
254
+ "devicePixelRatio",
235
255
  "fetch",
236
256
  "localStorage",
237
257
  ... global .navigator ? [ ] : ["navigator"],
238
258
  "sessionStorage",
259
+ "visualViewport",
239
260
  ]
240
261
  .map (name => [name,
241
262
  {