Socket
Socket
Sign inDemoInstall

@hyperjump/pact

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperjump/pact - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.github/FUNDING.yml

17

lib/reduce.js

@@ -5,18 +5,3 @@ const curry = require("just-curry-it");

module.exports = curry(async (fn, acc, doc) => {
return (await doc).reduce(async (acc, item) => {
let resolvedAcc;
try {
resolvedAcc = await acc;
} catch (e) {
try {
await item;
} catch (e) {
// If we've already encountered an error, ignore subsequent errors.
}
return acc;
}
return fn(resolvedAcc, item);
}, acc);
return (await doc).reduce(async (acc, item) => fn(await acc, item), acc);
});
{
"name": "@hyperjump/pact",
"version": "0.1.1",
"version": "0.1.2",
"description": "Higher order functions that work with 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