Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/wasm-bridge

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/wasm-bridge - npm Package Compare versions

Comparing version 7.1.1 to 7.1.2

87

bridge.js

@@ -1,3 +0,1 @@

var _Bridge_cachegetInt32, _Bridge_cachegetUint8, _Bridge_createWasm, _Bridge_heap, _Bridge_heapNext, _Bridge_wasm, _Bridge_wasmError, _Bridge_wasmPromise, _Bridge_wbg, _Bridge_type;
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
import { stringToU8a, u8aToString } from '@polkadot/util';

@@ -16,47 +14,37 @@ import { Wbg } from './wbg.js';

constructor(createWasm) {
_Bridge_cachegetInt32.set(this, void 0);
_Bridge_cachegetUint8.set(this, void 0);
_Bridge_createWasm.set(this, void 0);
_Bridge_heap.set(this, void 0);
_Bridge_heapNext.set(this, void 0);
_Bridge_wasm.set(this, void 0);
_Bridge_wasmError.set(this, void 0);
_Bridge_wasmPromise.set(this, void 0);
_Bridge_wbg.set(this, void 0);
_Bridge_type.set(this, void 0);
__classPrivateFieldSet(this, _Bridge_createWasm, createWasm, "f");
__classPrivateFieldSet(this, _Bridge_cachegetInt32, null, "f");
__classPrivateFieldSet(this, _Bridge_cachegetUint8, null, "f");
__classPrivateFieldSet(this, _Bridge_heap, new Array(32)
this.__internal__createWasm = createWasm;
this.__internal__cachegetInt32 = null;
this.__internal__cachegetUint8 = null;
this.__internal__heap = new Array(32)
.fill(undefined)
.concat(undefined, null, true, false), "f");
__classPrivateFieldSet(this, _Bridge_heapNext, __classPrivateFieldGet(this, _Bridge_heap, "f").length, "f");
__classPrivateFieldSet(this, _Bridge_type, 'none', "f");
__classPrivateFieldSet(this, _Bridge_wasm, null, "f");
__classPrivateFieldSet(this, _Bridge_wasmError, null, "f");
__classPrivateFieldSet(this, _Bridge_wasmPromise, null, "f");
__classPrivateFieldSet(this, _Bridge_wbg, { ...new Wbg(this) }, "f");
.concat(undefined, null, true, false);
this.__internal__heapNext = this.__internal__heap.length;
this.__internal__type = 'none';
this.__internal__wasm = null;
this.__internal__wasmError = null;
this.__internal__wasmPromise = null;
this.__internal__wbg = { ...new Wbg(this) };
}
/** @description Returns the init error */
get error() {
return __classPrivateFieldGet(this, _Bridge_wasmError, "f");
return this.__internal__wasmError;
}
/** @description Returns the init type */
get type() {
return __classPrivateFieldGet(this, _Bridge_type, "f");
return this.__internal__type;
}
/** @description Returns the created wasm interface */
get wasm() {
return __classPrivateFieldGet(this, _Bridge_wasm, "f");
return this.__internal__wasm;
}
/** @description Performs the wasm initialization */
async init(createWasm) {
if (!__classPrivateFieldGet(this, _Bridge_wasmPromise, "f") || createWasm) {
__classPrivateFieldSet(this, _Bridge_wasmPromise, (createWasm || __classPrivateFieldGet(this, _Bridge_createWasm, "f"))(__classPrivateFieldGet(this, _Bridge_wbg, "f")), "f");
if (!this.__internal__wasmPromise || createWasm) {
this.__internal__wasmPromise = (createWasm || this.__internal__createWasm)(this.__internal__wbg);
}
const { error, type, wasm } = await __classPrivateFieldGet(this, _Bridge_wasmPromise, "f");
__classPrivateFieldSet(this, _Bridge_type, type, "f");
__classPrivateFieldSet(this, _Bridge_wasm, wasm, "f");
__classPrivateFieldSet(this, _Bridge_wasmError, error, "f");
return __classPrivateFieldGet(this, _Bridge_wasm, "f");
const { error, type, wasm } = await this.__internal__wasmPromise;
this.__internal__type = type;
this.__internal__wasm = wasm;
this.__internal__wasmError = error;
return this.__internal__wasm;
}

@@ -68,3 +56,3 @@ /**

getObject(idx) {
return __classPrivateFieldGet(this, _Bridge_heap, "f")[idx];
return this.__internal__heap[idx];
}

@@ -79,4 +67,4 @@ /**

}
__classPrivateFieldGet(this, _Bridge_heap, "f")[idx] = __classPrivateFieldGet(this, _Bridge_heapNext, "f");
__classPrivateFieldSet(this, _Bridge_heapNext, idx, "f");
this.__internal__heap[idx] = this.__internal__heapNext;
this.__internal__heapNext = idx;
}

@@ -97,8 +85,8 @@ /**

addObject(obj) {
if (__classPrivateFieldGet(this, _Bridge_heapNext, "f") === __classPrivateFieldGet(this, _Bridge_heap, "f").length) {
__classPrivateFieldGet(this, _Bridge_heap, "f").push(__classPrivateFieldGet(this, _Bridge_heap, "f").length + 1);
if (this.__internal__heapNext === this.__internal__heap.length) {
this.__internal__heap.push(this.__internal__heap.length + 1);
}
const idx = __classPrivateFieldGet(this, _Bridge_heapNext, "f");
__classPrivateFieldSet(this, _Bridge_heapNext, __classPrivateFieldGet(this, _Bridge_heap, "f")[idx], "f");
__classPrivateFieldGet(this, _Bridge_heap, "f")[idx] = obj;
const idx = this.__internal__heapNext;
this.__internal__heapNext = this.__internal__heap[idx];
this.__internal__heap[idx] = obj;
return idx;

@@ -111,6 +99,6 @@ }

getInt32() {
if (__classPrivateFieldGet(this, _Bridge_cachegetInt32, "f") === null || __classPrivateFieldGet(this, _Bridge_cachegetInt32, "f").buffer !== __classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer) {
__classPrivateFieldSet(this, _Bridge_cachegetInt32, new Int32Array(__classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer), "f");
if (this.__internal__cachegetInt32 === null || this.__internal__cachegetInt32.buffer !== this.__internal__wasm.memory.buffer) {
this.__internal__cachegetInt32 = new Int32Array(this.__internal__wasm.memory.buffer);
}
return __classPrivateFieldGet(this, _Bridge_cachegetInt32, "f");
return this.__internal__cachegetInt32;
}

@@ -122,6 +110,6 @@ /**

getUint8() {
if (__classPrivateFieldGet(this, _Bridge_cachegetUint8, "f") === null || __classPrivateFieldGet(this, _Bridge_cachegetUint8, "f").buffer !== __classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer) {
__classPrivateFieldSet(this, _Bridge_cachegetUint8, new Uint8Array(__classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer), "f");
if (this.__internal__cachegetUint8 === null || this.__internal__cachegetUint8.buffer !== this.__internal__wasm.memory.buffer) {
this.__internal__cachegetUint8 = new Uint8Array(this.__internal__wasm.memory.buffer);
}
return __classPrivateFieldGet(this, _Bridge_cachegetUint8, "f");
return this.__internal__cachegetUint8;
}

@@ -147,3 +135,3 @@ /**

allocU8a(arg) {
const ptr = __classPrivateFieldGet(this, _Bridge_wasm, "f").__wbindgen_malloc(arg.length * 1);
const ptr = this.__internal__wasm.__wbindgen_malloc(arg.length * 1);
this.getUint8().set(arg, ptr / 1);

@@ -167,3 +155,3 @@ return [ptr, arg.length];

const ret = this.getU8a(r0, r1).slice();
__classPrivateFieldGet(this, _Bridge_wasm, "f").__wbindgen_free(r0, r1 * 1);
this.__internal__wasm.__wbindgen_free(r0, r1 * 1);
return ret;

@@ -179,2 +167,1 @@ }

}
_Bridge_cachegetInt32 = new WeakMap(), _Bridge_cachegetUint8 = new WeakMap(), _Bridge_createWasm = new WeakMap(), _Bridge_heap = new WeakMap(), _Bridge_heapNext = new WeakMap(), _Bridge_wasm = new WeakMap(), _Bridge_wasmError = new WeakMap(), _Bridge_wasmPromise = new WeakMap(), _Bridge_wbg = new WeakMap(), _Bridge_type = new WeakMap();
"use strict";
var _Bridge_cachegetInt32, _Bridge_cachegetUint8, _Bridge_createWasm, _Bridge_heap, _Bridge_heapNext, _Bridge_wasm, _Bridge_wasmError, _Bridge_wasmPromise, _Bridge_wbg, _Bridge_type;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bridge = void 0;
const tslib_1 = require("tslib");
const util_1 = require("@polkadot/util");

@@ -19,47 +17,37 @@ const wbg_js_1 = require("./wbg.js");

constructor(createWasm) {
_Bridge_cachegetInt32.set(this, void 0);
_Bridge_cachegetUint8.set(this, void 0);
_Bridge_createWasm.set(this, void 0);
_Bridge_heap.set(this, void 0);
_Bridge_heapNext.set(this, void 0);
_Bridge_wasm.set(this, void 0);
_Bridge_wasmError.set(this, void 0);
_Bridge_wasmPromise.set(this, void 0);
_Bridge_wbg.set(this, void 0);
_Bridge_type.set(this, void 0);
tslib_1.__classPrivateFieldSet(this, _Bridge_createWasm, createWasm, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_cachegetInt32, null, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_cachegetUint8, null, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_heap, new Array(32)
this.__internal__createWasm = createWasm;
this.__internal__cachegetInt32 = null;
this.__internal__cachegetUint8 = null;
this.__internal__heap = new Array(32)
.fill(undefined)
.concat(undefined, null, true, false), "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_heapNext, tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f").length, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_type, 'none', "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_wasm, null, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_wasmError, null, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_wasmPromise, null, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_wbg, { ...new wbg_js_1.Wbg(this) }, "f");
.concat(undefined, null, true, false);
this.__internal__heapNext = this.__internal__heap.length;
this.__internal__type = 'none';
this.__internal__wasm = null;
this.__internal__wasmError = null;
this.__internal__wasmPromise = null;
this.__internal__wbg = { ...new wbg_js_1.Wbg(this) };
}
/** @description Returns the init error */
get error() {
return tslib_1.__classPrivateFieldGet(this, _Bridge_wasmError, "f");
return this.__internal__wasmError;
}
/** @description Returns the init type */
get type() {
return tslib_1.__classPrivateFieldGet(this, _Bridge_type, "f");
return this.__internal__type;
}
/** @description Returns the created wasm interface */
get wasm() {
return tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f");
return this.__internal__wasm;
}
/** @description Performs the wasm initialization */
async init(createWasm) {
if (!tslib_1.__classPrivateFieldGet(this, _Bridge_wasmPromise, "f") || createWasm) {
tslib_1.__classPrivateFieldSet(this, _Bridge_wasmPromise, (createWasm || tslib_1.__classPrivateFieldGet(this, _Bridge_createWasm, "f"))(tslib_1.__classPrivateFieldGet(this, _Bridge_wbg, "f")), "f");
if (!this.__internal__wasmPromise || createWasm) {
this.__internal__wasmPromise = (createWasm || this.__internal__createWasm)(this.__internal__wbg);
}
const { error, type, wasm } = await tslib_1.__classPrivateFieldGet(this, _Bridge_wasmPromise, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_type, type, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_wasm, wasm, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_wasmError, error, "f");
return tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f");
const { error, type, wasm } = await this.__internal__wasmPromise;
this.__internal__type = type;
this.__internal__wasm = wasm;
this.__internal__wasmError = error;
return this.__internal__wasm;
}

@@ -71,3 +59,3 @@ /**

getObject(idx) {
return tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f")[idx];
return this.__internal__heap[idx];
}

@@ -82,4 +70,4 @@ /**

}
tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f")[idx] = tslib_1.__classPrivateFieldGet(this, _Bridge_heapNext, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_heapNext, idx, "f");
this.__internal__heap[idx] = this.__internal__heapNext;
this.__internal__heapNext = idx;
}

@@ -100,8 +88,8 @@ /**

addObject(obj) {
if (tslib_1.__classPrivateFieldGet(this, _Bridge_heapNext, "f") === tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f").length) {
tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f").push(tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f").length + 1);
if (this.__internal__heapNext === this.__internal__heap.length) {
this.__internal__heap.push(this.__internal__heap.length + 1);
}
const idx = tslib_1.__classPrivateFieldGet(this, _Bridge_heapNext, "f");
tslib_1.__classPrivateFieldSet(this, _Bridge_heapNext, tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f")[idx], "f");
tslib_1.__classPrivateFieldGet(this, _Bridge_heap, "f")[idx] = obj;
const idx = this.__internal__heapNext;
this.__internal__heapNext = this.__internal__heap[idx];
this.__internal__heap[idx] = obj;
return idx;

@@ -114,6 +102,6 @@ }

getInt32() {
if (tslib_1.__classPrivateFieldGet(this, _Bridge_cachegetInt32, "f") === null || tslib_1.__classPrivateFieldGet(this, _Bridge_cachegetInt32, "f").buffer !== tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer) {
tslib_1.__classPrivateFieldSet(this, _Bridge_cachegetInt32, new Int32Array(tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer), "f");
if (this.__internal__cachegetInt32 === null || this.__internal__cachegetInt32.buffer !== this.__internal__wasm.memory.buffer) {
this.__internal__cachegetInt32 = new Int32Array(this.__internal__wasm.memory.buffer);
}
return tslib_1.__classPrivateFieldGet(this, _Bridge_cachegetInt32, "f");
return this.__internal__cachegetInt32;
}

@@ -125,6 +113,6 @@ /**

getUint8() {
if (tslib_1.__classPrivateFieldGet(this, _Bridge_cachegetUint8, "f") === null || tslib_1.__classPrivateFieldGet(this, _Bridge_cachegetUint8, "f").buffer !== tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer) {
tslib_1.__classPrivateFieldSet(this, _Bridge_cachegetUint8, new Uint8Array(tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f").memory.buffer), "f");
if (this.__internal__cachegetUint8 === null || this.__internal__cachegetUint8.buffer !== this.__internal__wasm.memory.buffer) {
this.__internal__cachegetUint8 = new Uint8Array(this.__internal__wasm.memory.buffer);
}
return tslib_1.__classPrivateFieldGet(this, _Bridge_cachegetUint8, "f");
return this.__internal__cachegetUint8;
}

@@ -150,3 +138,3 @@ /**

allocU8a(arg) {
const ptr = tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f").__wbindgen_malloc(arg.length * 1);
const ptr = this.__internal__wasm.__wbindgen_malloc(arg.length * 1);
this.getUint8().set(arg, ptr / 1);

@@ -170,3 +158,3 @@ return [ptr, arg.length];

const ret = this.getU8a(r0, r1).slice();
tslib_1.__classPrivateFieldGet(this, _Bridge_wasm, "f").__wbindgen_free(r0, r1 * 1);
this.__internal__wasm.__wbindgen_free(r0, r1 * 1);
return ret;

@@ -183,2 +171,1 @@ }

exports.Bridge = Bridge;
_Bridge_cachegetInt32 = new WeakMap(), _Bridge_cachegetUint8 = new WeakMap(), _Bridge_createWasm = new WeakMap(), _Bridge_heap = new WeakMap(), _Bridge_heapNext = new WeakMap(), _Bridge_wasm = new WeakMap(), _Bridge_wasmError = new WeakMap(), _Bridge_wasmPromise = new WeakMap(), _Bridge_wbg = new WeakMap(), _Bridge_type = new WeakMap();
"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.1.1' };
exports.packageInfo = { name: '@polkadot/wasm-bridge', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '7.1.2' };
"use strict";
var _Wbg_bridge;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wbg = void 0;
const tslib_1 = require("tslib");
const x_randomvalues_1 = require("@polkadot/x-randomvalues");

@@ -22,3 +20,2 @@ const DEFAULT_CRYPTO = { getRandomValues: x_randomvalues_1.getRandomValues };

constructor(bridge) {
_Wbg_bridge.set(this, void 0);
/** @internal */

@@ -30,27 +27,27 @@ this.abort = () => {

this.__wbindgen_is_undefined = (idx) => {
return tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").getObject(idx) === undefined;
return this.__internal__bridge.getObject(idx) === undefined;
};
/** @internal */
this.__wbindgen_throw = (ptr, len) => {
throw new Error(tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").getString(ptr, len));
throw new Error(this.__internal__bridge.getString(ptr, len));
};
/** @internal */
this.__wbg_self_1b7a39e3a92c949c = () => {
return tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").addObject(DEFAULT_SELF);
return this.__internal__bridge.addObject(DEFAULT_SELF);
};
/** @internal */
this.__wbg_require_604837428532a733 = (ptr, len) => {
throw new Error(`Unable to require ${tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").getString(ptr, len)}`);
throw new Error(`Unable to require ${this.__internal__bridge.getString(ptr, len)}`);
};
/** @internal */
this.__wbg_crypto_968f1772287e2df0 = (_idx) => {
return tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").addObject(DEFAULT_CRYPTO);
return this.__internal__bridge.addObject(DEFAULT_CRYPTO);
};
/** @internal */
this.__wbg_getRandomValues_a3d34b4fee3c2869 = (_idx) => {
return tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").addObject(DEFAULT_CRYPTO.getRandomValues);
return this.__internal__bridge.addObject(DEFAULT_CRYPTO.getRandomValues);
};
/** @internal */
this.__wbg_getRandomValues_f5e14ab7ac8e995d = (_arg0, ptr, len) => {
DEFAULT_CRYPTO.getRandomValues(tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").getU8a(ptr, len));
DEFAULT_CRYPTO.getRandomValues(this.__internal__bridge.getU8a(ptr, len));
};

@@ -64,8 +61,7 @@ /** @internal */

this.__wbindgen_object_drop_ref = (idx) => {
tslib_1.__classPrivateFieldGet(this, _Wbg_bridge, "f").takeObject(idx);
this.__internal__bridge.takeObject(idx);
};
tslib_1.__classPrivateFieldSet(this, _Wbg_bridge, bridge, "f");
this.__internal__bridge = bridge;
}
}
exports.Wbg = Wbg;
_Wbg_bridge = new WeakMap();

@@ -21,3 +21,3 @@ {

"type": "module",
"version": "7.1.1",
"version": "7.1.2",
"main": "./cjs/index.js",

@@ -85,3 +85,3 @@ "module": "./index.js",

"dependencies": {
"@polkadot/wasm-util": "7.1.1",
"@polkadot/wasm-util": "7.1.2",
"tslib": "^2.5.0"

@@ -88,0 +88,0 @@ },

@@ -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.1.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.1.2' };

@@ -1,3 +0,1 @@

var _Wbg_bridge;
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
import { getRandomValues } from '@polkadot/x-randomvalues';

@@ -19,3 +17,2 @@ const DEFAULT_CRYPTO = { getRandomValues };

constructor(bridge) {
_Wbg_bridge.set(this, void 0);
/** @internal */

@@ -27,27 +24,27 @@ this.abort = () => {

this.__wbindgen_is_undefined = (idx) => {
return __classPrivateFieldGet(this, _Wbg_bridge, "f").getObject(idx) === undefined;
return this.__internal__bridge.getObject(idx) === undefined;
};
/** @internal */
this.__wbindgen_throw = (ptr, len) => {
throw new Error(__classPrivateFieldGet(this, _Wbg_bridge, "f").getString(ptr, len));
throw new Error(this.__internal__bridge.getString(ptr, len));
};
/** @internal */
this.__wbg_self_1b7a39e3a92c949c = () => {
return __classPrivateFieldGet(this, _Wbg_bridge, "f").addObject(DEFAULT_SELF);
return this.__internal__bridge.addObject(DEFAULT_SELF);
};
/** @internal */
this.__wbg_require_604837428532a733 = (ptr, len) => {
throw new Error(`Unable to require ${__classPrivateFieldGet(this, _Wbg_bridge, "f").getString(ptr, len)}`);
throw new Error(`Unable to require ${this.__internal__bridge.getString(ptr, len)}`);
};
/** @internal */
this.__wbg_crypto_968f1772287e2df0 = (_idx) => {
return __classPrivateFieldGet(this, _Wbg_bridge, "f").addObject(DEFAULT_CRYPTO);
return this.__internal__bridge.addObject(DEFAULT_CRYPTO);
};
/** @internal */
this.__wbg_getRandomValues_a3d34b4fee3c2869 = (_idx) => {
return __classPrivateFieldGet(this, _Wbg_bridge, "f").addObject(DEFAULT_CRYPTO.getRandomValues);
return this.__internal__bridge.addObject(DEFAULT_CRYPTO.getRandomValues);
};
/** @internal */
this.__wbg_getRandomValues_f5e14ab7ac8e995d = (_arg0, ptr, len) => {
DEFAULT_CRYPTO.getRandomValues(__classPrivateFieldGet(this, _Wbg_bridge, "f").getU8a(ptr, len));
DEFAULT_CRYPTO.getRandomValues(this.__internal__bridge.getU8a(ptr, len));
};

@@ -61,7 +58,6 @@ /** @internal */

this.__wbindgen_object_drop_ref = (idx) => {
__classPrivateFieldGet(this, _Wbg_bridge, "f").takeObject(idx);
this.__internal__bridge.takeObject(idx);
};
__classPrivateFieldSet(this, _Wbg_bridge, bridge, "f");
this.__internal__bridge = bridge;
}
}
_Wbg_bridge = new WeakMap();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc