@rollup/wasm-node 4.9.6 → 4.11.0

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.
@@ -99,6 +99,7 @@ function passStringToWasm0(arg, malloc, realloc) {
99
99
  const ret = encodeString(arg, view);
100
100
 
101
101
  offset += ret.written;
102
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
102
103
  }
103
104
 
104
105
  WASM_VECTOR_LEN = offset;
@@ -160,6 +161,48 @@ module.exports.xxhashBase64Url = function(input) {
160
161
  }
161
162
  };
162
163
 
164
+ /**
165
+ * @param {Uint8Array} input
166
+ * @returns {string}
167
+ */
168
+ module.exports.xxhashBase36 = function(input) {
169
+ let deferred1_0;
170
+ let deferred1_1;
171
+ try {
172
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
173
+ wasm.xxhashBase36(retptr, addHeapObject(input));
174
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
175
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
176
+ deferred1_0 = r0;
177
+ deferred1_1 = r1;
178
+ return getStringFromWasm0(r0, r1);
179
+ } finally {
180
+ wasm.__wbindgen_add_to_stack_pointer(16);
181
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
182
+ }
183
+ };
184
+
185
+ /**
186
+ * @param {Uint8Array} input
187
+ * @returns {string}
188
+ */
189
+ module.exports.xxhashBase16 = function(input) {
190
+ let deferred1_0;
191
+ let deferred1_1;
192
+ try {
193
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
194
+ wasm.xxhashBase16(retptr, addHeapObject(input));
195
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
196
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
197
+ deferred1_0 = r0;
198
+ deferred1_1 = r1;
199
+ return getStringFromWasm0(r0, r1);
200
+ } finally {
201
+ wasm.__wbindgen_add_to_stack_pointer(16);
202
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
203
+ }
204
+ };
205
+
163
206
  function handleError(f, args) {
164
207
  try {
165
208
  return f.apply(this, args);
@@ -231,12 +274,12 @@ module.exports.__wbg_getRandomValues_7e42b4fb8779dc6d = function() { return hand
231
274
  getObject(arg0).getRandomValues(getObject(arg1));
232
275
  }, arguments) };
233
276
 
234
- module.exports.__wbg_newnoargs_5859b6d41c6fe9f7 = function(arg0, arg1) {
277
+ module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
235
278
  const ret = new Function(getStringFromWasm0(arg0, arg1));
236
279
  return addHeapObject(ret);
237
280
  };
238
281
 
239
- module.exports.__wbg_call_a79f1973a4f07d5e = function() { return handleError(function (arg0, arg1) {
282
+ module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) {
240
283
  const ret = getObject(arg0).call(getObject(arg1));
241
284
  return addHeapObject(ret);
242
285
  }, arguments) };
@@ -246,22 +289,22 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
246
289
  return addHeapObject(ret);
247
290
  };
248
291
 
249
- module.exports.__wbg_self_086b5302bcafb962 = function() { return handleError(function () {
292
+ module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
250
293
  const ret = self.self;
251
294
  return addHeapObject(ret);
252
295
  }, arguments) };
253
296
 
254
- module.exports.__wbg_window_132fa5d7546f1de5 = function() { return handleError(function () {
297
+ module.exports.__wbg_window_adc720039f2cb14f = function() { return handleError(function () {
255
298
  const ret = window.window;
256
299
  return addHeapObject(ret);
257
300
  }, arguments) };
258
301
 
259
- module.exports.__wbg_globalThis_e5f801a37ad7d07b = function() { return handleError(function () {
302
+ module.exports.__wbg_globalThis_622105db80c1457d = function() { return handleError(function () {
260
303
  const ret = globalThis.globalThis;
261
304
  return addHeapObject(ret);
262
305
  }, arguments) };
263
306
 
264
- module.exports.__wbg_global_f9a61fce4af6b7c1 = function() { return handleError(function () {
307
+ module.exports.__wbg_global_f56b013ed9bcf359 = function() { return handleError(function () {
265
308
  const ret = global.global;
266
309
  return addHeapObject(ret);
267
310
  }, arguments) };
@@ -271,41 +314,41 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
271
314
  return ret;
272
315
  };
273
316
 
274
- module.exports.__wbg_call_f6a2bc58c19c53c6 = function() { return handleError(function (arg0, arg1, arg2) {
317
+ module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
275
318
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
276
319
  return addHeapObject(ret);
277
320
  }, arguments) };
278
321
 
279
- module.exports.__wbg_buffer_5d1b598a01b41a42 = function(arg0) {
322
+ module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
280
323
  const ret = getObject(arg0).buffer;
281
324
  return addHeapObject(ret);
282
325
  };
283
326
 
284
- module.exports.__wbg_newwithbyteoffsetandlength_d695c7957788f922 = function(arg0, arg1, arg2) {
327
+ module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
285
328
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
286
329
  return addHeapObject(ret);
287
330
  };
288
331
 
289
- module.exports.__wbg_new_ace717933ad7117f = function(arg0) {
332
+ module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
290
333
  const ret = new Uint8Array(getObject(arg0));
291
334
  return addHeapObject(ret);
292
335
  };
293
336
 
294
- module.exports.__wbg_set_74906aa30864df5a = function(arg0, arg1, arg2) {
337
+ module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
295
338
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
296
339
  };
297
340
 
298
- module.exports.__wbg_length_f0764416ba5bb237 = function(arg0) {
341
+ module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
299
342
  const ret = getObject(arg0).length;
300
343
  return ret;
301
344
  };
302
345
 
303
- module.exports.__wbg_newwithlength_728575f3bba9959b = function(arg0) {
346
+ module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
304
347
  const ret = new Uint8Array(arg0 >>> 0);
305
348
  return addHeapObject(ret);
306
349
  };
307
350
 
308
- module.exports.__wbg_subarray_7f7a652672800851 = function(arg0, arg1, arg2) {
351
+ module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
309
352
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
310
353
  return addHeapObject(ret);
311
354
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.9.6",
3
+ "version": "4.11.0",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -29,18 +29,19 @@
29
29
  "@types/estree": "1.0.5"
30
30
  },
31
31
  "devDependenciesComments": {
32
- "@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
32
+ "@types/node": "Version 18.19.0 breaks chokidar and vite types",
33
+ "vitepress": "Version 1.0.0-rc.40 breaks npm run dev"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@codemirror/commands": "^6.3.3",
36
37
  "@codemirror/lang-javascript": "^6.2.1",
37
- "@codemirror/language": "^6.10.0",
38
+ "@codemirror/language": "^6.10.1",
38
39
  "@codemirror/search": "^6.5.5",
39
40
  "@codemirror/state": "^6.4.0",
40
- "@codemirror/view": "^6.23.0",
41
+ "@codemirror/view": "^6.23.1",
41
42
  "@jridgewell/sourcemap-codec": "^1.4.15",
42
- "@mermaid-js/mermaid-cli": "^10.6.1",
43
- "@napi-rs/cli": "^2.17.0",
43
+ "@mermaid-js/mermaid-cli": "^10.7.0",
44
+ "@napi-rs/cli": "^2.18.0",
44
45
  "@rollup/plugin-alias": "^5.1.0",
45
46
  "@rollup/plugin-buble": "^1.0.3",
46
47
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -48,15 +49,15 @@
48
49
  "@rollup/plugin-node-resolve": "^15.2.3",
49
50
  "@rollup/plugin-replace": "^5.0.5",
50
51
  "@rollup/plugin-terser": "^0.4.4",
51
- "@rollup/plugin-typescript": "11.1.5",
52
+ "@rollup/plugin-typescript": "^11.1.6",
52
53
  "@rollup/pluginutils": "^5.1.0",
53
54
  "@types/eslint": "^8.56.2",
54
55
  "@types/inquirer": "^9.0.7",
55
56
  "@types/mocha": "^10.0.6",
56
- "@types/node": "^18.11.19",
57
+ "@types/node": "~18.18.14",
57
58
  "@types/yargs-parser": "^21.0.3",
58
- "@typescript-eslint/eslint-plugin": "^6.19.0",
59
- "@typescript-eslint/parser": "^6.19.0",
59
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
60
+ "@typescript-eslint/parser": "^6.21.0",
60
61
  "@vue/eslint-config-prettier": "^9.0.0",
61
62
  "@vue/eslint-config-typescript": "^12.0.0",
62
63
  "acorn": "^8.11.3",
@@ -66,7 +67,7 @@
66
67
  "chokidar": "^3.5.3",
67
68
  "colorette": "^2.0.20",
68
69
  "concurrently": "^8.2.2",
69
- "core-js": "^3.35.0",
70
+ "core-js": "^3.35.1",
70
71
  "date-time": "^4.0.0",
71
72
  "es5-shim": "^4.6.7",
72
73
  "es6-shim": "^0.35.8",
@@ -75,46 +76,46 @@
75
76
  "eslint-plugin-import": "^2.29.1",
76
77
  "eslint-plugin-prettier": "^5.1.3",
77
78
  "eslint-plugin-unicorn": "^50.0.1",
78
- "eslint-plugin-vue": "^9.20.1",
79
+ "eslint-plugin-vue": "^9.21.1",
79
80
  "fixturify": "^3.0.0",
80
81
  "flru": "^1.0.2",
81
82
  "fs-extra": "^11.2.0",
82
83
  "github-api": "^3.4.0",
83
- "husky": "^8.0.3",
84
- "inquirer": "^9.2.12",
84
+ "husky": "^9.0.10",
85
+ "inquirer": "^9.2.14",
85
86
  "is-reference": "^3.0.2",
86
- "lint-staged": "^15.2.0",
87
+ "lint-staged": "^15.2.2",
87
88
  "locate-character": "^3.0.0",
88
- "magic-string": "^0.30.5",
89
+ "magic-string": "^0.30.7",
89
90
  "mocha": "^10.2.0",
90
91
  "nyc": "^15.1.0",
91
92
  "pinia": "^2.1.7",
92
- "prettier": "^3.2.2",
93
+ "prettier": "^3.2.5",
93
94
  "pretty-bytes": "^6.1.1",
94
- "pretty-ms": "^8.0.0",
95
+ "pretty-ms": "^9.0.0",
95
96
  "requirejs": "^2.3.6",
96
- "rollup": "^4.9.5",
97
+ "rollup": "^4.9.6",
97
98
  "rollup-plugin-license": "^3.2.0",
98
99
  "rollup-plugin-string": "^3.0.0",
99
- "semver": "^7.5.4",
100
+ "semver": "^7.6.0",
100
101
  "shx": "^0.3.4",
101
102
  "signal-exit": "^4.1.0",
102
103
  "source-map": "^0.7.4",
103
104
  "source-map-support": "^0.5.21",
104
105
  "systemjs": "^6.14.3",
105
- "terser": "^5.26.0",
106
+ "terser": "^5.27.0",
106
107
  "tslib": "^2.6.2",
107
108
  "typescript": "^5.3.3",
108
- "vite": "^5.0.11",
109
- "vitepress": "^1.0.0-rc.39",
110
- "vue": "^3.4.14",
109
+ "vite": "^5.0.12",
110
+ "vitepress": "1.0.0-rc.39",
111
+ "vue": "^3.4.15",
111
112
  "wasm-pack": "^0.12.1",
112
113
  "weak-napi": "^2.0.2",
113
114
  "yargs-parser": "^21.1.1"
114
115
  },
115
116
  "overrides": {
116
- "axios": "^1.6.5",
117
- "semver": "^7.5.4"
117
+ "axios": "^1.6.7",
118
+ "semver": "^7.6.0"
118
119
  },
119
120
  "files": [
120
121
  "dist/wasm-node/*.wasm",