Socket
Socket
Sign inDemoInstall

p-cancelable

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc