avatar-sdk
Advanced tools
Comparing version 0.1.48 to 0.1.49
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.1.48", | ||
"version": "0.1.49", | ||
"files": [ | ||
@@ -9,0 +9,0 @@ "xrsavatar_bg.js", |
@@ -23,4 +23,8 @@ import * as wasm from './xrsavatar_bg.wasm'; | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachegetUint8Memory0 = null; | ||
@@ -34,2 +38,17 @@ function getUint8Memory0() { | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder; | ||
@@ -98,21 +117,2 @@ | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
function isLikeNone(x) { | ||
@@ -220,3 +220,3 @@ return x === undefined || x === null; | ||
function __wbg_adapter_32(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha72379be52c284c5(arg0, arg1); | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha7e64675ff1b3c2f(arg0, arg1); | ||
} | ||
@@ -414,2 +414,7 @@ | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_cb_drop(arg0) { | ||
@@ -434,7 +439,2 @@ const obj = takeObject(arg0).original; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_new_59cb74e423758ede() { | ||
@@ -1217,8 +1217,8 @@ var ret = new Error(); | ||
export function __wbindgen_closure_wrapper1018(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 312, __wbg_adapter_32); | ||
export function __wbindgen_closure_wrapper1023(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 315, __wbg_adapter_32); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2193(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper2192(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_35); | ||
@@ -1228,3 +1228,3 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper2195(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper2194(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_38); | ||
@@ -1234,3 +1234,3 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper2197(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper2196(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_41); | ||
@@ -1240,3 +1240,3 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper2199(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper2198(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_44); | ||
@@ -1246,3 +1246,3 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper2201(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper2200(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_47); | ||
@@ -1252,3 +1252,3 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper2203(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper2202(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_50); | ||
@@ -1258,3 +1258,3 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper5507(arg0, arg1, arg2) { | ||
export function __wbindgen_closure_wrapper5506(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 1414, __wbg_adapter_53); | ||
@@ -1261,0 +1261,0 @@ return addHeapObject(ret); |
Sorry, the diff of this file is not supported yet
3518821