synchronous-promise
Advanced tools
Comparing version 2.0.15 to 2.0.16
{ | ||
"name": "synchronous-promise", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "Synchronous Promise-like prototype to use in testing where you would have used an ES6 Promise", | ||
"main": "index.js", | ||
"files": [ | ||
"browser.js", | ||
"index.d.ts", | ||
"index.js", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"repository": { | ||
@@ -23,3 +30,4 @@ "type": "git", | ||
"dist": "browserify browser.js -o dist/synchronous-promise.js", | ||
"prepublish": "run-s -s test dist", | ||
"prerelease": "run-s -s test dist", | ||
"release": "npm publish", | ||
"debug": "mocha -w *.spec.js --reporter mocha-yar --debug-brk --inspect", | ||
@@ -26,0 +34,0 @@ "debug-ts": "mocha -r ts-node/register *.spec.ts --debug-brk --inspect", |
@@ -12,2 +12,5 @@ # synchronous-promise | ||
If `synchronous-promise` has made something easier for you and you'd like to say thanks, | ||
[check out my sponsors page](https://github.com/sponsors/fluffynuts). | ||
### Why? | ||
@@ -174,5 +177,5 @@ The standard ES6 Promise (and any others which *are* A+ compliant) push the promise logic to the background | ||
promise = SynchronousPromise.unresolved().then(function(data) { | ||
resolved = data; | ||
resolvedValue = data; | ||
}).catch(function(data) { | ||
rejected = data; | ||
rejectedValue = data; | ||
}); | ||
@@ -282,3 +285,3 @@ // at this point, resolved and rejected are both undefined | ||
[https://github.com/Microsoft/TypeScript/issues/19909](https://github.com/Microsoft/TypeScript/issues/19909) | ||
but discussion so far has not beein particularly convincing that | ||
but discussion so far has not been particularly convincing that | ||
TypeScript emission will be altered to (imo) a more robust | ||
@@ -296,3 +299,3 @@ implementation which wraps the emitted `__awaiter` in a closure. | ||
ES6 Promise, where possible (or the shim, where you're in ES5). Or Q. | ||
Or jQUery.Deferred(), Bluebird or any of the implementations at [https://promisesaplus.com/implementations](https://promisesaplus.com/implementations). | ||
Or jQuery.Deferred(), Bluebird or any of the implementations at [https://promisesaplus.com/implementations](https://promisesaplus.com/implementations). | ||
@@ -299,0 +302,0 @@ Basically, this seems to work quite well for testing and |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
301
0
32107
6
584
1