panrelease 0.9.2 → 0.11.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.
- package/package.json +1 -1
- package/pkg/panrelease.js +84 -75
- package/pkg/panrelease_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/panrelease.js
CHANGED
|
@@ -107,14 +107,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
107
107
|
|
|
108
108
|
if (realloc === undefined) {
|
|
109
109
|
const buf = cachedTextEncoder.encode(arg);
|
|
110
|
-
const ptr = malloc(buf.length);
|
|
110
|
+
const ptr = malloc(buf.length) >>> 0;
|
|
111
111
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
112
112
|
WASM_VECTOR_LEN = buf.length;
|
|
113
113
|
return ptr;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
let len = arg.length;
|
|
117
|
-
let ptr = malloc(len);
|
|
117
|
+
let ptr = malloc(len) >>> 0;
|
|
118
118
|
|
|
119
119
|
const mem = getUint8Memory0();
|
|
120
120
|
|
|
@@ -130,7 +130,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
130
130
|
if (offset !== 0) {
|
|
131
131
|
arg = arg.slice(offset);
|
|
132
132
|
}
|
|
133
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
133
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3) >>> 0;
|
|
134
134
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
135
135
|
const ret = encodeString(arg, view);
|
|
136
136
|
|
|
@@ -155,6 +155,7 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
|
155
155
|
cachedTextDecoder.decode();
|
|
156
156
|
|
|
157
157
|
function getStringFromWasm0(ptr, len) {
|
|
158
|
+
ptr = ptr >>> 0;
|
|
158
159
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
159
160
|
}
|
|
160
161
|
|
|
@@ -184,12 +185,6 @@ function takeObject(idx) {
|
|
|
184
185
|
function isLikeNone(x) {
|
|
185
186
|
return x === undefined || x === null;
|
|
186
187
|
}
|
|
187
|
-
/**
|
|
188
|
-
* @param {Array<any>} js_args
|
|
189
|
-
*/
|
|
190
|
-
module.exports.run = function(js_args) {
|
|
191
|
-
wasm.run(addHeapObject(js_args));
|
|
192
|
-
};
|
|
193
188
|
|
|
194
189
|
function handleError(f, args) {
|
|
195
190
|
try {
|
|
@@ -200,20 +195,26 @@ function handleError(f, args) {
|
|
|
200
195
|
}
|
|
201
196
|
|
|
202
197
|
function passArray8ToWasm0(arg, malloc) {
|
|
203
|
-
const ptr = malloc(arg.length * 1);
|
|
198
|
+
const ptr = malloc(arg.length * 1) >>> 0;
|
|
204
199
|
getUint8Memory0().set(arg, ptr / 1);
|
|
205
200
|
WASM_VECTOR_LEN = arg.length;
|
|
206
201
|
return ptr;
|
|
207
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* @param {Array<any>} js_args
|
|
205
|
+
*/
|
|
206
|
+
module.exports.run = function(js_args) {
|
|
207
|
+
wasm.run(addHeapObject(js_args));
|
|
208
|
+
};
|
|
208
209
|
|
|
209
|
-
const ReifyRunArgsFinalization = new FinalizationRegistry(ptr => wasm.__wbg_reifyrunargs_free(ptr));
|
|
210
|
+
const ReifyRunArgsFinalization = new FinalizationRegistry(ptr => wasm.__wbg_reifyrunargs_free(ptr >>> 0));
|
|
210
211
|
/**
|
|
211
212
|
*/
|
|
212
213
|
class ReifyRunArgs {
|
|
213
214
|
|
|
214
215
|
__destroy_into_raw() {
|
|
215
|
-
const ptr = this.
|
|
216
|
-
this.
|
|
216
|
+
const ptr = this.__wbg_ptr;
|
|
217
|
+
this.__wbg_ptr = 0;
|
|
217
218
|
ReifyRunArgsFinalization.unregister(this);
|
|
218
219
|
return ptr;
|
|
219
220
|
}
|
|
@@ -227,27 +228,27 @@ module.exports.ReifyRunArgs = ReifyRunArgs;
|
|
|
227
228
|
|
|
228
229
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
229
230
|
const ret = debugString(getObject(arg1));
|
|
230
|
-
const
|
|
231
|
-
const
|
|
232
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
233
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
231
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
+
const len1 = WASM_VECTOR_LEN;
|
|
233
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
234
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
234
235
|
};
|
|
235
236
|
|
|
236
237
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
237
238
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
238
239
|
};
|
|
239
240
|
|
|
240
|
-
module.exports.
|
|
241
|
+
module.exports.__wbg_get_e52aaca45f37b337 = function(arg0, arg1) {
|
|
241
242
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
242
243
|
return addHeapObject(ret);
|
|
243
244
|
};
|
|
244
245
|
|
|
245
|
-
module.exports.
|
|
246
|
+
module.exports.__wbg_length_070e3265c186df02 = function(arg0) {
|
|
246
247
|
const ret = getObject(arg0).length;
|
|
247
248
|
return ret;
|
|
248
249
|
};
|
|
249
250
|
|
|
250
|
-
module.exports.
|
|
251
|
+
module.exports.__wbg_new_18bc2084e9a3e1ff = function() {
|
|
251
252
|
const ret = new Array();
|
|
252
253
|
return addHeapObject(ret);
|
|
253
254
|
};
|
|
@@ -261,12 +262,12 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
261
262
|
takeObject(arg0);
|
|
262
263
|
};
|
|
263
264
|
|
|
264
|
-
module.exports.
|
|
265
|
+
module.exports.__wbg_new_b6fd0149e79ffce8 = function() {
|
|
265
266
|
const ret = new Map();
|
|
266
267
|
return addHeapObject(ret);
|
|
267
268
|
};
|
|
268
269
|
|
|
269
|
-
module.exports.
|
|
270
|
+
module.exports.__wbg_new_7befa02319b36069 = function() {
|
|
270
271
|
const ret = new Object();
|
|
271
272
|
return addHeapObject(ret);
|
|
272
273
|
};
|
|
@@ -279,10 +280,10 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
279
280
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
280
281
|
const obj = getObject(arg1);
|
|
281
282
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
282
|
-
var
|
|
283
|
-
var
|
|
284
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
285
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
283
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
284
|
+
var len1 = WASM_VECTOR_LEN;
|
|
285
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
286
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
286
287
|
};
|
|
287
288
|
|
|
288
289
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -290,36 +291,48 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
290
291
|
return addHeapObject(ret);
|
|
291
292
|
};
|
|
292
293
|
|
|
293
|
-
module.exports.
|
|
294
|
+
module.exports.__wbg_set_aee8682c7ee9ac44 = function(arg0, arg1, arg2) {
|
|
294
295
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
295
296
|
};
|
|
296
297
|
|
|
297
|
-
module.exports.
|
|
298
|
+
module.exports.__wbg_set_6c1b2b7b73337778 = function(arg0, arg1, arg2) {
|
|
298
299
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
299
300
|
return addHeapObject(ret);
|
|
300
301
|
};
|
|
301
302
|
|
|
302
|
-
module.exports.
|
|
303
|
+
module.exports.__wbg_getTime_1f655755b697302c = function(arg0) {
|
|
303
304
|
const ret = getObject(arg0).getTime();
|
|
304
305
|
return ret;
|
|
305
306
|
};
|
|
306
307
|
|
|
307
|
-
module.exports.
|
|
308
|
+
module.exports.__wbg_new0_d2a7d711adb0fe0f = function() {
|
|
308
309
|
const ret = new Date();
|
|
309
310
|
return addHeapObject(ret);
|
|
310
311
|
};
|
|
311
312
|
|
|
312
|
-
module.exports.
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
314
|
+
const ret = new Error();
|
|
315
|
+
return addHeapObject(ret);
|
|
316
|
+
};
|
|
315
317
|
|
|
316
|
-
module.exports.
|
|
317
|
-
const ret =
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
319
|
+
const ret = getObject(arg1).stack;
|
|
320
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
|
+
const len1 = WASM_VECTOR_LEN;
|
|
322
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
323
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
324
|
+
};
|
|
320
325
|
|
|
321
|
-
module.exports.
|
|
322
|
-
|
|
326
|
+
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
327
|
+
let deferred0_0;
|
|
328
|
+
let deferred0_1;
|
|
329
|
+
try {
|
|
330
|
+
deferred0_0 = arg0;
|
|
331
|
+
deferred0_1 = arg1;
|
|
332
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
333
|
+
} finally {
|
|
334
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1);
|
|
335
|
+
}
|
|
323
336
|
};
|
|
324
337
|
|
|
325
338
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
@@ -341,55 +354,51 @@ module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
|
341
354
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
342
355
|
};
|
|
343
356
|
|
|
344
|
-
module.exports.
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
350
|
-
const ret = getObject(arg1).stack;
|
|
351
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
352
|
-
const len0 = WASM_VECTOR_LEN;
|
|
353
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
354
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
355
|
-
};
|
|
357
|
+
module.exports.__wbg_writeFileSync_34a452ea2e6948d8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
358
|
+
writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
359
|
+
}, arguments) };
|
|
356
360
|
|
|
357
|
-
module.exports.
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
wasm.__wbindgen_free(arg0, arg1);
|
|
362
|
-
}
|
|
363
|
-
};
|
|
361
|
+
module.exports.__wbg_existsSync_264ecfbcb948ab86 = function() { return handleError(function (arg0, arg1) {
|
|
362
|
+
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
363
|
+
return ret;
|
|
364
|
+
}, arguments) };
|
|
364
365
|
|
|
365
|
-
module.exports.
|
|
366
|
-
|
|
367
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
368
|
-
const len0 = WASM_VECTOR_LEN;
|
|
369
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
370
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
366
|
+
module.exports.__wbg_log_9b281fb097379c95 = function(arg0, arg1) {
|
|
367
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
371
368
|
};
|
|
372
369
|
|
|
373
|
-
module.exports.
|
|
370
|
+
module.exports.__wbg_readFileSync_44f679099d0ff9ab = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
374
371
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
375
|
-
const
|
|
376
|
-
const
|
|
377
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
378
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
372
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
373
|
+
const len1 = WASM_VECTOR_LEN;
|
|
374
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
375
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
379
376
|
}, arguments) };
|
|
380
377
|
|
|
381
|
-
module.exports.
|
|
378
|
+
module.exports.__wbg_execSync_a2bfea5e7f966e50 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
379
|
+
let deferred0_0;
|
|
380
|
+
let deferred0_1;
|
|
382
381
|
try {
|
|
382
|
+
deferred0_0 = arg1;
|
|
383
|
+
deferred0_1 = arg2;
|
|
383
384
|
const ret = execSync(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
384
|
-
const
|
|
385
|
-
const
|
|
386
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
387
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
385
|
+
const ptr2 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
386
|
+
const len2 = WASM_VECTOR_LEN;
|
|
387
|
+
getInt32Memory0()[arg0 / 4 + 1] = len2;
|
|
388
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr2;
|
|
388
389
|
} finally {
|
|
389
|
-
wasm.__wbindgen_free(
|
|
390
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1);
|
|
390
391
|
}
|
|
391
392
|
}, arguments) };
|
|
392
393
|
|
|
394
|
+
module.exports.__wbg_cwd_8001e66ef9c2c203 = function(arg0) {
|
|
395
|
+
const ret = cwd();
|
|
396
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
|
+
const len1 = WASM_VECTOR_LEN;
|
|
398
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
399
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
400
|
+
};
|
|
401
|
+
|
|
393
402
|
const path = require('path').join(__dirname, 'panrelease_bg.wasm');
|
|
394
403
|
const bytes = require('fs').readFileSync(path);
|
|
395
404
|
|
package/pkg/panrelease_bg.wasm
CHANGED
|
Binary file
|