panrelease 0.15.1 → 0.17.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "panrelease",
3
- "version": "0.15.1",
3
+ "version": "0.17.0",
4
4
  "description": "Utility to release software",
5
5
  "keywords": [
6
6
  "cli",
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');
@@ -186,6 +186,19 @@ function debugString(val) {
186
186
  // TODO we could test for more things here, like `Set`s and `Map`s.
187
187
  return className;
188
188
  }
189
+ /**
190
+ * @param {Array<any>} js_args
191
+ */
192
+ module.exports.run = function(js_args) {
193
+ wasm.run(addHeapObject(js_args));
194
+ };
195
+
196
+ function passArray8ToWasm0(arg, malloc) {
197
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
198
+ getUint8Memory0().set(arg, ptr / 1);
199
+ WASM_VECTOR_LEN = arg.length;
200
+ return ptr;
201
+ }
189
202
 
190
203
  function handleError(f, args) {
191
204
  try {
@@ -195,19 +208,6 @@ function handleError(f, args) {
195
208
  }
196
209
  }
197
210
 
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
- /**
205
- * @param {Array<any>} js_args
206
- */
207
- module.exports.run = function(js_args) {
208
- wasm.run(addHeapObject(js_args));
209
- };
210
-
211
211
  const ReifyRunArgsFinalization = (typeof FinalizationRegistry === 'undefined')
212
212
  ? { register: () => {}, unregister: () => {} }
213
213
  : new FinalizationRegistry(ptr => wasm.__wbg_reifyrunargs_free(ptr >>> 0));
@@ -229,24 +229,33 @@ class ReifyRunArgs {
229
229
  }
230
230
  module.exports.ReifyRunArgs = ReifyRunArgs;
231
231
 
232
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
233
- const ret = new Error(getStringFromWasm0(arg0, arg1));
234
- return addHeapObject(ret);
232
+ module.exports.__wbg_log_0c84599224558073 = 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.__wbg_writeFileSync_d53fa3bf177530a4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
240
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
241
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
242
+ return addHeapObject(ret);
243
+ };
244
+
245
+ module.exports.__wbg_writeFileSync_1e8929252aac3e13 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
242
246
  writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
243
247
  }, arguments) };
244
248
 
245
- module.exports.__wbg_log_40820bb423827392 = function(arg0, arg1) {
246
- console.log(getStringFromWasm0(arg0, arg1));
249
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
250
+ const obj = getObject(arg1);
251
+ const ret = typeof(obj) === 'string' ? obj : undefined;
252
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
+ var len1 = WASM_VECTOR_LEN;
254
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
255
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
247
256
  };
248
257
 
249
- module.exports.__wbg_execSync_da9d050d9e50647c = function() { return handleError(function (arg0, arg1, arg2, arg3) {
258
+ module.exports.__wbg_execSync_84f1d68dba7a4b2b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
250
259
  let deferred0_0;
251
260
  let deferred0_1;
252
261
  try {
@@ -262,12 +271,12 @@ module.exports.__wbg_execSync_da9d050d9e50647c = function() { return handleError
262
271
  }
263
272
  }, arguments) };
264
273
 
265
- module.exports.__wbg_existsSync_22ae2f041ddeff9b = function() { return handleError(function (arg0, arg1) {
274
+ module.exports.__wbg_existsSync_5dc7cd7d9dacf618 = function() { return handleError(function (arg0, arg1) {
266
275
  const ret = existsSync(getStringFromWasm0(arg0, arg1));
267
276
  return ret;
268
277
  }, arguments) };
269
278
 
270
- module.exports.__wbg_cwd_9754a8d7cd20c152 = function(arg0) {
279
+ module.exports.__wbg_cwd_d763a5d7e7454291 = function(arg0) {
271
280
  const ret = cwd();
272
281
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
273
282
  const len1 = WASM_VECTOR_LEN;
@@ -275,7 +284,7 @@ module.exports.__wbg_cwd_9754a8d7cd20c152 = function(arg0) {
275
284
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
276
285
  };
277
286
 
278
- module.exports.__wbg_readFileSync_8595c687544b2a1c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
287
+ module.exports.__wbg_readFileSync_dac3cb40541720e4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
279
288
  const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
280
289
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
290
  const len1 = WASM_VECTOR_LEN;
@@ -283,15 +292,6 @@ module.exports.__wbg_readFileSync_8595c687544b2a1c = function() { return handleE
283
292
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
284
293
  }, arguments) };
285
294
 
286
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
287
- const obj = getObject(arg1);
288
- const ret = typeof(obj) === 'string' ? obj : undefined;
289
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
- var len1 = WASM_VECTOR_LEN;
291
- getInt32Memory0()[arg0 / 4 + 1] = len1;
292
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
293
- };
294
-
295
295
  module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
296
296
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
297
297
  };
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;