panrelease 0.12.2 → 0.12.3
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 +29 -29
- package/pkg/panrelease_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/panrelease.js
CHANGED
|
@@ -185,6 +185,12 @@ function takeObject(idx) {
|
|
|
185
185
|
function isLikeNone(x) {
|
|
186
186
|
return x === undefined || x === null;
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* @param {Array<any>} js_args
|
|
190
|
+
*/
|
|
191
|
+
module.exports.run = function(js_args) {
|
|
192
|
+
wasm.run(addHeapObject(js_args));
|
|
193
|
+
};
|
|
188
194
|
|
|
189
195
|
function handleError(f, args) {
|
|
190
196
|
try {
|
|
@@ -200,12 +206,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
200
206
|
WASM_VECTOR_LEN = arg.length;
|
|
201
207
|
return ptr;
|
|
202
208
|
}
|
|
203
|
-
/**
|
|
204
|
-
* @param {Array<any>} js_args
|
|
205
|
-
*/
|
|
206
|
-
module.exports.run = function(js_args) {
|
|
207
|
-
wasm.run(addHeapObject(js_args));
|
|
208
|
-
};
|
|
209
209
|
|
|
210
210
|
const ReifyRunArgsFinalization = new FinalizationRegistry(ptr => wasm.__wbg_reifyrunargs_free(ptr >>> 0));
|
|
211
211
|
/**
|
|
@@ -340,6 +340,10 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
340
340
|
return addHeapObject(ret);
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
+
module.exports.__wbg_log_3e524f752740eaf7 = function(arg0, arg1) {
|
|
344
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
345
|
+
};
|
|
346
|
+
|
|
343
347
|
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
344
348
|
const ret = arg0;
|
|
345
349
|
return addHeapObject(ret);
|
|
@@ -354,28 +358,7 @@ module.exports.__wbg_set_bd72c078edfa51ad = function(arg0, arg1, arg2) {
|
|
|
354
358
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
355
359
|
};
|
|
356
360
|
|
|
357
|
-
module.exports.
|
|
358
|
-
writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
359
|
-
}, arguments) };
|
|
360
|
-
|
|
361
|
-
module.exports.__wbg_existsSync_a726ca5c2e9d6edd = function() { return handleError(function (arg0, arg1) {
|
|
362
|
-
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
363
|
-
return ret;
|
|
364
|
-
}, arguments) };
|
|
365
|
-
|
|
366
|
-
module.exports.__wbg_log_60ec10830f37296b = function(arg0, arg1) {
|
|
367
|
-
console.log(getStringFromWasm0(arg0, arg1));
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
module.exports.__wbg_cwd_6d4103aef4b4171b = function(arg0) {
|
|
371
|
-
const ret = cwd();
|
|
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;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
module.exports.__wbg_readFileSync_c24156fef4803b37 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
361
|
+
module.exports.__wbg_readFileSync_229b094c61be3337 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
379
362
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
380
363
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
364
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -383,7 +366,16 @@ module.exports.__wbg_readFileSync_c24156fef4803b37 = function() { return handleE
|
|
|
383
366
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
384
367
|
}, arguments) };
|
|
385
368
|
|
|
386
|
-
module.exports.
|
|
369
|
+
module.exports.__wbg_writeFileSync_1707ec2a6a20b259 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
370
|
+
writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
371
|
+
}, arguments) };
|
|
372
|
+
|
|
373
|
+
module.exports.__wbg_existsSync_2522b4a8c64b32a8 = function() { return handleError(function (arg0, arg1) {
|
|
374
|
+
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
375
|
+
return ret;
|
|
376
|
+
}, arguments) };
|
|
377
|
+
|
|
378
|
+
module.exports.__wbg_execSync_3f974956a51fdcf5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
387
379
|
let deferred0_0;
|
|
388
380
|
let deferred0_1;
|
|
389
381
|
try {
|
|
@@ -399,6 +391,14 @@ module.exports.__wbg_execSync_d8268e844972718d = function() { return handleError
|
|
|
399
391
|
}
|
|
400
392
|
}, arguments) };
|
|
401
393
|
|
|
394
|
+
module.exports.__wbg_cwd_7170ae6f0742a472 = 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
|
+
|
|
402
402
|
const path = require('path').join(__dirname, 'panrelease_bg.wasm');
|
|
403
403
|
const bytes = require('fs').readFileSync(path);
|
|
404
404
|
|
package/pkg/panrelease_bg.wasm
CHANGED
|
Binary file
|