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

@defer.run/client

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@defer.run/client - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1-alpha-20221221121603-d247621

12

cjs/execute.js

@@ -78,5 +78,11 @@ "use strict";

else if (result.state === "failed") {
// TODO
// reject(result.error);
reject(new Error("Defer execution failed"));
let error = new Error("Defer execution failed");
if (result.result.message) {
error = new Error(result.result.message);
error.stack = result.result.stack;
}
else if (result.result) {
error = result.result;
}
reject(error);
return;

@@ -83,0 +89,0 @@ }

@@ -73,5 +73,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

else if (result.state === "failed") {
// TODO
// reject(result.error);
reject(new Error("Defer execution failed"));
let error = new Error("Defer execution failed");
if (result.result.message) {
error = new Error(result.result.message);
error.stack = result.result.stack;
}
else if (result.result) {
error = result.result;
}
reject(error);
return;

@@ -78,0 +84,0 @@ }

{
"name": "@defer.run/client",
"version": "0.1.0",
"version": "0.1.1-alpha-20221221121603-d247621",
"description": "cua JavaScript client",

@@ -5,0 +5,0 @@ "dependencies": {

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