Socket
Socket
Sign inDemoInstall

synchronous-promise

Package Overview
Dependencies
0
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.15 to 2.0.16

12

package.json
{
"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",

11

README.md

@@ -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

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