@rollup/wasm-node 4.0.0-19 → 4.0.0-21

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,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-19
4
- Fri, 15 Sep 2023 18:50:14 GMT - commit 25753ad04d73429f0d7b4d5dc85df09aeae78485
3
+ Rollup.js v4.0.0-21
4
+ Sun, 24 Sep 2023 17:21:35 GMT - commit fa868ad975b9ae6007ddc64b1a9e82766de6fa9e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-19
4
- Fri, 15 Sep 2023 18:50:14 GMT - commit 25753ad04d73429f0d7b4d5dc85df09aeae78485
3
+ Rollup.js v4.0.0-21
4
+ Sun, 24 Sep 2023 17:21:35 GMT - commit fa868ad975b9ae6007ddc64b1a9e82766de6fa9e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-19
4
- Fri, 15 Sep 2023 18:50:14 GMT - commit 25753ad04d73429f0d7b4d5dc85df09aeae78485
3
+ Rollup.js v4.0.0-21
4
+ Sun, 24 Sep 2023 17:21:35 GMT - commit fa868ad975b9ae6007ddc64b1a9e82766de6fa9e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -9,7 +9,23 @@ heap.push(undefined, null, true, false);
9
9
 
10
10
  function getObject(idx) { return heap[idx]; }
11
11
 
12
- let WASM_VECTOR_LEN = 0;
12
+ let heap_next = heap.length;
13
+
14
+ function dropObject(idx) {
15
+ if (idx < 132) return;
16
+ heap[idx] = heap_next;
17
+ heap_next = idx;
18
+ }
19
+
20
+ function takeObject(idx) {
21
+ const ret = getObject(idx);
22
+ dropObject(idx);
23
+ return ret;
24
+ }
25
+
26
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
+
28
+ cachedTextDecoder.decode();
13
29
 
14
30
  let cachedUint8Memory0 = null;
15
31
 
@@ -20,6 +36,22 @@ function getUint8Memory0() {
20
36
  return cachedUint8Memory0;
21
37
  }
22
38
 
39
+ function getStringFromWasm0(ptr, len) {
40
+ ptr = ptr >>> 0;
41
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
42
+ }
43
+
44
+ function addHeapObject(obj) {
45
+ if (heap_next === heap.length) heap.push(heap.length + 1);
46
+ const idx = heap_next;
47
+ heap_next = heap[idx];
48
+
49
+ heap[idx] = obj;
50
+ return idx;
51
+ }
52
+
53
+ let WASM_VECTOR_LEN = 0;
54
+
23
55
  let cachedTextEncoder = new TextEncoder('utf-8');
24
56
 
25
57
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -86,38 +118,6 @@ function getInt32Memory0() {
86
118
  return cachedInt32Memory0;
87
119
  }
88
120
 
89
- let heap_next = heap.length;
90
-
91
- function dropObject(idx) {
92
- if (idx < 132) return;
93
- heap[idx] = heap_next;
94
- heap_next = idx;
95
- }
96
-
97
- function takeObject(idx) {
98
- const ret = getObject(idx);
99
- dropObject(idx);
100
- return ret;
101
- }
102
-
103
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
104
-
105
- cachedTextDecoder.decode();
106
-
107
- function getStringFromWasm0(ptr, len) {
108
- ptr = ptr >>> 0;
109
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
110
- }
111
-
112
- function addHeapObject(obj) {
113
- if (heap_next === heap.length) heap.push(heap.length + 1);
114
- const idx = heap_next;
115
- heap_next = heap[idx];
116
-
117
- heap[idx] = obj;
118
- return idx;
119
- }
120
-
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -247,15 +247,6 @@ function handleError(f, args) {
247
247
  }
248
248
  }
249
249
 
250
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
251
- const obj = getObject(arg1);
252
- const ret = typeof(obj) === 'string' ? obj : undefined;
253
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
254
- var len1 = WASM_VECTOR_LEN;
255
- getInt32Memory0()[arg0 / 4 + 1] = len1;
256
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
257
- };
258
-
259
250
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
260
251
  takeObject(arg0);
261
252
  };
@@ -265,17 +256,21 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
265
256
  return addHeapObject(ret);
266
257
  };
267
258
 
268
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
269
- const ret = new Error(getStringFromWasm0(arg0, arg1));
270
- return addHeapObject(ret);
271
- };
272
-
273
259
  module.exports.__wbindgen_boolean_get = function(arg0) {
274
260
  const v = getObject(arg0);
275
261
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
276
262
  return ret;
277
263
  };
278
264
 
265
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
266
+ const obj = getObject(arg1);
267
+ const ret = typeof(obj) === 'string' ? obj : undefined;
268
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
269
+ var len1 = WASM_VECTOR_LEN;
270
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
271
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
272
+ };
273
+
279
274
  module.exports.__wbindgen_is_object = function(arg0) {
280
275
  const val = getObject(arg0);
281
276
  const ret = typeof(val) === 'object' && val !== null;
@@ -292,6 +287,11 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
292
287
  return ret;
293
288
  };
294
289
 
290
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
291
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
292
+ return addHeapObject(ret);
293
+ };
294
+
295
295
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
296
296
  const ret = getObject(arg0);
297
297
  return addHeapObject(ret);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.0.0-19",
3
+ "version": "4.0.0-21",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -32,9 +32,9 @@
32
32
  "@codemirror/commands": "^6.2.5",
33
33
  "@codemirror/lang-javascript": "^6.2.1",
34
34
  "@codemirror/language": "^6.9.0",
35
- "@codemirror/search": "^6.5.2",
35
+ "@codemirror/search": "^6.5.3",
36
36
  "@codemirror/state": "^6.2.1",
37
- "@codemirror/view": "^6.18.1",
37
+ "@codemirror/view": "^6.19.0",
38
38
  "@jridgewell/sourcemap-codec": "^1.4.15",
39
39
  "@mermaid-js/mermaid-cli": "^10.4.0",
40
40
  "@napi-rs/cli": "^2.16.2",
@@ -49,12 +49,12 @@
49
49
  "@rollup/pluginutils": "^5.0.4",
50
50
  "@types/estree": "1.0.1",
51
51
  "@types/mocha": "^10.0.1",
52
- "@types/node": "~18.17.5",
52
+ "@types/node": "18.0.0",
53
53
  "@types/yargs-parser": "^21.0.0",
54
- "@typescript-eslint/eslint-plugin": "^6.7.0",
55
- "@typescript-eslint/parser": "^6.7.0",
54
+ "@typescript-eslint/eslint-plugin": "^6.7.2",
55
+ "@typescript-eslint/parser": "^6.7.2",
56
56
  "@vue/eslint-config-prettier": "^8.0.0",
57
- "@vue/eslint-config-typescript": "^11.0.3",
57
+ "@vue/eslint-config-typescript": "^12.0.0",
58
58
  "acorn": "^8.10.0",
59
59
  "acorn-import-assertions": "^1.9.0",
60
60
  "buble": "^0.20.0",
@@ -90,7 +90,7 @@
90
90
  "pretty-bytes": "^6.1.1",
91
91
  "pretty-ms": "^8.0.0",
92
92
  "requirejs": "^2.3.6",
93
- "rollup": "^3.29.1",
93
+ "rollup": "^3.29.2",
94
94
  "rollup-plugin-license": "^3.1.0",
95
95
  "rollup-plugin-string": "^3.0.0",
96
96
  "rollup-plugin-thatworks": "^1.0.4",
@@ -104,7 +104,7 @@
104
104
  "tslib": "^2.6.2",
105
105
  "typescript": "^5.2.2",
106
106
  "vite": "^4.4.9",
107
- "vitepress": "^1.0.0-rc.12",
107
+ "vitepress": "^1.0.0-rc.14",
108
108
  "vue": "^3.3.4",
109
109
  "wasm-pack": "^0.12.1",
110
110
  "weak-napi": "^2.0.2",
@@ -122,7 +122,7 @@
122
122
  "dist/es/package.json"
123
123
  ],
124
124
  "engines": {
125
- "node": ">=14.18.0",
125
+ "node": ">=18.0.0",
126
126
  "npm": ">=8.0.0"
127
127
  },
128
128
  "exports": {