@rollup/wasm-node 4.20.0 → 4.21.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.
@@ -1,3 +1,4 @@
1
+
1
2
  let imports = {};
2
3
  imports['__wbindgen_placeholder__'] = module.exports;
3
4
  let wasm;
@@ -27,18 +28,18 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
27
28
 
28
29
  cachedTextDecoder.decode();
29
30
 
30
- let cachedUint8Memory0 = null;
31
+ let cachedUint8ArrayMemory0 = null;
31
32
 
32
- function getUint8Memory0() {
33
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
34
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
33
+ function getUint8ArrayMemory0() {
34
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
35
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
35
36
  }
36
- return cachedUint8Memory0;
37
+ return cachedUint8ArrayMemory0;
37
38
  }
38
39
 
39
40
  function getStringFromWasm0(ptr, len) {
40
41
  ptr = ptr >>> 0;
41
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
42
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
42
43
  }
43
44
 
44
45
  function addHeapObject(obj) {
@@ -72,7 +73,7 @@ function passStringToWasm0(arg, malloc, realloc) {
72
73
  if (realloc === undefined) {
73
74
  const buf = cachedTextEncoder.encode(arg);
74
75
  const ptr = malloc(buf.length, 1) >>> 0;
75
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
76
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
76
77
  WASM_VECTOR_LEN = buf.length;
77
78
  return ptr;
78
79
  }
@@ -80,7 +81,7 @@ function passStringToWasm0(arg, malloc, realloc) {
80
81
  let len = arg.length;
81
82
  let ptr = malloc(len, 1) >>> 0;
82
83
 
83
- const mem = getUint8Memory0();
84
+ const mem = getUint8ArrayMemory0();
84
85
 
85
86
  let offset = 0;
86
87
 
@@ -95,7 +96,7 @@ function passStringToWasm0(arg, malloc, realloc) {
95
96
  arg = arg.slice(offset);
96
97
  }
97
98
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
98
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
99
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
99
100
  const ret = encodeString(arg, view);
100
101
 
101
102
  offset += ret.written;
@@ -106,18 +107,18 @@ function passStringToWasm0(arg, malloc, realloc) {
106
107
  return ptr;
107
108
  }
108
109
 
109
- let cachedInt32Memory0 = null;
110
+ let cachedDataViewMemory0 = null;
110
111
 
111
- function getInt32Memory0() {
112
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
113
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
112
+ function getDataViewMemory0() {
113
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
114
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
114
115
  }
115
- return cachedInt32Memory0;
116
+ return cachedDataViewMemory0;
116
117
  }
117
118
 
118
119
  function getArrayU8FromWasm0(ptr, len) {
119
120
  ptr = ptr >>> 0;
120
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
121
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
121
122
  }
122
123
  /**
123
124
  * @param {string} code
@@ -130,8 +131,8 @@ module.exports.parse = function(code, allow_return_outside_function) {
130
131
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
131
132
  const len0 = WASM_VECTOR_LEN;
132
133
  wasm.parse(retptr, ptr0, len0, allow_return_outside_function);
133
- var r0 = getInt32Memory0()[retptr / 4 + 0];
134
- var r1 = getInt32Memory0()[retptr / 4 + 1];
134
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
135
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
135
136
  var v2 = getArrayU8FromWasm0(r0, r1).slice();
136
137
  wasm.__wbindgen_export_2(r0, r1 * 1, 1);
137
138
  return v2;
@@ -150,8 +151,8 @@ module.exports.xxhashBase64Url = function(input) {
150
151
  try {
151
152
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
152
153
  wasm.xxhashBase64Url(retptr, addHeapObject(input));
153
- var r0 = getInt32Memory0()[retptr / 4 + 0];
154
- var r1 = getInt32Memory0()[retptr / 4 + 1];
154
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
155
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
155
156
  deferred1_0 = r0;
156
157
  deferred1_1 = r1;
157
158
  return getStringFromWasm0(r0, r1);
@@ -171,8 +172,8 @@ module.exports.xxhashBase36 = function(input) {
171
172
  try {
172
173
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
173
174
  wasm.xxhashBase36(retptr, addHeapObject(input));
174
- var r0 = getInt32Memory0()[retptr / 4 + 0];
175
- var r1 = getInt32Memory0()[retptr / 4 + 1];
175
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
176
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
176
177
  deferred1_0 = r0;
177
178
  deferred1_1 = r1;
178
179
  return getStringFromWasm0(r0, r1);
@@ -192,8 +193,8 @@ module.exports.xxhashBase16 = function(input) {
192
193
  try {
193
194
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
194
195
  wasm.xxhashBase16(retptr, addHeapObject(input));
195
- var r0 = getInt32Memory0()[retptr / 4 + 0];
196
- var r1 = getInt32Memory0()[retptr / 4 + 1];
196
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
197
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
197
198
  deferred1_0 = r0;
198
199
  deferred1_1 = r1;
199
200
  return getStringFromWasm0(r0, r1);
@@ -274,12 +275,12 @@ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return hand
274
275
  getObject(arg0).getRandomValues(getObject(arg1));
275
276
  }, arguments) };
276
277
 
277
- module.exports.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
278
+ module.exports.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
278
279
  const ret = new Function(getStringFromWasm0(arg0, arg1));
279
280
  return addHeapObject(ret);
280
281
  };
281
282
 
282
- module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
283
+ module.exports.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
283
284
  const ret = getObject(arg0).call(getObject(arg1));
284
285
  return addHeapObject(ret);
285
286
  }, arguments) };
@@ -289,22 +290,22 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
289
290
  return addHeapObject(ret);
290
291
  };
291
292
 
292
- module.exports.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
293
+ module.exports.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
293
294
  const ret = self.self;
294
295
  return addHeapObject(ret);
295
296
  }, arguments) };
296
297
 
297
- module.exports.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
298
+ module.exports.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
298
299
  const ret = window.window;
299
300
  return addHeapObject(ret);
300
301
  }, arguments) };
301
302
 
302
- module.exports.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
303
+ module.exports.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
303
304
  const ret = globalThis.globalThis;
304
305
  return addHeapObject(ret);
305
306
  }, arguments) };
306
307
 
307
- module.exports.__wbg_global_207b558942527489 = function() { return handleError(function () {
308
+ module.exports.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
308
309
  const ret = global.global;
309
310
  return addHeapObject(ret);
310
311
  }, arguments) };
@@ -314,41 +315,41 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
314
315
  return ret;
315
316
  };
316
317
 
317
- module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
318
+ module.exports.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
318
319
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
319
320
  return addHeapObject(ret);
320
321
  }, arguments) };
321
322
 
322
- module.exports.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
323
+ module.exports.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
323
324
  const ret = getObject(arg0).buffer;
324
325
  return addHeapObject(ret);
325
326
  };
326
327
 
327
- module.exports.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
328
+ module.exports.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
328
329
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
329
330
  return addHeapObject(ret);
330
331
  };
331
332
 
332
- module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) {
333
+ module.exports.__wbg_new_ea1883e1e5e86686 = function(arg0) {
333
334
  const ret = new Uint8Array(getObject(arg0));
334
335
  return addHeapObject(ret);
335
336
  };
336
337
 
337
- module.exports.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
338
+ module.exports.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
338
339
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
339
340
  };
340
341
 
341
- module.exports.__wbg_length_c20a40f15020d68a = function(arg0) {
342
+ module.exports.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
342
343
  const ret = getObject(arg0).length;
343
344
  return ret;
344
345
  };
345
346
 
346
- module.exports.__wbg_newwithlength_e9b4878cebadb3d3 = function(arg0) {
347
+ module.exports.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
347
348
  const ret = new Uint8Array(arg0 >>> 0);
348
349
  return addHeapObject(ret);
349
350
  };
350
351
 
351
- module.exports.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) {
352
+ module.exports.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
352
353
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
353
354
  return addHeapObject(ret);
354
355
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.20.0",
3
+ "version": "4.21.1",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -38,7 +38,8 @@
38
38
  "@codemirror/language": "^6.10.2",
39
39
  "@codemirror/search": "^6.5.6",
40
40
  "@codemirror/state": "^6.4.1",
41
- "@codemirror/view": "^6.29.1",
41
+ "@codemirror/view": "^6.32.0",
42
+ "@eslint/js": "^9.9.0",
42
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
43
44
  "@mermaid-js/mermaid-cli": "^10.9.1",
44
45
  "@napi-rs/cli": "^2.18.4",
@@ -51,17 +52,13 @@
51
52
  "@rollup/plugin-terser": "^0.4.4",
52
53
  "@rollup/plugin-typescript": "^11.1.6",
53
54
  "@rollup/pluginutils": "^5.1.0",
54
- "@shikijs/vitepress-twoslash": "^1.12.0",
55
- "@types/eslint": "^8.56.11",
55
+ "@shikijs/vitepress-twoslash": "^1.14.1",
56
+ "@types/eslint": "^9.6.0",
56
57
  "@types/inquirer": "^9.0.7",
57
58
  "@types/mocha": "^10.0.7",
58
59
  "@types/node": "~18.18.14",
59
60
  "@types/semver": "^7.5.8",
60
61
  "@types/yargs-parser": "^21.0.3",
61
- "@typescript-eslint/eslint-plugin": "^7.18.0",
62
- "@typescript-eslint/parser": "^7.18.0",
63
- "@vue/eslint-config-prettier": "^9.0.0",
64
- "@vue/eslint-config-typescript": "^13.0.0",
65
62
  "acorn": "^8.12.1",
66
63
  "acorn-import-assertions": "^1.9.0",
67
64
  "buble": "^0.20.0",
@@ -74,9 +71,8 @@
74
71
  "date-time": "^4.0.0",
75
72
  "es5-shim": "^4.6.7",
76
73
  "es6-shim": "^0.35.8",
77
- "eslint": "^8.57.0",
74
+ "eslint": "^9.9.0",
78
75
  "eslint-config-prettier": "^9.1.0",
79
- "eslint-plugin-import": "^2.29.1",
80
76
  "eslint-plugin-prettier": "^5.2.1",
81
77
  "eslint-plugin-unicorn": "^55.0.0",
82
78
  "eslint-plugin-vue": "^9.27.0",
@@ -84,22 +80,24 @@
84
80
  "flru": "^1.0.2",
85
81
  "fs-extra": "^11.2.0",
86
82
  "github-api": "^3.4.0",
83
+ "globals": "^15.9.0",
87
84
  "husky": "^9.1.4",
88
- "inquirer": "^10.1.5",
85
+ "inquirer": "^10.1.8",
89
86
  "is-reference": "^3.0.2",
90
- "lint-staged": "^15.2.7",
87
+ "lint-staged": "^15.2.9",
91
88
  "locate-character": "^3.0.0",
92
89
  "magic-string": "^0.30.11",
93
- "mocha": "^10.7.0",
90
+ "mocha": "^10.7.3",
94
91
  "nodemon": "^3.1.4",
95
92
  "npm-audit-resolver": "^3.0.0-RC.0",
96
93
  "nyc": "^17.0.0",
97
- "pinia": "^2.2.0",
94
+ "pinia": "^2.2.2",
98
95
  "prettier": "^3.3.3",
96
+ "prettier-plugin-organize-imports": "^4.0.0",
99
97
  "pretty-bytes": "^6.1.1",
100
98
  "pretty-ms": "^9.1.0",
101
99
  "requirejs": "^2.3.7",
102
- "rollup": "^4.19.1",
100
+ "rollup": "^4.21.0",
103
101
  "rollup-plugin-license": "^3.5.2",
104
102
  "rollup-plugin-string": "^3.0.0",
105
103
  "semver": "^7.6.3",
@@ -108,17 +106,18 @@
108
106
  "source-map": "^0.7.4",
109
107
  "source-map-support": "^0.5.21",
110
108
  "systemjs": "^6.15.1",
111
- "terser": "^5.31.3",
109
+ "terser": "^5.31.6",
112
110
  "tslib": "^2.6.3",
113
111
  "typescript": "^5.5.4",
114
- "vite": "^5.3.5",
115
- "vitepress": "^1.3.1",
116
- "vue": "^3.4.34",
112
+ "typescript-eslint": "^8.2.0",
113
+ "vite": "^5.4.1",
114
+ "vitepress": "^1.3.3",
115
+ "vue": "^3.4.38",
117
116
  "wasm-pack": "^0.13.0",
118
117
  "yargs-parser": "^21.1.1"
119
118
  },
120
119
  "overrides": {
121
- "axios": "^1.7.2",
120
+ "axios": "^1.7.4",
122
121
  "semver": "^7.6.3",
123
122
  "ws": "^8.18.0"
124
123
  },