Socket
Socket
Sign inDemoInstall

synchronous-promise

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synchronous-promise - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

.npmignore

3

dist/synchronous-promise.js

@@ -183,2 +183,5 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

}
if (!args.length) {
return SynchronousPromise.resolve([]);
}
return new SynchronousPromise(function (resolve, reject) {

@@ -185,0 +188,0 @@ var

@@ -180,2 +180,5 @@ "use strict";

}
if (!args.length) {
return SynchronousPromise.resolve([]);
}
return new SynchronousPromise(function (resolve, reject) {

@@ -182,0 +185,0 @@ var

@@ -616,2 +616,13 @@ /*

});
it("should resolve empty promise array", function () {
var
all = SynchronousPromise.all([]),
captured = null;
all.then(function (data) {
captured = data;
});
expect(captured).to.have.length(0);
});
it("should resolve with values in the correct order", function () {

@@ -618,0 +629,0 @@ var

2

package.json
{
"name": "synchronous-promise",
"version": "1.0.15",
"version": "1.0.16",
"description": "Synchronous Promise-like prototype to use in testing where you would have used an ES6 Promise",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,0 +0,0 @@ # synchronous-promise

Sorry, the diff of this file is not supported yet

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