Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

annozip

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

annozip - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

26

lib/index.js

@@ -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

package.json

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc