@json-eval-rs/node 0.0.40 → 0.0.41

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": "@json-eval-rs/node",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "JSON Eval RS for Node.js and Server-Side Rendering with ergonomic API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,17 +1,17 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Initialize the library (sets up panic hook)
4
+ * Get library version (alias)
5
5
  */
6
- export function init(): void;
6
+ export function version(): string;
7
7
  /**
8
8
  * Get the library version
9
9
  */
10
10
  export function getVersion(): string;
11
11
  /**
12
- * Get library version (alias)
12
+ * Initialize the library (sets up panic hook)
13
13
  */
14
- export function version(): string;
14
+ export function init(): void;
15
15
  /**
16
16
  * WebAssembly wrapper for JSONEval
17
17
  */
@@ -208,17 +208,10 @@ function passArrayJsValueToWasm0(array, malloc) {
208
208
  return ptr;
209
209
  }
210
210
  /**
211
- * Initialize the library (sets up panic hook)
212
- */
213
- exports.init = function() {
214
- wasm.init();
215
- };
216
-
217
- /**
218
- * Get the library version
211
+ * Get library version (alias)
219
212
  * @returns {string}
220
213
  */
221
- exports.getVersion = function() {
214
+ exports.version = function() {
222
215
  let deferred1_0;
223
216
  let deferred1_1;
224
217
  try {
@@ -236,10 +229,10 @@ exports.getVersion = function() {
236
229
  };
237
230
 
238
231
  /**
239
- * Get library version (alias)
232
+ * Get the library version
240
233
  * @returns {string}
241
234
  */
242
- exports.version = function() {
235
+ exports.getVersion = function() {
243
236
  let deferred1_0;
244
237
  let deferred1_1;
245
238
  try {
@@ -256,6 +249,13 @@ exports.version = function() {
256
249
  }
257
250
  };
258
251
 
252
+ /**
253
+ * Initialize the library (sets up panic hook)
254
+ */
255
+ exports.init = function() {
256
+ wasm.init();
257
+ };
258
+
259
259
  function passArray8ToWasm0(arg, malloc) {
260
260
  const ptr = malloc(arg.length * 1, 1) >>> 0;
261
261
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -2176,7 +2176,7 @@ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
2176
2176
  return ret;
2177
2177
  };
2178
2178
 
2179
- exports.__wbg_log_d1460a0da02cf366 = function(arg0, arg1) {
2179
+ exports.__wbg_log_719b446733afdc93 = function(arg0, arg1) {
2180
2180
  console.log(getStringFromWasm0(arg0, arg1));
2181
2181
  };
2182
2182
 
Binary file