Comparing version 0.1.0 to 1.0.0
# Change Log | ||
All notable changes to this project will be documented in this file (keepachangelog.com). | ||
## 1.0.0 - 2016-01-21 | ||
### Added | ||
- Add `Function.prototype.bind` polyfill. | ||
- When 0 arguments applied, return function. | ||
## 0.1.0 - 2015-05-15 | ||
### Added | ||
- Initial Version. |
12
index.js
'use strict' | ||
/*! | ||
* imports. | ||
*/ | ||
if (!Function.prototype.bind) Function.bind = require('fast-bind') | ||
/*! | ||
* exports. | ||
@@ -24,5 +30,7 @@ */ | ||
var out = function () { | ||
if (arguments.length === 0) return out | ||
return arguments.length > 1 | ||
? fn.call(self, arguments[0], arguments[1]) | ||
: fn.bind(self, arguments[0]) | ||
? fn.apply(self, arguments) | ||
: fn.bind(self, arguments[0]) | ||
} | ||
@@ -29,0 +37,0 @@ |
{ | ||
"name": "curry2", | ||
"description": "Curry a binary function.", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"author": "Wil Moore III <wil.moore@wilmoore.com>", | ||
@@ -9,4 +9,8 @@ "bugs": { | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"fast-bind": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"dependency-check": "^2.4.0", | ||
"fixpack": "^2.2.0", | ||
"istanbul": "^0.3.13", | ||
@@ -31,3 +35,5 @@ "nodemon": "^1.3.7", | ||
"cover": "istanbul cover test.js", | ||
"dependency-check": "dependency-check ./package.json && dependency-check ./package.json --unused --no-dev", | ||
"dev": "nodemon -x 'npm run test --silent' -e 'js json'", | ||
"fixpack": "fixpack", | ||
"release-major": "npm version major && git push --follow-tags && npm publish", | ||
@@ -37,4 +43,4 @@ "release-minor": "npm version minor && git push --follow-tags && npm publish", | ||
"standard": "standard", | ||
"test": "npm run standard --silent && node test.js | tap-spec" | ||
"test": "npm run dependency-check && npm run standard --silent && node test.js | tap-spec" | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6092
33
0
1
8
+ Addedfast-bind@^1.0.0
+ Addedfast-bind@1.0.0(transitive)