Skip to content

Commit

Permalink
Rename the .canceled property to .isCanceled
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 1, 2018
1 parent 2b14537 commit 00fdeea
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions index.js
Expand Up @@ -401,14 +401,6 @@ function asPromise(opts) {
ee.on('downloadProgress', proxy.emit.bind(proxy, 'downloadProgress'));
});

// Preserve backwards-compatibility
// TODO: Remove this in the next major version
Object.defineProperty(cancelable, 'canceled', {
get() {
return cancelable.isCanceled;
}
});

const promise = timeoutFn(cancelable);

promise.cancel = cancelable.cancel.bind(cancelable);
Expand Down

0 comments on commit 00fdeea

Please sign in to comment.