@rollup/wasm-node 4.34.5 → 4.34.7

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.
@@ -21,12 +21,16 @@ function addHeapObject(obj) {
21
21
  return idx;
22
22
  }
23
23
 
24
- function handleError(f, args) {
25
- try {
26
- return f.apply(this, args);
27
- } catch (e) {
28
- wasm.__wbindgen_export_0(addHeapObject(e));
29
- }
24
+ function dropObject(idx) {
25
+ if (idx < 132) return;
26
+ heap[idx] = heap_next;
27
+ heap_next = idx;
28
+ }
29
+
30
+ function takeObject(idx) {
31
+ const ret = getObject(idx);
32
+ dropObject(idx);
33
+ return ret;
30
34
  }
31
35
 
32
36
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -47,22 +51,6 @@ function getStringFromWasm0(ptr, len) {
47
51
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
48
52
  }
49
53
 
50
- function dropObject(idx) {
51
- if (idx < 132) return;
52
- heap[idx] = heap_next;
53
- heap_next = idx;
54
- }
55
-
56
- function takeObject(idx) {
57
- const ret = getObject(idx);
58
- dropObject(idx);
59
- return ret;
60
- }
61
-
62
- function isLikeNone(x) {
63
- return x === undefined || x === null;
64
- }
65
-
66
54
  let WASM_VECTOR_LEN = 0;
67
55
 
68
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -141,13 +129,13 @@ function getArrayU8FromWasm0(ptr, len) {
141
129
  module.exports.parse = function(code, allow_return_outside_function, jsx) {
142
130
  try {
143
131
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
144
- const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
132
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
145
133
  const len0 = WASM_VECTOR_LEN;
146
134
  wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx);
147
135
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
148
136
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
149
137
  var v2 = getArrayU8FromWasm0(r0, r1).slice();
150
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
138
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
151
139
  return v2;
152
140
  } finally {
153
141
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -171,7 +159,7 @@ module.exports.xxhashBase64Url = function(input) {
171
159
  return getStringFromWasm0(r0, r1);
172
160
  } finally {
173
161
  wasm.__wbindgen_add_to_stack_pointer(16);
174
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
162
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
175
163
  }
176
164
  };
177
165
 
@@ -192,7 +180,7 @@ module.exports.xxhashBase36 = function(input) {
192
180
  return getStringFromWasm0(r0, r1);
193
181
  } finally {
194
182
  wasm.__wbindgen_add_to_stack_pointer(16);
195
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
183
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
196
184
  }
197
185
  };
198
186
 
@@ -213,7 +201,7 @@ module.exports.xxhashBase16 = function(input) {
213
201
  return getStringFromWasm0(r0, r1);
214
202
  } finally {
215
203
  wasm.__wbindgen_add_to_stack_pointer(16);
216
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
204
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
217
205
  }
218
206
  };
219
207
 
@@ -222,148 +210,29 @@ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
222
210
  return addHeapObject(ret);
223
211
  };
224
212
 
225
- module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
226
- const ret = getObject(arg0).call(getObject(arg1));
227
- return addHeapObject(ret);
228
- }, arguments) };
229
-
230
- module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
231
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
232
- return addHeapObject(ret);
233
- }, arguments) };
234
-
235
- module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
236
- const ret = getObject(arg0).crypto;
237
- return addHeapObject(ret);
238
- };
239
-
240
- module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
241
- getObject(arg0).getRandomValues(getObject(arg1));
242
- }, arguments) };
243
-
244
213
  module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
245
214
  const ret = getObject(arg0).length;
246
215
  return ret;
247
216
  };
248
217
 
249
- module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
250
- const ret = getObject(arg0).msCrypto;
251
- return addHeapObject(ret);
252
- };
253
-
254
218
  module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
255
219
  const ret = new Uint8Array(getObject(arg0));
256
220
  return addHeapObject(ret);
257
221
  };
258
222
 
259
- module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
260
- const ret = new Function(getStringFromWasm0(arg0, arg1));
261
- return addHeapObject(ret);
262
- };
263
-
264
- module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
265
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
266
- return addHeapObject(ret);
267
- };
268
-
269
- module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
270
- const ret = new Uint8Array(arg0 >>> 0);
271
- return addHeapObject(ret);
272
- };
273
-
274
- module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
275
- const ret = getObject(arg0).node;
276
- return addHeapObject(ret);
277
- };
278
-
279
- module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
280
- const ret = getObject(arg0).process;
281
- return addHeapObject(ret);
282
- };
283
-
284
- module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
285
- getObject(arg0).randomFillSync(takeObject(arg1));
286
- }, arguments) };
287
-
288
- module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
289
- const ret = module.require;
290
- return addHeapObject(ret);
291
- }, arguments) };
292
-
293
223
  module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
294
224
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
295
225
  };
296
226
 
297
- module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
298
- const ret = typeof global === 'undefined' ? null : global;
299
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
300
- };
301
-
302
- module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
303
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
304
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
305
- };
306
-
307
- module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
308
- const ret = typeof self === 'undefined' ? null : self;
309
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
310
- };
311
-
312
- module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
313
- const ret = typeof window === 'undefined' ? null : window;
314
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
315
- };
316
-
317
- module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
318
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
319
- return addHeapObject(ret);
320
- };
321
-
322
- module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
323
- const ret = getObject(arg0).versions;
324
- return addHeapObject(ret);
325
- };
326
-
327
- module.exports.__wbindgen_is_function = function(arg0) {
328
- const ret = typeof(getObject(arg0)) === 'function';
329
- return ret;
330
- };
331
-
332
- module.exports.__wbindgen_is_object = function(arg0) {
333
- const val = getObject(arg0);
334
- const ret = typeof(val) === 'object' && val !== null;
335
- return ret;
336
- };
337
-
338
- module.exports.__wbindgen_is_string = function(arg0) {
339
- const ret = typeof(getObject(arg0)) === 'string';
340
- return ret;
341
- };
342
-
343
- module.exports.__wbindgen_is_undefined = function(arg0) {
344
- const ret = getObject(arg0) === undefined;
345
- return ret;
346
- };
347
-
348
227
  module.exports.__wbindgen_memory = function() {
349
228
  const ret = wasm.memory;
350
229
  return addHeapObject(ret);
351
230
  };
352
231
 
353
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
354
- const ret = getObject(arg0);
355
- return addHeapObject(ret);
356
- };
357
-
358
232
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
359
233
  takeObject(arg0);
360
234
  };
361
235
 
362
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
363
- const ret = getStringFromWasm0(arg0, arg1);
364
- return addHeapObject(ret);
365
- };
366
-
367
236
  module.exports.__wbindgen_throw = function(arg0, arg1) {
368
237
  throw new Error(getStringFromWasm0(arg0, arg1));
369
238
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.34.5",
3
+ "version": "4.34.7",
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,7 @@
38
38
  "@codemirror/search": "^6.5.8",
39
39
  "@codemirror/state": "^6.5.2",
40
40
  "@codemirror/view": "^6.36.2",
41
- "@eslint/js": "^9.19.0",
41
+ "@eslint/js": "^9.20.0",
42
42
  "@inquirer/prompts": "^7.3.1",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
44
  "@mermaid-js/mermaid-cli": "^11.4.2",
@@ -52,7 +52,7 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^12.1.2",
54
54
  "@rollup/pluginutils": "^5.1.4",
55
- "@shikijs/vitepress-twoslash": "^2.2.0",
55
+ "@shikijs/vitepress-twoslash": "^2.3.2",
56
56
  "@types/mocha": "^10.0.10",
57
57
  "@types/node": "^18.19.75",
58
58
  "@types/semver": "^7.5.8",
@@ -70,7 +70,7 @@
70
70
  "date-time": "^4.0.0",
71
71
  "es5-shim": "^4.6.7",
72
72
  "es6-shim": "^0.35.8",
73
- "eslint": "^9.19.0",
73
+ "eslint": "^9.20.0",
74
74
  "eslint-config-prettier": "^10.0.1",
75
75
  "eslint-plugin-prettier": "^5.2.3",
76
76
  "eslint-plugin-unicorn": "^56.0.1",
@@ -91,12 +91,12 @@
91
91
  "nyc": "^17.1.0",
92
92
  "picocolors": "^1.1.1",
93
93
  "pinia": "^2.3.1",
94
- "prettier": "^3.4.2",
94
+ "prettier": "^3.5.0",
95
95
  "prettier-plugin-organize-imports": "^4.1.0",
96
96
  "pretty-bytes": "^6.1.1",
97
97
  "pretty-ms": "^9.2.0",
98
98
  "requirejs": "^2.3.7",
99
- "rollup": "^4.34.1",
99
+ "rollup": "^4.34.6",
100
100
  "rollup-plugin-license": "^3.5.3",
101
101
  "rollup-plugin-string": "^3.0.0",
102
102
  "semver": "^7.7.1",
@@ -105,11 +105,11 @@
105
105
  "source-map": "^0.7.4",
106
106
  "source-map-support": "^0.5.21",
107
107
  "systemjs": "^6.15.1",
108
- "terser": "^5.37.0",
108
+ "terser": "^5.38.1",
109
109
  "tslib": "^2.8.1",
110
110
  "typescript": "^5.7.3",
111
- "typescript-eslint": "^8.23.0",
112
- "vite": "^6.0.11",
111
+ "typescript-eslint": "^8.24.0",
112
+ "vite": "^6.1.0",
113
113
  "vitepress": "^1.6.3",
114
114
  "vue": "^3.5.13",
115
115
  "vue-tsc": "^2.2.0",