@json-eval-rs/node 0.0.57 → 0.0.59

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.57",
3
+ "version": "0.0.59",
4
4
  "description": "JSON Eval RS for Node.js and Server-Side Rendering with ergonomic API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/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
  */
@@ -143,17 +143,10 @@ function passArrayJsValueToWasm0(array, malloc) {
143
143
  return ptr;
144
144
  }
145
145
  /**
146
- * Initialize the library (sets up panic hook)
147
- */
148
- exports.init = function() {
149
- wasm.init();
150
- };
151
-
152
- /**
153
- * Get the library version
146
+ * Get library version (alias)
154
147
  * @returns {string}
155
148
  */
156
- exports.getVersion = function() {
149
+ exports.version = function() {
157
150
  let deferred1_0;
158
151
  let deferred1_1;
159
152
  try {
@@ -171,10 +164,10 @@ exports.getVersion = function() {
171
164
  };
172
165
 
173
166
  /**
174
- * Get library version (alias)
167
+ * Get the library version
175
168
  * @returns {string}
176
169
  */
177
- exports.version = function() {
170
+ exports.getVersion = function() {
178
171
  let deferred1_0;
179
172
  let deferred1_1;
180
173
  try {
@@ -191,6 +184,13 @@ exports.version = function() {
191
184
  }
192
185
  };
193
186
 
187
+ /**
188
+ * Initialize the library (sets up panic hook)
189
+ */
190
+ exports.init = function() {
191
+ wasm.init();
192
+ };
193
+
194
194
  function passArray8ToWasm0(arg, malloc) {
195
195
  const ptr = malloc(arg.length * 1, 1) >>> 0;
196
196
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -2232,7 +2232,7 @@ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
2232
2232
  return ret;
2233
2233
  };
2234
2234
 
2235
- exports.__wbg_log_c5bf37a3dcf4677e = function(arg0, arg1) {
2235
+ exports.__wbg_log_48189e6c2c18cf42 = function(arg0, arg1) {
2236
2236
  console.log(getStringFromWasm0(arg0, arg1));
2237
2237
  };
2238
2238
 
Binary file