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

@open-draft/deferred-promise

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-draft/deferred-promise - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

5

build/DeferredPromise.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeferredPromise = void 0;
const IllegalStateError_1 = require("./IllegalStateError");
/**

@@ -28,3 +27,3 @@ * Represents the completion of an asynchronous operation.

if (this.state !== "pending") {
throw new IllegalStateError_1.IllegalStateError("Cannot resolve a DeferredPromise: illegal state", this.state);
return;
}

@@ -37,3 +36,3 @@ this.state = "resolved";

if (this.state !== "pending") {
throw new IllegalStateError_1.IllegalStateError("Cannot reject a DeferredPromise: illegal state", this.state);
return;
}

@@ -40,0 +39,0 @@ this.state = "rejected";

1

build/index.d.ts
export * from "./DeferredPromise";
export * from "./IllegalStateError";

@@ -18,3 +18,2 @@ "use strict";

__exportStar(require("./DeferredPromise"), exports);
__exportStar(require("./IllegalStateError"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@open-draft/deferred-promise",
"version": "1.2.1",
"version": "1.3.0",
"description": "A Promise that can be resolved/rejected elsewhere",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

Sorry, the diff of this file is not supported yet

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