panrelease 0.17.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.17.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;
@@ -186,12 +186,6 @@ 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
189
 
196
190
  function passArray8ToWasm0(arg, malloc) {
197
191
  const ptr = malloc(arg.length * 1, 1) >>> 0;
@@ -207,6 +201,12 @@ function handleError(f, args) {
207
201
  wasm.__wbindgen_exn_store(addHeapObject(e));
208
202
  }
209
203
  }
204
+ /**
205
+ * @param {Array<any>} js_args
206
+ */
207
+ module.exports.run = function(js_args) {
208
+ wasm.run(addHeapObject(js_args));
209
+ };
210
210
 
211
211
  const ReifyRunArgsFinalization = (typeof FinalizationRegistry === 'undefined')
212
212
  ? { register: () => {}, unregister: () => {} }
@@ -229,33 +229,19 @@ class ReifyRunArgs {
229
229
  }
230
230
  module.exports.ReifyRunArgs = ReifyRunArgs;
231
231
 
232
- module.exports.__wbg_log_0c84599224558073 = 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.__wbindgen_error_new = function(arg0, arg1) {
241
- const ret = new Error(getStringFromWasm0(arg0, arg1));
242
- return addHeapObject(ret);
236
+ module.exports.__wbg_log_6c1e2e187791a00a = function(arg0, arg1) {
237
+ console.log(getStringFromWasm0(arg0, arg1));
243
238
  };
244
239
 
245
- module.exports.__wbg_writeFileSync_1e8929252aac3e13 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
240
+ module.exports.__wbg_writeFileSync_de946d161feeeebf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
246
241
  writeFileSync(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
247
242
  }, arguments) };
248
243
 
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;
256
- };
257
-
258
- module.exports.__wbg_execSync_84f1d68dba7a4b2b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
244
+ module.exports.__wbg_execSync_37574b7da4d566f8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
259
245
  let deferred0_0;
260
246
  let deferred0_1;
261
247
  try {
@@ -271,26 +257,40 @@ module.exports.__wbg_execSync_84f1d68dba7a4b2b = function() { return handleError
271
257
  }
272
258
  }, arguments) };
273
259
 
274
- module.exports.__wbg_existsSync_5dc7cd7d9dacf618 = function() { return handleError(function (arg0, arg1) {
260
+ module.exports.__wbg_existsSync_bf9e80c63259cc16 = function() { return handleError(function (arg0, arg1) {
275
261
  const ret = existsSync(getStringFromWasm0(arg0, arg1));
276
262
  return ret;
277
263
  }, arguments) };
278
264
 
279
- module.exports.__wbg_cwd_d763a5d7e7454291 = function(arg0) {
280
- const ret = cwd();
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));
281
267
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
268
  const len1 = WASM_VECTOR_LEN;
283
269
  getInt32Memory0()[arg0 / 4 + 1] = len1;
284
270
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
271
+ }, arguments) };
272
+
273
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
274
+ const obj = getObject(arg1);
275
+ const ret = typeof(obj) === 'string' ? obj : undefined;
276
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
277
+ var len1 = WASM_VECTOR_LEN;
278
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
279
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
285
280
  };
286
281
 
287
- module.exports.__wbg_readFileSync_dac3cb40541720e4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
288
- const ret = readFileSync(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
282
+ module.exports.__wbg_cwd_70b099799e1dc0f4 = function(arg0) {
283
+ const ret = cwd();
289
284
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
285
  const len1 = WASM_VECTOR_LEN;
291
286
  getInt32Memory0()[arg0 / 4 + 1] = len1;
292
287
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
293
- }, arguments) };
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
294
 
295
295
  module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
296
296
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
Binary file