Socket
Socket
Sign inDemoInstall

@web3api/asyncify-js

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3api/asyncify-js - npm Package Compare versions

Comparing version 0.0.1-prealpha.51 to 0.0.1-prealpha.52

31

build/AsyncWasmInstance.js

@@ -41,9 +41,22 @@ "use strict";

};
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -84,3 +97,3 @@ exports.AsyncWasmInstance = void 0;

exportKeys = Object.keys(instance._instance.exports);
missingExports = __spreadArrays(AsyncWasmInstance.requiredExports, (config.requiredExports || [])).filter(function (name) { return !exportKeys.includes(name); });
missingExports = __spread(AsyncWasmInstance.requiredExports, (config.requiredExports || [])).filter(function (name) { return !exportKeys.includes(name); });
if (missingExports.length) {

@@ -146,3 +159,3 @@ throw new Error("Required Wasm exports were not found: " + missingExports.join(", "));

_this._assertNoneState();
var value = fn.apply(void 0, args);
var value = fn.apply(void 0, __spread(args));
if (!isPromise(value)) {

@@ -182,3 +195,3 @@ return value;

this._assertNoneState();
result = fn.apply(void 0, args);
result = fn.apply(void 0, __spread(args));
_b.label = 1;

@@ -185,0 +198,0 @@ case 1:

{
"name": "@web3api/asyncify-js",
"description": "Async Wasm Imports Support Using Asyncify",
"version": "0.0.1-prealpha.51",
"version": "0.0.1-prealpha.52",
"license": "MIT",

@@ -32,3 +32,3 @@ "repository": {

},
"gitHead": "d641e972388a10571f47e31545e3f85af7436d7e",
"gitHead": "090d5b454035e9879ead8a6c545cfb29f42fa229",
"publishConfig": {

@@ -35,0 +35,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

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