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.0 to 0.2.1

tests/to_object.js

25

lib/index.js

@@ -22,10 +22,27 @@ var annotate = require('annotate');

}).
satisfies(function(ret) {
var zips = ret.filter(function(v) {
return is.array(v);
satisfies(isZip);
var toObject = annotate('zip.toObject', 'Converts given zip into an object').
on(isZip, function(a) {
var ret = {};
var i, len;
a.forEach(function(v) {
ret[v[0]] = v[1];
});
return is.array(ret) && zips.length == ret.length;
return ret;
}).
satisfies(is.object);
zip.toObject = toObject;
function isZip(a) {
var zips = a.filter(function(v) {
return is.array(v);
});
return is.array(a) && zips.length == a.length;
}
module.exports = zip;

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Juho Vepsalainen <bebraw@gmail.com>",
"version": "0.2.0",
"version": "0.2.1",
"dependencies": {

@@ -8,0 +8,0 @@ "funkit": "0.7.7",

@@ -14,4 +14,2 @@ var generate = require('annogenerate');

fuzz(zip, function(op, a, b) {
var res, matches;
if(!is.defined(b)) {

@@ -22,9 +20,7 @@ a = keys(a);

res = op(a, b);
var res = op(a, b);
matches = res.filter(function(v, i) {
return res.filter(function(v, i) {
return equals(v[0], a[i]) && equals(v[1], b[i]);
});
return matches.length == res.length;
}).length == res.length;
});
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