panrelease 0.15.1 → 0.16.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.
- package/package.json +1 -1
- package/pkg/panrelease.js +53 -53
- package/pkg/panrelease_bg.wasm +0 -0
- package/pkg/panrelease_bg.wasm.d.ts +1 -1
package/package.json
CHANGED
package/pkg/panrelease.js
CHANGED
|
@@ -6,6 +6,26 @@ const { readFileSync, writeFileSync, existsSync } = require(`fs`);
|
|
|
6
6
|
const { cwd } = require(`process`);
|
|
7
7
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
8
8
|
|
|
9
|
+
const heap = new Array(128).fill(undefined);
|
|
10
|
+
|
|
11
|
+
heap.push(undefined, null, true, false);
|
|
12
|
+
|
|
13
|
+
function getObject(idx) { return heap[idx]; }
|
|
14
|
+
|
|
15
|
+
let heap_next = heap.length;
|
|
16
|
+
|
|
17
|
+
function dropObject(idx) {
|
|
18
|
+
if (idx < 132) return;
|
|
19
|
+
heap[idx] = heap_next;
|
|
20
|
+
heap_next = idx;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function takeObject(idx) {
|
|
24
|
+
const ret = getObject(idx);
|
|
25
|
+
dropObject(idx);
|
|
26
|
+
return ret;
|
|
27
|
+
}
|
|
28
|
+
|
|
9
29
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
10
30
|
|
|
11
31
|
cachedTextDecoder.decode();
|
|
@@ -24,12 +44,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
24
44
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
25
45
|
}
|
|
26
46
|
|
|
27
|
-
const heap = new Array(128).fill(undefined);
|
|
28
|
-
|
|
29
|
-
heap.push(undefined, null, true, false);
|
|
30
|
-
|
|
31
|
-
let heap_next = heap.length;
|
|
32
|
-
|
|
33
47
|
function addHeapObject(obj) {
|
|
34
48
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
35
49
|
const idx = heap_next;
|
|
@@ -39,20 +53,6 @@ function addHeapObject(obj) {
|
|
|
39
53
|
return idx;
|
|
40
54
|
}
|
|
41
55
|
|
|
42
|
-
function getObject(idx) { return heap[idx]; }
|
|
43
|
-
|
|
44
|
-
function dropObject(idx) {
|
|
45
|
-
if (idx < 132) return;
|
|
46
|
-
heap[idx] = heap_next;
|
|
47
|
-
heap_next = idx;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function takeObject(idx) {
|
|
51
|
-
const ret = getObject(idx);
|
|
52
|
-
dropObject(idx);
|
|
53
|
-
return ret;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
56
|
let WASM_VECTOR_LEN = 0;
|
|
57
57
|
|
|
58
58
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -187,6 +187,13 @@ function debugString(val) {
|
|
|
187
187
|
return className;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
191
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
192
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
193
|
+
WASM_VECTOR_LEN = arg.length;
|
|
194
|
+
return ptr;
|
|
195
|
+
}
|
|
196
|
+
|
|
190
197
|
function handleError(f, args) {
|
|
191
198
|
try {
|
|
192
199
|
return f.apply(this, args);
|
|
@@ -194,13 +201,6 @@ function handleError(f, args) {
|
|
|
194
201
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
195
202
|
}
|
|
196
203
|
}
|
|
197
|
-
|
|
198
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
199
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
200
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
201
|
-
WASM_VECTOR_LEN = arg.length;
|
|
202
|
-
return ptr;
|
|
203
|
-
}
|
|
204
204
|
/**
|
|
205
205
|
* @param {Array<any>} js_args
|
|
206
206
|
*/
|
|
@@ -229,24 +229,40 @@ class ReifyRunArgs {
|
|
|
229
229
|
}
|
|
230
230
|
module.exports.ReifyRunArgs = ReifyRunArgs;
|
|
231
231
|
|
|
232
|
-
module.exports.
|
|
233
|
-
|
|
234
|
-
return addHeapObject(ret);
|
|
232
|
+
module.exports.__wbg_log_7f8525f34484f362 = function(arg0, arg1) {
|
|
233
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
235
234
|
};
|
|
236
235
|
|
|
237
236
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
238
237
|
takeObject(arg0);
|
|
239
238
|
};
|
|
240
239
|
|
|
241
|
-
module.exports.
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
module.exports.__wbg_cwd_97cbc341b723986a = function(arg0) {
|
|
241
|
+
const ret = cwd();
|
|
242
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
243
|
+
const len1 = WASM_VECTOR_LEN;
|
|
244
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
245
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
246
|
+
};
|
|
244
247
|
|
|
245
|
-
module.exports.
|
|
246
|
-
|
|
248
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
249
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
250
|
+
return addHeapObject(ret);
|
|
247
251
|
};
|
|
248
252
|
|
|
249
|
-
module.exports.
|
|
253
|
+
module.exports.__wbg_readFileSync_76f34e6b7ae981ce = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
254
|
+
const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
255
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
|
+
const len1 = WASM_VECTOR_LEN;
|
|
257
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
258
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
259
|
+
}, arguments) };
|
|
260
|
+
|
|
261
|
+
module.exports.__wbg_writeFileSync_28b9dd4359b74ebe = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
262
|
+
writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
263
|
+
}, arguments) };
|
|
264
|
+
|
|
265
|
+
module.exports.__wbg_execSync_09b5de8ef8d0e5d9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
250
266
|
let deferred0_0;
|
|
251
267
|
let deferred0_1;
|
|
252
268
|
try {
|
|
@@ -262,27 +278,11 @@ module.exports.__wbg_execSync_da9d050d9e50647c = function() { return handleError
|
|
|
262
278
|
}
|
|
263
279
|
}, arguments) };
|
|
264
280
|
|
|
265
|
-
module.exports.
|
|
281
|
+
module.exports.__wbg_existsSync_31a7375fd56cf92a = function() { return handleError(function (arg0, arg1) {
|
|
266
282
|
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
267
283
|
return ret;
|
|
268
284
|
}, arguments) };
|
|
269
285
|
|
|
270
|
-
module.exports.__wbg_cwd_9754a8d7cd20c152 = function(arg0) {
|
|
271
|
-
const ret = cwd();
|
|
272
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
-
const len1 = WASM_VECTOR_LEN;
|
|
274
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
275
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
module.exports.__wbg_readFileSync_8595c687544b2a1c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
279
|
-
const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
280
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
-
const len1 = WASM_VECTOR_LEN;
|
|
282
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
283
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
284
|
-
}, arguments) };
|
|
285
|
-
|
|
286
286
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
287
287
|
const obj = getObject(arg1);
|
|
288
288
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
package/pkg/panrelease_bg.wasm
CHANGED
|
Binary file
|
|
@@ -5,5 +5,5 @@ export function __wbg_reifyrunargs_free(a: number): void;
|
|
|
5
5
|
export function run(a: number): void;
|
|
6
6
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
7
7
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
8
|
-
export function __wbindgen_exn_store(a: number): void;
|
|
9
8
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
9
|
+
export function __wbindgen_exn_store(a: number): void;
|