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

p-cancelable

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-cancelable - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

8

index.js

@@ -10,3 +10,3 @@ 'use strict';

class PCancelable extends Promise {
class PCancelable {
static fn(fn) {

@@ -23,6 +23,2 @@ return function () {

constructor(executor) {
super(resolve => {
resolve();
});
this._pending = true;

@@ -80,3 +76,5 @@ this._canceled = false;

Object.setPrototypeOf(PCancelable.prototype, Promise.prototype);
module.exports = PCancelable;
module.exports.CancelError = CancelError;
{
"name": "p-cancelable",
"version": "0.2.0",
"version": "0.3.0",
"description": "Create a promise that can be canceled",

@@ -5,0 +5,0 @@ "license": "MIT",

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