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

collect-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collect-js - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

lib/collect.js

@@ -43,3 +43,3 @@ // Copyright 2013 Sune Simonsen

roots.filter(function (root) {
return root;
return typeof root === 'object';
}).forEach(function (root) {

@@ -46,0 +46,0 @@ Object.keys(root).filter(function (fieldName) {

{
"name": "collect-js",
"version": "0.0.3",
"version": "0.0.4",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -5,0 +5,0 @@ "description": "A JavaScript library for collecting data from tree data structures",

@@ -64,2 +64,7 @@ /*global describe, it*/

it('returns an empty list for query: foo', function () {
var result = collect('foo', store);
expect(result, 'to be empty');
});
it('returns an empty list for query: foo.bar', function () {

@@ -70,2 +75,7 @@ var result = collect('foo.bar', store);

it('returns an empty list for query: /foo/', function () {
var result = collect(/foo/, store);
expect(result, 'to be empty');
});
it('returns an empty list for query: ..bar', function () {

@@ -72,0 +82,0 @@ var result = collect('foo.bar', store);

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