Comparing version 0.0.1 to 0.10.1
68
index.js
@@ -0,60 +1,14 @@ | ||
'use strict'; | ||
{ | ||
{ | ||
var utils = require('./lib/utils'); | ||
var is = {}; | ||
is.VERSION = '0.10.1'; | ||
function every7(ee){ | ||
for(var i=0,l=ee.length;i<l;i++){ | ||
if(!ee[i]) return false} | ||
return true} | ||
[ | ||
utils, | ||
require('./lib/predicates'), | ||
require('./lib/chain'), | ||
require('./lib/other'), | ||
].reduce(utils.assign, is); | ||
function empty7(ee){ | ||
return ee.length===0} | ||
function any7(fn,ee){ | ||
for(var i=0,l=ee.length;i<l;i++){ | ||
var r=fn(ee[i]) | ||
if(r) return r;}} | ||
function member7(it,ee){ | ||
for(var i=0,l=ee;i<l;i++){ | ||
if(ee[i]===it) return true} | ||
return false} | ||
function head(ee){ | ||
return ee[0]} | ||
function tail(ee){ | ||
return ee.slice(1)} | ||
function reverse(ee){ | ||
return ee.reverse()} | ||
function map(fn,ee){ | ||
var r=Array(ee.length); | ||
for(var i=0,l=ee.length;i<l;i++){ | ||
r[i]=fn(ee[i])} | ||
return r[i]} | ||
function pair(it,ee){ | ||
ee.unshift(it); | ||
return ee} | ||
function concatenate(l1,l2){ | ||
return l1.concat(l2)} | ||
module.exports={ | ||
every7:every7, | ||
empty7:empty7, | ||
any7:any7, | ||
member7:member7, | ||
reverse:reverse, | ||
tail:tail, | ||
head:head, | ||
map:map, | ||
pair:pair, | ||
concatenate:concatenate, | ||
} | ||
} | ||
} | ||
module.exports = is; |
{ | ||
"author": "Dmitry Unkovksy <oil.crayons@gmail.com>", | ||
"name": "predicate", | ||
"description": "trivial predicates to aid list tossing", | ||
"version": "0.0.1", | ||
"homepage": "http://nojs.be/predicate", | ||
"version": "0.10.1", | ||
"description": "A set of predicate functions to improve your value testing and comparisons.", | ||
"scripts": { | ||
"pretest": "jshint --reporter node_modules/jshint-stylish/stylish.js index.js ./test", | ||
"test": "mocha -R spec --recursive test", | ||
"docs": "jade ./docs/index.jade --out ./docs", | ||
"changelog": "tail -n +4 ./docs/changelog.jade > CHANGELOG.md", | ||
"build-docs": "npm run docs && npm run changelog", | ||
"build-dev": "cat ./docs/banner.txt > ./dist/is.js && browserify -s is index.js >> ./dist/is.js", | ||
"build-prod": "cat ./docs/banner.txt > ./dist/is.min.js && uglifyjs ./dist/is.js >> ./dist/is.min.js", | ||
"build": "npm run build-dev && npm run build-prod", | ||
"clean": "rm ./dist/* ./docs/index.html CHANGELOG.md", | ||
"prepare": "npm ts && npm run build && npm run build-docs" | ||
}, | ||
"main": "index.js", | ||
"author": { | ||
"name": "Trevor Landau", | ||
"email": "landautrevor@gmail.com", | ||
"url": "http://trevorlandau.net" | ||
}, | ||
"homepage": "http://landau.github.io/is", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/nojs/predicate.git" | ||
"url": "http://github.com/landau/is" | ||
}, | ||
"main":"./index.js", | ||
"engines": { | ||
"node": ">=0.4" | ||
"bugs": { | ||
"url": "http://github.com/landau/is/issues" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {} | ||
"keywords": [ | ||
"functional", | ||
"predicates", | ||
"predicate", | ||
"pred", | ||
"type", | ||
"instance", | ||
"comparator", | ||
"compare", | ||
"curry", | ||
"partial", | ||
"is", | ||
"testing", | ||
"test", | ||
"chain", | ||
"chaining" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"browserify": "^3.44.2", | ||
"jade": "^1.5.0", | ||
"jshint": "^2.5.2", | ||
"jshint-stylish": "^0.4.0", | ||
"lodash": "~2.4.1", | ||
"marked": "^0.3.2", | ||
"matcha": "^0.5.0", | ||
"mocha": "^1.21.4", | ||
"should": "^4.0.4", | ||
"uglify-js": "^2.4.13" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
103563
21
943
0
69
0
10
4
2