@polkadot/wasm-bridge
Advanced tools
Comparing version 7.2.2 to 7.3.1
@@ -13,2 +13,12 @@ import { stringToU8a, u8aToString } from '@polkadot/util'; | ||
export class Bridge { | ||
__internal__createWasm; | ||
__internal__heap; | ||
__internal__wbg; | ||
__internal__cachegetInt32; | ||
__internal__cachegetUint8; | ||
__internal__heapNext; | ||
__internal__wasm; | ||
__internal__wasmError; | ||
__internal__wasmPromise; | ||
__internal__type; | ||
constructor(createWasm) { | ||
@@ -15,0 +25,0 @@ this.__internal__createWasm = createWasm; |
@@ -16,2 +16,12 @@ "use strict"; | ||
class Bridge { | ||
__internal__createWasm; | ||
__internal__heap; | ||
__internal__wbg; | ||
__internal__cachegetInt32; | ||
__internal__cachegetUint8; | ||
__internal__heapNext; | ||
__internal__wasm; | ||
__internal__wasmError; | ||
__internal__wasmPromise; | ||
__internal__type; | ||
constructor(createWasm) { | ||
@@ -18,0 +28,0 @@ this.__internal__createWasm = createWasm; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageInfo = void 0; | ||
exports.packageInfo = { name: '@polkadot/wasm-bridge', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '7.2.2' }; | ||
exports.packageInfo = { name: '@polkadot/wasm-bridge', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '7.3.1' }; |
@@ -19,47 +19,48 @@ "use strict"; | ||
class Wbg { | ||
__internal__bridge; | ||
constructor(bridge) { | ||
/** @internal */ | ||
this.abort = () => { | ||
throw new Error('abort'); | ||
}; | ||
/** @internal */ | ||
this.__wbindgen_is_undefined = (idx) => { | ||
return this.__internal__bridge.getObject(idx) === undefined; | ||
}; | ||
/** @internal */ | ||
this.__wbindgen_throw = (ptr, len) => { | ||
throw new Error(this.__internal__bridge.getString(ptr, len)); | ||
}; | ||
/** @internal */ | ||
this.__wbg_self_1b7a39e3a92c949c = () => { | ||
return this.__internal__bridge.addObject(DEFAULT_SELF); | ||
}; | ||
/** @internal */ | ||
this.__wbg_require_604837428532a733 = (ptr, len) => { | ||
throw new Error(`Unable to require ${this.__internal__bridge.getString(ptr, len)}`); | ||
}; | ||
/** @internal */ | ||
this.__wbg_crypto_968f1772287e2df0 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO); | ||
}; | ||
/** @internal */ | ||
this.__wbg_getRandomValues_a3d34b4fee3c2869 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO.getRandomValues); | ||
}; | ||
/** @internal */ | ||
this.__wbg_getRandomValues_f5e14ab7ac8e995d = (_arg0, ptr, len) => { | ||
DEFAULT_CRYPTO.getRandomValues(this.__internal__bridge.getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
this.__wbg_randomFillSync_d5bd2d655fdf256a = (_idx, _ptr, _len) => { | ||
throw new Error('randomFillsync is not available'); | ||
// getObject(idx).randomFillSync(getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
this.__wbindgen_object_drop_ref = (idx) => { | ||
this.__internal__bridge.takeObject(idx); | ||
}; | ||
this.__internal__bridge = bridge; | ||
} | ||
/** @internal */ | ||
abort = () => { | ||
throw new Error('abort'); | ||
}; | ||
/** @internal */ | ||
__wbindgen_is_undefined = (idx) => { | ||
return this.__internal__bridge.getObject(idx) === undefined; | ||
}; | ||
/** @internal */ | ||
__wbindgen_throw = (ptr, len) => { | ||
throw new Error(this.__internal__bridge.getString(ptr, len)); | ||
}; | ||
/** @internal */ | ||
__wbg_self_1b7a39e3a92c949c = () => { | ||
return this.__internal__bridge.addObject(DEFAULT_SELF); | ||
}; | ||
/** @internal */ | ||
__wbg_require_604837428532a733 = (ptr, len) => { | ||
throw new Error(`Unable to require ${this.__internal__bridge.getString(ptr, len)}`); | ||
}; | ||
/** @internal */ | ||
__wbg_crypto_968f1772287e2df0 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO); | ||
}; | ||
/** @internal */ | ||
__wbg_getRandomValues_a3d34b4fee3c2869 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO.getRandomValues); | ||
}; | ||
/** @internal */ | ||
__wbg_getRandomValues_f5e14ab7ac8e995d = (_arg0, ptr, len) => { | ||
DEFAULT_CRYPTO.getRandomValues(this.__internal__bridge.getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
__wbg_randomFillSync_d5bd2d655fdf256a = (_idx, _ptr, _len) => { | ||
throw new Error('randomFillsync is not available'); | ||
// getObject(idx).randomFillSync(getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
__wbindgen_object_drop_ref = (idx) => { | ||
this.__internal__bridge.takeObject(idx); | ||
}; | ||
} | ||
exports.Wbg = Wbg; |
@@ -6,3 +6,3 @@ { | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
}, | ||
@@ -22,3 +22,3 @@ "homepage": "https://github.com/polkadot-js/wasm/tree/master/packages/wasm-bridge#readme", | ||
"type": "module", | ||
"version": "7.2.2", | ||
"version": "7.3.1", | ||
"main": "./cjs/index.js", | ||
@@ -96,4 +96,4 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@polkadot/wasm-util": "7.2.2", | ||
"tslib": "^2.6.1" | ||
"@polkadot/wasm-util": "7.3.1", | ||
"tslib": "^2.6.2" | ||
}, | ||
@@ -100,0 +100,0 @@ "peerDependencies": { |
@@ -1,1 +0,1 @@ | ||
export const packageInfo = { name: '@polkadot/wasm-bridge', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '7.2.2' }; | ||
export const packageInfo = { name: '@polkadot/wasm-bridge', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '7.3.1' }; |
83
wbg.js
@@ -16,46 +16,47 @@ import { getRandomValues } from '@polkadot/x-randomvalues'; | ||
export class Wbg { | ||
__internal__bridge; | ||
constructor(bridge) { | ||
/** @internal */ | ||
this.abort = () => { | ||
throw new Error('abort'); | ||
}; | ||
/** @internal */ | ||
this.__wbindgen_is_undefined = (idx) => { | ||
return this.__internal__bridge.getObject(idx) === undefined; | ||
}; | ||
/** @internal */ | ||
this.__wbindgen_throw = (ptr, len) => { | ||
throw new Error(this.__internal__bridge.getString(ptr, len)); | ||
}; | ||
/** @internal */ | ||
this.__wbg_self_1b7a39e3a92c949c = () => { | ||
return this.__internal__bridge.addObject(DEFAULT_SELF); | ||
}; | ||
/** @internal */ | ||
this.__wbg_require_604837428532a733 = (ptr, len) => { | ||
throw new Error(`Unable to require ${this.__internal__bridge.getString(ptr, len)}`); | ||
}; | ||
/** @internal */ | ||
this.__wbg_crypto_968f1772287e2df0 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO); | ||
}; | ||
/** @internal */ | ||
this.__wbg_getRandomValues_a3d34b4fee3c2869 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO.getRandomValues); | ||
}; | ||
/** @internal */ | ||
this.__wbg_getRandomValues_f5e14ab7ac8e995d = (_arg0, ptr, len) => { | ||
DEFAULT_CRYPTO.getRandomValues(this.__internal__bridge.getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
this.__wbg_randomFillSync_d5bd2d655fdf256a = (_idx, _ptr, _len) => { | ||
throw new Error('randomFillsync is not available'); | ||
// getObject(idx).randomFillSync(getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
this.__wbindgen_object_drop_ref = (idx) => { | ||
this.__internal__bridge.takeObject(idx); | ||
}; | ||
this.__internal__bridge = bridge; | ||
} | ||
/** @internal */ | ||
abort = () => { | ||
throw new Error('abort'); | ||
}; | ||
/** @internal */ | ||
__wbindgen_is_undefined = (idx) => { | ||
return this.__internal__bridge.getObject(idx) === undefined; | ||
}; | ||
/** @internal */ | ||
__wbindgen_throw = (ptr, len) => { | ||
throw new Error(this.__internal__bridge.getString(ptr, len)); | ||
}; | ||
/** @internal */ | ||
__wbg_self_1b7a39e3a92c949c = () => { | ||
return this.__internal__bridge.addObject(DEFAULT_SELF); | ||
}; | ||
/** @internal */ | ||
__wbg_require_604837428532a733 = (ptr, len) => { | ||
throw new Error(`Unable to require ${this.__internal__bridge.getString(ptr, len)}`); | ||
}; | ||
/** @internal */ | ||
__wbg_crypto_968f1772287e2df0 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO); | ||
}; | ||
/** @internal */ | ||
__wbg_getRandomValues_a3d34b4fee3c2869 = (_idx) => { | ||
return this.__internal__bridge.addObject(DEFAULT_CRYPTO.getRandomValues); | ||
}; | ||
/** @internal */ | ||
__wbg_getRandomValues_f5e14ab7ac8e995d = (_arg0, ptr, len) => { | ||
DEFAULT_CRYPTO.getRandomValues(this.__internal__bridge.getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
__wbg_randomFillSync_d5bd2d655fdf256a = (_idx, _ptr, _len) => { | ||
throw new Error('randomFillsync is not available'); | ||
// getObject(idx).randomFillSync(getU8a(ptr, len)); | ||
}; | ||
/** @internal */ | ||
__wbindgen_object_drop_ref = (idx) => { | ||
this.__internal__bridge.takeObject(idx); | ||
}; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39963
763
+ Added@polkadot/wasm-util@7.3.1(transitive)
- Removed@polkadot/wasm-util@7.2.2(transitive)
Updated@polkadot/wasm-util@7.3.1
Updatedtslib@^2.6.2