panrelease 0.16.0 → 0.18.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.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Utility to release software",
5
5
  "keywords": [
6
6
  "cli",
package/pkg/panrelease.js CHANGED
@@ -4,7 +4,7 @@ let wasm;
4
4
  const { execSync } = require(`child_process`);
5
5
  const { readFileSync, writeFileSync, existsSync } = require(`fs`);
6
6
  const { cwd } = require(`process`);
7
- const { TextDecoder, TextEncoder } = require(`util`);
7
+ const { TextEncoder, TextDecoder } = require(`util`);
8
8
 
9
9
  const heap = new Array(128).fill(undefined);
10
10
 
@@ -26,9 +26,7 @@ function takeObject(idx) {
26
26
  return ret;
27
27
  }
28
28
 
29
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
-
31
- cachedTextDecoder.decode();
29
+ let WASM_VECTOR_LEN = 0;
32
30
 
33
31
  let cachedUint8Memory0 = null;
34
32
 
@@ -39,22 +37,6 @@ function getUint8Memory0() {
39
37
  return cachedUint8Memory0;
40
38
  }
41
39
 
42
- function getStringFromWasm0(ptr, len) {
43
- ptr = ptr >>> 0;
44
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
- }
46
-
47
- function addHeapObject(obj) {
48
- if (heap_next === heap.length) heap.push(heap.length + 1);
49
- const idx = heap_next;
50
- heap_next = heap[idx];
51
-
52
- heap[idx] = obj;
53
- return idx;
54
- }
55
-
56
- let WASM_VECTOR_LEN = 0;
57
-
58
40
  let cachedTextEncoder = new TextEncoder('utf-8');
59
41
 
60
42
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -122,6 +104,24 @@ function getInt32Memory0() {
122
104
  return cachedInt32Memory0;
123
105
  }
124
106
 
107
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
108
+
109
+ cachedTextDecoder.decode();
110
+
111
+ function getStringFromWasm0(ptr, len) {
112
+ ptr = ptr >>> 0;
113
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
114
+ }
115
+
116
+ function addHeapObject(obj) {
117
+ if (heap_next === heap.length) heap.push(heap.length + 1);
118
+ const idx = heap_next;
119
+ heap_next = heap[idx];
120
+
121
+ heap[idx] = obj;
122
+ return idx;
123
+ }
124
+
125
125
  function debugString(val) {
126
126
  // primitive types
127
127
  const type = typeof val;
@@ -229,40 +229,19 @@ class ReifyRunArgs {
229
229
  }
230
230
  module.exports.ReifyRunArgs = ReifyRunArgs;
231
231
 
232
- module.exports.__wbg_log_7f8525f34484f362 = function(arg0, arg1) {
233
- console.log(getStringFromWasm0(arg0, arg1));
234
- };
235
-
236
232
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
237
233
  takeObject(arg0);
238
234
  };
239
235
 
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
- };
247
-
248
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
249
- const ret = new Error(getStringFromWasm0(arg0, arg1));
250
- return addHeapObject(ret);
236
+ module.exports.__wbg_log_6c1e2e187791a00a = function(arg0, arg1) {
237
+ console.log(getStringFromWasm0(arg0, arg1));
251
238
  };
252
239
 
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) {
240
+ module.exports.__wbg_writeFileSync_de946d161feeeebf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
262
241
  writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
263
242
  }, arguments) };
264
243
 
265
- module.exports.__wbg_execSync_09b5de8ef8d0e5d9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
244
+ module.exports.__wbg_execSync_37574b7da4d566f8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
266
245
  let deferred0_0;
267
246
  let deferred0_1;
268
247
  try {
@@ -278,11 +257,19 @@ module.exports.__wbg_execSync_09b5de8ef8d0e5d9 = function() { return handleError
278
257
  }
279
258
  }, arguments) };
280
259
 
281
- module.exports.__wbg_existsSync_31a7375fd56cf92a = function() { return handleError(function (arg0, arg1) {
260
+ module.exports.__wbg_existsSync_bf9e80c63259cc16 = function() { return handleError(function (arg0, arg1) {
282
261
  const ret = existsSync(getStringFromWasm0(arg0, arg1));
283
262
  return ret;
284
263
  }, arguments) };
285
264
 
265
+ module.exports.__wbg_readFileSync_314685f0e97ef8ec = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
266
+ const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
267
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
268
+ const len1 = WASM_VECTOR_LEN;
269
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
270
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
271
+ }, arguments) };
272
+
286
273
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
287
274
  const obj = getObject(arg1);
288
275
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -292,6 +279,19 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
292
279
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
293
280
  };
294
281
 
282
+ module.exports.__wbg_cwd_70b099799e1dc0f4 = function(arg0) {
283
+ const ret = cwd();
284
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
285
+ const len1 = WASM_VECTOR_LEN;
286
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
287
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
288
+ };
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.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
296
296
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
297
297
  };
Binary file