real-cancellable-promise
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -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 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64815