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.1.1 to 1.2.0

build/IllegalStateError.d.ts

5

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

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

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

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

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

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

3

build/index.d.ts

@@ -1,1 +0,2 @@

export * from './DeferredPromise';
export * from "./DeferredPromise";
export * from "./IllegalStateError";

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

__exportStar(require("./DeferredPromise"), exports);
__exportStar(require("./IllegalStateError"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@open-draft/deferred-promise",
"version": "1.1.1",
"version": "1.2.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