Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

promise-flow

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-flow - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

lib/internal/try-invoke.js

18

lib/index.js

@@ -10,2 +10,4 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
require('native-promise-only');

@@ -15,2 +17,8 @@

var _internalZipObject2 = _interopRequireDefault(_internalZipObject);
var _internalTryInvoke = require('./internal/try-invoke');
var _internalTryInvoke2 = _interopRequireDefault(_internalTryInvoke);
function allObject(object) {

@@ -21,3 +29,3 @@ var keys = Object.keys(object);

})).then(function (values) {
return (0, _internalZipObject.zipObject)(keys, values);
return (0, _internalZipObject2['default'])(keys, values);
});

@@ -39,9 +47,3 @@ }

function parallel(factories) {
try {
return Promise.all(factories.map(function (f) {
return f();
}));
} catch (err) {
return Promise.reject(err);
}
return Promise.all(factories.map(_internalTryInvoke2['default']));
}

@@ -6,5 +6,4 @@ "use strict";

});
exports.zipObject = zipObject;
function zipObject(keys, values) {
exports["default"] = function (keys, values) {
var result = {};

@@ -16,2 +15,4 @@ var l = keys.length;

return result;
}
};
module.exports = exports["default"];
{
"name": "promise-flow",
"version": "0.0.2",
"version": "0.0.3",
"description": "Utility module for functions that return promises",

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

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