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

promise-accum

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-accum - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

13

index.js

@@ -21,2 +21,3 @@ function createAccum(params) {

accumulator.merge = merge;
accumulator.without = _without(params);

@@ -48,2 +49,13 @@ return accumulator;

function _without(params) {
function without(param) {
var newParams = {};
for (var k in params) {
if (k != param && params.hasOwnProperty(k)) { newParams[k] = params[k]; }
}
return createAccum(newParams);
}
}
module.exports = function promiseAccum(name) {

@@ -56,1 +68,2 @@ // Initialize accumulator with no params.

module.exports.merge = merge;
module.exports.without = function() { return createAccum({}); };

2

package.json
{
"name": "promise-accum",
"version": "1.4.0",
"version": "1.5.0",
"description": "Solve variable scoping and/or callback hell in promises",

@@ -5,0 +5,0 @@ "main": "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