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

@teleology/fp

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleology/fp - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

8

lib/pipe.js

@@ -6,8 +6,10 @@ "use strict";

});
exports.pipe = void 0;
exports.pipe = exports.isAsyncFunction = void 0;
const isPromise = v => v && v.then && typeof v.then === 'function';
const isAsyncFunction = v => v && v.then && typeof v.then === 'function' || v[Symbol.toStringTag] === 'AsyncFunction';
const pipe = (...fn) => initial => fn.reduce((a, n) => isPromise(n) ? n.then(a) : n(a), initial);
exports.isAsyncFunction = isAsyncFunction;
const pipe = (...fn) => initial => fn.reduce((a, n) => isAsyncFunction(n) ? n.then(a) : n(a), initial);
exports.pipe = pipe;
{
"name": "@teleology/fp",
"version": "1.0.6",
"version": "1.0.7",
"description": "A small collection of functional programming utils",

@@ -5,0 +5,0 @@ "repository": "git@github.com:icarus-sullivan/teleology-fp.git",

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