@json-eval-rs/node 0.0.56 → 0.0.58

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.56",
3
+ "version": "0.0.58",
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",
@@ -547,6 +547,6 @@ export class ValidationResult {
547
547
  free(): void;
548
548
  [Symbol.dispose](): void;
549
549
  toJSON(): any;
550
- readonly errors: ValidationError[];
550
+ readonly error: any;
551
551
  readonly has_error: boolean;
552
552
  }
@@ -1997,14 +1997,6 @@ const ValidationErrorFinalization = (typeof FinalizationRegistry === 'undefined'
1997
1997
  */
1998
1998
  class ValidationError {
1999
1999
 
2000
- static __wrap(ptr) {
2001
- ptr = ptr >>> 0;
2002
- const obj = Object.create(ValidationError.prototype);
2003
- obj.__wbg_ptr = ptr;
2004
- ValidationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
2005
- return obj;
2006
- }
2007
-
2008
2000
  __destroy_into_raw() {
2009
2001
  const ptr = this.__wbg_ptr;
2010
2002
  this.__wbg_ptr = 0;
@@ -2170,20 +2162,11 @@ class ValidationResult {
2170
2162
  wasm.__wbg_validationresult_free(ptr, 0);
2171
2163
  }
2172
2164
  /**
2173
- * @returns {ValidationError[]}
2165
+ * @returns {any}
2174
2166
  */
2175
- get errors() {
2176
- try {
2177
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2178
- wasm.validationresult_errors(retptr, this.__wbg_ptr);
2179
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2180
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2181
- var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2182
- wasm.__wbindgen_export_2(r0, r1 * 4, 4);
2183
- return v1;
2184
- } finally {
2185
- wasm.__wbindgen_add_to_stack_pointer(16);
2186
- }
2167
+ get error() {
2168
+ const ret = wasm.validationresult_error(this.__wbg_ptr);
2169
+ return takeObject(ret);
2187
2170
  }
2188
2171
  /**
2189
2172
  * @returns {any}
@@ -2249,7 +2232,7 @@ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
2249
2232
  return ret;
2250
2233
  };
2251
2234
 
2252
- exports.__wbg_log_2f61091b102ce39d = function(arg0, arg1) {
2235
+ exports.__wbg_log_9d6c7c5fbb0600aa = function(arg0, arg1) {
2253
2236
  console.log(getStringFromWasm0(arg0, arg1));
2254
2237
  };
2255
2238
 
@@ -2299,11 +2282,6 @@ exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
2299
2282
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2300
2283
  };
2301
2284
 
2302
- exports.__wbg_validationerror_new = function(arg0) {
2303
- const ret = ValidationError.__wrap(arg0);
2304
- return addHeapObject(ret);
2305
- };
2306
-
2307
2285
  exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
2308
2286
  const ret = typeof(getObject(arg0)) === 'string';
2309
2287
  return ret;
Binary file
@@ -77,7 +77,7 @@ export const validationerror_message: (a: number, b: number) => void;
77
77
  export const validationerror_path: (a: number, b: number) => void;
78
78
  export const validationerror_pattern: (a: number, b: number) => void;
79
79
  export const validationerror_rule_type: (a: number, b: number) => void;
80
- export const validationresult_errors: (a: number, b: number) => void;
80
+ export const validationresult_error: (a: number) => number;
81
81
  export const validationresult_has_error: (a: number) => number;
82
82
  export const validationresult_toJSON: (a: number, b: number) => void;
83
83
  export const init: () => void;