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

dot-curry

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-curry - npm Package Compare versions

Comparing version

to
0.0.2

3

index.js

@@ -18,3 +18,6 @@ /**

curried.curry = curry;
curried.uncurry = function uncurry() {
return fn;
};
return curried;
};

2

package.json
{
"name": "dot-curry",
"version": "0.0.1",
"version": "0.0.2",
"description": "non-intrusive, chainable curry function",

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

@@ -1,3 +0,5 @@

[![browser support](https://ci.testling.com/AutoSponge/dot-curry.png)](https://ci.testling.com/AutoSponge/dot-curry)
[![Build Status](https://travis-ci.org/AutoSponge/dot-curry.svg?branch=master)](https://travis-ci.org/AutoSponge/dot-curry)
[![browser support](https://ci.testling.com/AutoSponge/dot-curry.png)](http://ci.testling.com/AutoSponge/dot-curry)
dot-curry

@@ -4,0 +6,0 @@ =========

@@ -36,3 +36,11 @@ var test = require( 'tape' );

t.equal( sumThis.apply( 1, [2, 3] ), 6, 'variadic sumThis works as expected' );
t.equal( sumThis.curry( 1 ).curry( 2 ).apply( 3, [4] ), 10, 'curried.apply uses the supplied context' );
t.deepEqual( sumThis.curry( 1 ).curry( 2 ).apply( 3, [4] ), 10, 'curried.apply uses the supplied context' );
} );
test( 'uncurry', function ( t ) {
t.plan( 3 );
t.equal( typeof sum.curry( 1 ).uncurry, 'function', 'uncurry should be a function' );
t.equal( sum.curry( 1 ).uncurry(), sum, 'uncurry return the previous function' );
t.equal( sum.curry( 1 ).curry( 2 ).uncurry()(), 1, 'uncurry can return an intermediate form' );
} );