object-loops
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -33,7 +33,12 @@ /** | ||
[ | ||
'every', | ||
'inverse', | ||
'filter', | ||
'findKey', | ||
'find', | ||
'forEach', | ||
'mapKeys', | ||
'map', | ||
'reduce' | ||
'reduce', | ||
'some' | ||
].forEach(function (methodName) { | ||
@@ -40,0 +45,0 @@ var filename = dasherize(methodName) |
{ | ||
"name": "object-loops", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Functional methods like forEach, map, filter, and other Array methods for Objects in javascript", | ||
@@ -42,6 +42,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"101": "^1.2.0", | ||
"101": "^1.6.1", | ||
"dasherize": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"camelize": "^1.0.0", | ||
"code": "^1.5.0", | ||
@@ -48,0 +49,0 @@ "lab": "^6.2.0", |
@@ -11,2 +11,3 @@ var Code = require('code') | ||
var allMethodNames = require('./fixtures/all-method-names.js') | ||
var chain = require('../chain') | ||
@@ -30,2 +31,9 @@ | ||
}) | ||
it('should have all methods', function (done) { | ||
var chainable = chain({}) | ||
allMethodNames.forEach(function (name) { | ||
expect(chainable[name]).to.be.a.function() | ||
}) | ||
done() | ||
}) | ||
describe('errors', function () { | ||
@@ -32,0 +40,0 @@ it('should error if invoked w/ non-object', function (done) { |
@@ -13,2 +13,4 @@ var Code = require('code') | ||
var allMethodNames = require('./fixtures/all-method-names.js') | ||
describe('index', function () { | ||
@@ -21,2 +23,8 @@ describe('all methods', function () { | ||
after(require('./fixtures/reset-object-prototype')) | ||
it('should have all methods', function (done) { | ||
allMethodNames.forEach(function (name) { | ||
expect(Object[name]).to.be.a.function() | ||
}) | ||
done() | ||
}) | ||
it('should iterate through all the key-value pairs in the object', function (done) { | ||
@@ -23,0 +31,0 @@ var obj = { |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
81794
31
2098
6
3
Updated101@^1.6.1