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

dethunking-compose

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dethunking-compose - npm Package Compare versions

Comparing version 0.1.0 to 0.1.2

2

package.json
{
"name": "dethunking-compose",
"version": "0.1.0",
"version": "0.1.2",
"description": "Lazy evaluation + compose",

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

@@ -5,3 +5,3 @@ # Dethunking Compose

allows the writing of declarative functional code.
I like to pair this style of coding with large functions at the top of a file
I like to pair this style of coding with the main functions at the top of a file
followed by the definitions of the smaller functions out of which it's composed.

@@ -34,10 +34,10 @@

var triple_add_3 = module.exports = compose(
() => add_2
, () => add_1
, () => triple
() => add_2,
() => add_1,
() => triple
)
var add_2 = compose(
() => add_1,
() => add_1
, () => add_1
)

@@ -50,2 +50,20 @@

Compare to this attempt with a normal compose module,
which would throw.
```js
var compose = require(/* Normal compose module */)
var add_2 = compose(
add_1,
add_1
)
var add_1 = x => x + 1
add_2(4)
// undefined is not a function
```
## Pipe

@@ -59,5 +77,5 @@

var triple_add_3 = module.exports = pipe(
() => triple
, () => add_1
, () => add_2
() => triple,
() => add_1,
() => add_2
)

@@ -64,0 +82,0 @@

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