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

real-cancellable-promise

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

real-cancellable-promise - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

4

dist/CancellablePromise.js

@@ -1,3 +0,3 @@

import { Cancellation } from './Cancellation';
import { noop } from './Internal';
import { Cancellation } from './Cancellation.js';
import { noop } from './Internal.js';
/**

@@ -4,0 +4,0 @@ * Determines if an arbitrary value is a thenable with a cancel method.

@@ -1,3 +0,3 @@

export * from './Cancellation';
export * from './CancellablePromise';
export * from './Utils';
export * from './Cancellation.js';
export * from './CancellablePromise.js';
export * from './Utils.js';

@@ -1,3 +0,3 @@

export * from './Cancellation';
export * from './CancellablePromise';
export * from './Utils';
export * from './Cancellation.js';
export * from './CancellablePromise.js';
export * from './Utils.js';

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

import { CancellablePromise } from './CancellablePromise';
import { CancellablePromise } from './CancellablePromise.js';
/**

@@ -3,0 +3,0 @@ * Takes in a regular `Promise` and returns a `CancellablePromise`. If canceled,

@@ -1,4 +0,4 @@

import { CancellablePromise } from './CancellablePromise';
import { Cancellation } from './Cancellation';
import { noop } from './Internal';
import { CancellablePromise } from './CancellablePromise.js';
import { Cancellation } from './Cancellation.js';
import { noop } from './Internal.js';
/**

@@ -5,0 +5,0 @@ * Takes in a regular `Promise` and returns a `CancellablePromise`. If canceled,

{
"name": "real-cancellable-promise",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"description": "A simple cancellable promise implementation that cancels the underlying HTTP call.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -356,3 +356,3 @@ # real-cancellable-promise

**Node.js:** 14+. `AbortController` is only available in Node 15+.
**Node.js:** 14+. `AbortController` is only available in Node 15+. `real-cancellable-promise` ships as an ES module, so you need to use an ES-style `import` statement rather than `require()`.

@@ -359,0 +359,0 @@ # License

@@ -1,3 +0,3 @@

import { CancellablePromise } from '../../CancellablePromise'
import { Cancellation } from '../../Cancellation'
import { CancellablePromise } from '../../CancellablePromise.js'
import { Cancellation } from '../../Cancellation.js'

@@ -4,0 +4,0 @@ export function fail(reason: string = 'fail was called in a test.'): never {

// Jest bug: https://github.com/facebook/jest/issues/11876
// Jest bug 2: https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/55803
import { CancellablePromise } from '../CancellablePromise'
import { Cancellation } from '../Cancellation'
import { defaultDuration, delay, getPromise, fail } from './__helpers__'
import { CancellablePromise } from '../CancellablePromise.js'
import { Cancellation } from '../Cancellation.js'
import { defaultDuration, delay, getPromise, fail } from './__helpers__/index.js'

@@ -7,0 +7,0 @@ beforeEach(() => {

@@ -1,5 +0,5 @@

import { CancellablePromise } from '../CancellablePromise'
import { Cancellation } from '../Cancellation'
import { buildCancellablePromise, pseudoCancellable } from '../Utils'
import { defaultDuration, delay, getPromise, fail } from './__helpers__'
import { CancellablePromise } from '../CancellablePromise.js'
import { Cancellation } from '../Cancellation.js'
import { buildCancellablePromise, pseudoCancellable } from '../Utils.js'
import { defaultDuration, delay, getPromise, fail } from './__helpers__/index.js'

@@ -6,0 +6,0 @@ beforeEach(() => {

@@ -1,3 +0,3 @@

import { Cancellation } from './Cancellation'
import { noop } from './Internal'
import { Cancellation } from './Cancellation.js'
import { noop } from './Internal.js'

@@ -4,0 +4,0 @@ /**

@@ -1,3 +0,3 @@

export * from './Cancellation'
export * from './CancellablePromise'
export * from './Utils'
export * from './Cancellation.js'
export * from './CancellablePromise.js'
export * from './Utils.js'

@@ -1,4 +0,4 @@

import { CancellablePromise } from './CancellablePromise'
import { Cancellation } from './Cancellation'
import { noop } from './Internal'
import { CancellablePromise } from './CancellablePromise.js'
import { Cancellation } from './Cancellation.js'
import { noop } from './Internal.js'

@@ -5,0 +5,0 @@ /**

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