@json-eval-rs/bundler 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
package/pkg/json_eval_rs_bg.js
CHANGED
|
@@ -2005,14 +2005,6 @@ const ValidationErrorFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
2005
2005
|
*/
|
|
2006
2006
|
export class ValidationError {
|
|
2007
2007
|
|
|
2008
|
-
static __wrap(ptr) {
|
|
2009
|
-
ptr = ptr >>> 0;
|
|
2010
|
-
const obj = Object.create(ValidationError.prototype);
|
|
2011
|
-
obj.__wbg_ptr = ptr;
|
|
2012
|
-
ValidationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2013
|
-
return obj;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
2008
|
__destroy_into_raw() {
|
|
2017
2009
|
const ptr = this.__wbg_ptr;
|
|
2018
2010
|
this.__wbg_ptr = 0;
|
|
@@ -2176,20 +2168,11 @@ export class ValidationResult {
|
|
|
2176
2168
|
wasm.__wbg_validationresult_free(ptr, 0);
|
|
2177
2169
|
}
|
|
2178
2170
|
/**
|
|
2179
|
-
* @returns {
|
|
2171
|
+
* @returns {any}
|
|
2180
2172
|
*/
|
|
2181
|
-
get
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
wasm.validationresult_errors(retptr, this.__wbg_ptr);
|
|
2185
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2186
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2187
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2188
|
-
wasm.__wbindgen_export_2(r0, r1 * 4, 4);
|
|
2189
|
-
return v1;
|
|
2190
|
-
} finally {
|
|
2191
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2192
|
-
}
|
|
2173
|
+
get error() {
|
|
2174
|
+
const ret = wasm.validationresult_error(this.__wbg_ptr);
|
|
2175
|
+
return takeObject(ret);
|
|
2193
2176
|
}
|
|
2194
2177
|
/**
|
|
2195
2178
|
* @returns {any}
|
|
@@ -2253,7 +2236,7 @@ export function __wbg_getTime_6bb3f64e0f18f817(arg0) {
|
|
|
2253
2236
|
return ret;
|
|
2254
2237
|
};
|
|
2255
2238
|
|
|
2256
|
-
export function
|
|
2239
|
+
export function __wbg_log_9d6c7c5fbb0600aa(arg0, arg1) {
|
|
2257
2240
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
2258
2241
|
};
|
|
2259
2242
|
|
|
@@ -2303,11 +2286,6 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
2303
2286
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2304
2287
|
};
|
|
2305
2288
|
|
|
2306
|
-
export function __wbg_validationerror_new(arg0) {
|
|
2307
|
-
const ret = ValidationError.__wrap(arg0);
|
|
2308
|
-
return addHeapObject(ret);
|
|
2309
|
-
};
|
|
2310
|
-
|
|
2311
2289
|
export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
|
|
2312
2290
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
2313
2291
|
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;
|