Comparing version 0.2.3 to 0.2.4
@@ -5,11 +5,27 @@ 'use strict'; | ||
var is = require('annois'); | ||
var fp = require('annofp'); | ||
var prop = fp.prop; | ||
var keys = fp.keys; | ||
var values = fp.values; | ||
var prop = annotate('prop', 'Returns a function that gets given property'). | ||
on(is.string, function(name) { | ||
return function(o) { | ||
return o && o[name]; | ||
}; | ||
}); | ||
var values = annotate('values', 'Returns values of the given object'). | ||
on(is.object, function(o) { | ||
var ret = []; | ||
for(var k in o) { | ||
if(o.hasOwnProperty(k)) { | ||
ret.push(o[k]); | ||
} | ||
} | ||
return ret; | ||
}); | ||
var zip = annotate('zip', 'Converts given input into a zip'). | ||
on(is.object, function(o) { | ||
return zip(keys(o), values(o)); | ||
return zip(Object.keys(o), values(o)); | ||
}). | ||
@@ -16,0 +32,0 @@ on([is.array], function() { |
@@ -5,7 +5,6 @@ { | ||
"author": "Juho Vepsalainen <bebraw@gmail.com>", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"dependencies": { | ||
"annois": "0.3.0", | ||
"annotate": "0.9.0", | ||
"annofp": "~0.2.2" | ||
"annotate": "0.9.0" | ||
}, | ||
@@ -12,0 +11,0 @@ "devDependencies": { |
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
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
5285
2
90
- Removedannofp@~0.2.2
- Removedannofp@0.2.3(transitive)
- Removedannomath@0.2.0(transitive)
- Removedannotate@0.7.0(transitive)
- Removedrequire-dir@0.1.0(transitive)