Last 12 weeks · 0 commits
4 of 6 standards met
Repository: sindresorhus/p-cancelable. Description: Create a promise that can be canceled Stars: 447, Forks: 24. Primary language: JavaScript. Languages: JavaScript (82.3%), TypeScript (17.7%). License: MIT. Latest release: v4.0.1 (3y ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, szmarczak, BendingBender, fregante, jopemachine, alextes, astoilkov, theqabalist, amannn, jonschlinkert and others.
This library, and therefore got, can't be used in a program that uses Bluebird promises globally. This is because PCancelable amends its prototype tree to make it a subclass of Promise but never calls the base Promise constructor, making it a false subclass. The following code demonstrates this: The code produces no output. It should print .