chickencurry
Advanced tools
Comparing version 1.4.0 to 2.1.0
@@ -9,3 +9,4 @@ var gulp = require('gulp'), | ||
coveralls = require('gulp-coveralls'), | ||
to5 = require('gulp-babel'); | ||
to5 = require('gulp-babel'), | ||
isTavis = require('is-travis'); | ||
@@ -16,3 +17,4 @@ gulp.task('babel', function() { | ||
.pipe(to5({ | ||
experimental: true, | ||
stage: 0, | ||
auxiliaryCommentBefore: 'istanbul ignore next', | ||
loose: 'all' | ||
@@ -33,2 +35,3 @@ })) | ||
.on('finish', function () { | ||
if (isTavis) return true; | ||
return gulp.src(['test.js']) | ||
@@ -35,0 +38,0 @@ .pipe(mocha()) |
{ | ||
"name": "chickencurry", | ||
"version": "1.4.0", | ||
"version": "2.1.0", | ||
"description": "Add some chicken curry to your functions", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "gulp test" | ||
"test": "gulp test", | ||
"prepublish": "gulp test" | ||
}, | ||
@@ -28,3 +29,3 @@ "repository": { | ||
"gulp": "^3.8.11", | ||
"gulp-babel": "^4.0.0", | ||
"gulp-babel": "^5.1.0", | ||
"gulp-coveralls": "^0.1.3", | ||
@@ -37,2 +38,3 @@ "gulp-istanbul": "^0.6.0", | ||
"gulp-watch": "^4.1.0", | ||
"is-travis": "^1.0.0", | ||
"mocha": "^2.1.0", | ||
@@ -39,0 +41,0 @@ "mocha-lcov-reporter": "0.0.2", |
@@ -32,2 +32,21 @@ :curry: Chickencurry | ||
### curry with function bind syntax `::` (ES2015) | ||
```js | ||
var curry = require('./'); | ||
var add1 = function(a, b) { | ||
return a + b; | ||
}::curry(1); | ||
add1(3); // => 4 | ||
add1(4); // => 5 | ||
var sub = function(a, b) { | ||
return a - b; | ||
}::curry(); | ||
sub(3)(1); // => 2 | ||
``` | ||
### Curry n arguments | ||
@@ -39,3 +58,3 @@ | ||
function join() { | ||
return Array.prototype.slice.call(arguments).join(); | ||
return Array.prototype.slice.call(arguments).join(','); | ||
} | ||
@@ -64,3 +83,3 @@ | ||
function join() { | ||
return Array.prototype.slice.call(arguments).join(); | ||
return Array.prototype.slice.call(arguments).join(','); | ||
} | ||
@@ -67,0 +86,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110
14003
16
18
45
1