New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polywrap/asyncify-js

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polywrap/asyncify-js - npm Package Compare versions

Comparing version 0.10.0-pre.12 to 0.10.0-pre.13

22

build/AsyncWasmInstance.js

@@ -237,3 +237,3 @@ "use strict";

return __awaiter(_this, void 0, void 0, function () {
var result, _a;
var result, _a, e_1, msg;
return __generator(this, function (_b) {

@@ -246,7 +246,10 @@ switch (_b.label) {

case 1:
if (!(this._getAsyncifyState() === AsyncifyState.Unwinding)) return [3 /*break*/, 3];
if (!(this._getAsyncifyState() === AsyncifyState.Unwinding)) return [3 /*break*/, 6];
_b.label = 2;
case 2:
_b.trys.push([2, 4, , 5]);
this._wrappedExports.asyncify_stop_unwind();
_a = this;
return [4 /*yield*/, this._importFnResult];
case 2:
case 3:
_a._importFnResult = _b.sent();

@@ -256,4 +259,13 @@ this._assertNoneState();

result = exportFn();
return [3 /*break*/, 1];
case 3:
return [3 /*break*/, 5];
case 4:
e_1 = _b.sent();
msg = e_1.toString();
if (msg.indexOf("RuntimeError: unreachable") > -1) {
throw new Error("".concat(msg, ". \"unreachable\" may be due to ASYNCIFY_STACK_SIZE not being large enough (try increasing it),") +
" or the wasm module being too large (try optimizing it).");
}
throw e_1;
case 5: return [3 /*break*/, 1];
case 6:
this._assertNoneState();

@@ -260,0 +272,0 @@ return [2 /*return*/, result];

{
"name": "@polywrap/asyncify-js",
"description": "Async Wasm Imports Support Using Asyncify",
"version": "0.10.0-pre.12",
"version": "0.10.0-pre.13",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": {

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