@json-eval-rs/vanilla 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
package/pkg/json_eval_rs.d.ts
CHANGED
|
@@ -547,7 +547,7 @@ export class ValidationResult {
|
|
|
547
547
|
free(): void;
|
|
548
548
|
[Symbol.dispose](): void;
|
|
549
549
|
toJSON(): any;
|
|
550
|
-
readonly
|
|
550
|
+
readonly error: any;
|
|
551
551
|
readonly has_error: boolean;
|
|
552
552
|
}
|
|
553
553
|
|
|
@@ -631,7 +631,7 @@ export interface InitOutput {
|
|
|
631
631
|
readonly validationerror_path: (a: number, b: number) => void;
|
|
632
632
|
readonly validationerror_pattern: (a: number, b: number) => void;
|
|
633
633
|
readonly validationerror_rule_type: (a: number, b: number) => void;
|
|
634
|
-
readonly
|
|
634
|
+
readonly validationresult_error: (a: number) => number;
|
|
635
635
|
readonly validationresult_has_error: (a: number) => number;
|
|
636
636
|
readonly validationresult_toJSON: (a: number, b: number) => void;
|
|
637
637
|
readonly init: () => void;
|
package/pkg/json_eval_rs.js
CHANGED
|
@@ -2001,14 +2001,6 @@ const ValidationErrorFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
2001
2001
|
*/
|
|
2002
2002
|
export class ValidationError {
|
|
2003
2003
|
|
|
2004
|
-
static __wrap(ptr) {
|
|
2005
|
-
ptr = ptr >>> 0;
|
|
2006
|
-
const obj = Object.create(ValidationError.prototype);
|
|
2007
|
-
obj.__wbg_ptr = ptr;
|
|
2008
|
-
ValidationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2009
|
-
return obj;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
2004
|
__destroy_into_raw() {
|
|
2013
2005
|
const ptr = this.__wbg_ptr;
|
|
2014
2006
|
this.__wbg_ptr = 0;
|
|
@@ -2172,20 +2164,11 @@ export class ValidationResult {
|
|
|
2172
2164
|
wasm.__wbg_validationresult_free(ptr, 0);
|
|
2173
2165
|
}
|
|
2174
2166
|
/**
|
|
2175
|
-
* @returns {
|
|
2167
|
+
* @returns {any}
|
|
2176
2168
|
*/
|
|
2177
|
-
get
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
wasm.validationresult_errors(retptr, this.__wbg_ptr);
|
|
2181
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2182
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2183
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2184
|
-
wasm.__wbindgen_export_2(r0, r1 * 4, 4);
|
|
2185
|
-
return v1;
|
|
2186
|
-
} finally {
|
|
2187
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2188
|
-
}
|
|
2169
|
+
get error() {
|
|
2170
|
+
const ret = wasm.validationresult_error(this.__wbg_ptr);
|
|
2171
|
+
return takeObject(ret);
|
|
2189
2172
|
}
|
|
2190
2173
|
/**
|
|
2191
2174
|
* @returns {any}
|
|
@@ -2282,7 +2265,7 @@ function __wbg_get_imports() {
|
|
|
2282
2265
|
const ret = getObject(arg0).getTime();
|
|
2283
2266
|
return ret;
|
|
2284
2267
|
};
|
|
2285
|
-
imports.wbg.
|
|
2268
|
+
imports.wbg.__wbg_log_9d6c7c5fbb0600aa = function(arg0, arg1) {
|
|
2286
2269
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
2287
2270
|
};
|
|
2288
2271
|
imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
@@ -2322,10 +2305,6 @@ function __wbg_get_imports() {
|
|
|
2322
2305
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2323
2306
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2324
2307
|
};
|
|
2325
|
-
imports.wbg.__wbg_validationerror_new = function(arg0) {
|
|
2326
|
-
const ret = ValidationError.__wrap(arg0);
|
|
2327
|
-
return addHeapObject(ret);
|
|
2328
|
-
};
|
|
2329
2308
|
imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
2330
2309
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
2331
2310
|
return ret;
|
package/pkg/json_eval_rs_bg.wasm
CHANGED
|
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
|
|
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;
|