New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/compose

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/compose - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.1.1...@thi.ng/compose@1.1.2) (2019-03-01)
**Note:** Version bump only for package @thi.ng/compose
## [1.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.1.0...@thi.ng/compose@1.1.1) (2019-02-26)

@@ -8,0 +16,0 @@

12

lib/index.js

@@ -120,9 +120,9 @@ 'use strict';

const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ?
expr(acc) :
expr[0](acc, ...expr.slice(1)), init);
const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function"
? expr(acc)
: expr[0](acc, ...expr.slice(1)), init);
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ?
expr(acc) :
expr[0](...expr.slice(1), acc), init);
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function"
? expr(acc)
: expr[0](...expr.slice(1), acc), init);

@@ -129,0 +129,0 @@ exports.comp = comp;

@@ -120,9 +120,9 @@ (function (global, factory) {

const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ?
expr(acc) :
expr[0](acc, ...expr.slice(1)), init);
const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function"
? expr(acc)
: expr[0](acc, ...expr.slice(1)), init);
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ?
expr(acc) :
expr[0](...expr.slice(1), acc), init);
const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function"
? expr(acc)
: expr[0](...expr.slice(1), acc), init);

@@ -129,0 +129,0 @@ exports.comp = comp;

{
"name": "@thi.ng/compose",
"version": "1.1.1",
"version": "1.1.2",
"description": "Arity-optimized functional composition helpers",

@@ -35,4 +35,4 @@ "module": "./index.js",

"dependencies": {
"@thi.ng/api": "^5.0.2",
"@thi.ng/errors": "^1.0.2"
"@thi.ng/api": "^5.0.3",
"@thi.ng/errors": "^1.0.3"
},

@@ -49,3 +49,3 @@ "keywords": [

"sideEffects": false,
"gitHead": "647e13737436e44d28e151c0be8594835cf25ed0"
"gitHead": "e43f57c7554fd78380bba58d37ae62ca01221eeb"
}

@@ -27,4 +27,4 @@ /**

*/
export const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ?
expr(acc) :
expr[0](acc, ...expr.slice(1)), init);
export const threadFirst = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function"
? expr(acc)
: expr[0](acc, ...expr.slice(1)), init);

@@ -27,4 +27,4 @@ /**

*/
export const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function" ?
expr(acc) :
expr[0](...expr.slice(1), acc), init);
export const threadLast = (init, ...fns) => fns.reduce((acc, expr) => typeof expr === "function"
? expr(acc)
: expr[0](...expr.slice(1), acc), init);

Sorry, the diff of this file is not supported yet

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