New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

foreach-prop

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foreach-prop - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

101

CHANGELOG.md
# foreach-prop changelog
## 2.0.6
***29-AUG-2019***
* dependencies updated
* `ts-jest` for typescript test
* added `husky`
## 2.0.5
*22-JUN-2019*
***22-JUN-2019***
* dependencies updated
## 2.0.4
*19-JUN-2019*
***19-JUN-2019***
* improved documentation

@@ -16,4 +26,5 @@ * fix: throw on null object

## 2.0.3
*18-JUN-2019*
***18-JUN-2019***
* dependencies updated

@@ -24,4 +35,5 @@ * refactoring

## 2.0.2
*18-JUN-2019*
***18-JUN-2019***
* dependencies updated

@@ -31,9 +43,11 @@ * minor improvements

## 2.0.1
*07-JUN-2019*
***07-JUN-2019***
* dependencies updated
## 2.0.0
*05-JUN-2019*
***05-JUN-2019***
* improved documentation

@@ -47,4 +61,5 @@ * performance improvements for none & 1 extra arguments

## 1.1.13
*01-JUN-2019*
***01-JUN-2019***
* dependencies updated

@@ -54,9 +69,11 @@ * improved documentation

## 1.1.12
*01-JUN-2019*
***01-JUN-2019***
* dependencies updated
## 1.1.11
*31-MAY-2019*
***31-MAY-2019***
* dependencies updated

@@ -68,9 +85,11 @@ * fixed cdn links for latest version

## 1.1.10
*30-MAY-2019*
***30-MAY-2019***
* dependencies updated
## 1.1.9
*29-MAY-2019*
***29-MAY-2019***
* installed `typescript` locally

@@ -80,4 +99,5 @@ * minor improvements

## 1.1.8
*28-MAY-2019*
***28-MAY-2019***
* improved documentation

@@ -88,4 +108,5 @@ * dependencies updated

## 1.1.7
*28-MAY-2019*
***28-MAY-2019***
* improved jest config

@@ -96,4 +117,5 @@ * dependencies updated

## 1.1.6
*25-MAY-2019*
***25-MAY-2019***
* dependencies updated

@@ -105,4 +127,5 @@ * improved documentation

## 1.1.5
*24-MAY-2019*
***24-MAY-2019***
* dependencies updated

@@ -112,19 +135,23 @@ * improved documentation

## 1.1.4
*17-MAY-2019*
***17-MAY-2019***
* switched to `bundlib`
## 1.1.3
*17-MAY-2019*
***17-MAY-2019***
* fixed: broken sourcemap
## 1.1.2
*17-MAY-2019*
***17-MAY-2019***
* minor source code refactoring
## 1.1.1
*16-MAY-2019*
***16-MAY-2019***
* dependencies updated

@@ -134,4 +161,5 @@ * test refactoring

## 1.1.0
*09-MAY-2019*
***09-MAY-2019***
* switched to `typescript`

@@ -144,9 +172,11 @@ * use `tslint`

## 1.0.3
*06-MAY-2019*
***06-MAY-2019***
* dependencies updated
## 1.0.2
*05-MAY-2019*
***05-MAY-2019***
* test improvements

@@ -156,4 +186,5 @@ * improved documentation

## 1.0.1
*05-MAY-2019*
***05-MAY-2019***
* test refactoring

@@ -163,4 +194,5 @@ * improved documentation

## 1.0.0
*04-MAY-2019*
***04-MAY-2019***
* first official release

@@ -170,4 +202,5 @@ * improved documentation

## 0.2.3
*04-MAY-2019*
***04-MAY-2019***
* improved documentation

@@ -177,14 +210,17 @@ * minor source code improvements

## 0.2.2
*04-MAY-2019*
***04-MAY-2019***
* added browser support
## 0.2.1
*04-MAY-2019*
***04-MAY-2019***
* source code refactoring
## 0.2.0
*04-MAY-2019*
***04-MAY-2019***
* changelog documented

@@ -194,9 +230,11 @@ * added `some`, `every` & `includes` methods

## 0.1.1
*04-MAY-2019*
***04-MAY-2019***
* added keywords
## 0.1.0
*04-MAY-2019*
***04-MAY-2019***
* added `find` method

@@ -206,5 +244,6 @@ * test refactoring

## 0.0.1
*01-MAY-2019*
***01-MAY-2019***
* first release
* added `forEach`, `map`, `keyOf`, `lasKeyOf`, `findKey`, `filter` & `reduce` methods

@@ -10,9 +10,9 @@ 'use strict';

function notEnoughArgs(count, expected) {
return error(("expected " + expected + " arguments, got " + count + "."));
return error("expected " + expected + " arguments, got " + count + ".");
}
function invalidObject(object) {
return error((object + " is not an object."));
return error(object + " is not an object.");
}
function invalidCallback(callback) {
return error((callback + " is not a function."));
return error(callback + " is not a function.");
}

@@ -31,3 +31,9 @@

return argsLen === 2 ? function (key) { return callback.call(thisArg, object[key], key); } : argsLen === 3 ? function (key) { return callback.call(thisArg, object[key], key, args[2]); } : function (key) { return callback.call.apply(callback, [ thisArg, object[key], key ].concat( toArray(args, 2) )); };
return argsLen === 2 ? function (key) {
return callback.call(thisArg, object[key], key);
} : argsLen === 3 ? function (key) {
return callback.call(thisArg, object[key], key, args[2]);
} : function (key) {
return callback.call.apply(callback, [thisArg, object[key], key].concat(toArray(args, 2)));
};
}

@@ -39,3 +45,9 @@ function wrapReduceCallback(callback, thisArg, object, args, argsLen) {

return argsLen === 3 ? function (key, result) { return callback.call(thisArg, result, object[key], key); } : argsLen === 4 ? function (key, result) { return callback.call(thisArg, result, object[key], key, args[3]); } : function (key, result) { return callback.call.apply(callback, [ thisArg, result, object[key], key ].concat( toArray(args, 3) )); };
return argsLen === 3 ? function (key, result) {
return callback.call(thisArg, result, object[key], key);
} : argsLen === 4 ? function (key, result) {
return callback.call(thisArg, result, object[key], key, args[3]);
} : function (key, result) {
return callback.call.apply(callback, [thisArg, result, object[key], key].concat(toArray(args, 3)));
};
}

@@ -42,0 +54,0 @@

@@ -8,9 +8,9 @@ import toArray from 'args-to-arr';

function notEnoughArgs(count, expected) {
return error(("expected " + expected + " arguments, got " + count + "."));
return error("expected " + expected + " arguments, got " + count + ".");
}
function invalidObject(object) {
return error((object + " is not an object."));
return error(object + " is not an object.");
}
function invalidCallback(callback) {
return error((callback + " is not a function."));
return error(callback + " is not a function.");
}

@@ -29,3 +29,9 @@

return argsLen === 2 ? function (key) { return callback.call(thisArg, object[key], key); } : argsLen === 3 ? function (key) { return callback.call(thisArg, object[key], key, args[2]); } : function (key) { return callback.call.apply(callback, [ thisArg, object[key], key ].concat( toArray(args, 2) )); };
return argsLen === 2 ? function (key) {
return callback.call(thisArg, object[key], key);
} : argsLen === 3 ? function (key) {
return callback.call(thisArg, object[key], key, args[2]);
} : function (key) {
return callback.call.apply(callback, [thisArg, object[key], key].concat(toArray(args, 2)));
};
}

@@ -37,3 +43,9 @@ function wrapReduceCallback(callback, thisArg, object, args, argsLen) {

return argsLen === 3 ? function (key, result) { return callback.call(thisArg, result, object[key], key); } : argsLen === 4 ? function (key, result) { return callback.call(thisArg, result, object[key], key, args[3]); } : function (key, result) { return callback.call.apply(callback, [ thisArg, result, object[key], key ].concat( toArray(args, 3) )); };
return argsLen === 3 ? function (key, result) {
return callback.call(thisArg, result, object[key], key);
} : argsLen === 4 ? function (key, result) {
return callback.call(thisArg, result, object[key], key, args[3]);
} : function (key, result) {
return callback.call.apply(callback, [thisArg, result, object[key], key].concat(toArray(args, 3)));
};
}

@@ -40,0 +52,0 @@

@@ -11,9 +11,9 @@ (function (global, factory) {

function notEnoughArgs(count, expected) {
return error(("expected " + expected + " arguments, got " + count + "."));
return error("expected " + expected + " arguments, got " + count + ".");
}
function invalidObject(object) {
return error((object + " is not an object."));
return error(object + " is not an object.");
}
function invalidCallback(callback) {
return error((callback + " is not a function."));
return error(callback + " is not a function.");
}

@@ -115,3 +115,3 @@

if (!isArrayLike(args) && args !== "") {
throw new TypeError((args + " can't be converted to array."));
throw new TypeError(args + " can't be converted to array.");
}

@@ -124,3 +124,3 @@

if (typeof start !== "number" || !isFinite(start)) {
throw new TypeError((start + " is not a valid start point."));
throw new TypeError(start + " is not a valid start point.");
}

@@ -151,3 +151,9 @@

return argsLen === 2 ? function (key) { return callback.call(thisArg, object[key], key); } : argsLen === 3 ? function (key) { return callback.call(thisArg, object[key], key, args[2]); } : function (key) { return callback.call.apply(callback, [ thisArg, object[key], key ].concat( toArray(args, 2) )); };
return argsLen === 2 ? function (key) {
return callback.call(thisArg, object[key], key);
} : argsLen === 3 ? function (key) {
return callback.call(thisArg, object[key], key, args[2]);
} : function (key) {
return callback.call.apply(callback, [thisArg, object[key], key].concat(toArray(args, 2)));
};
}

@@ -159,3 +165,9 @@ function wrapReduceCallback(callback, thisArg, object, args, argsLen) {

return argsLen === 3 ? function (key, result) { return callback.call(thisArg, result, object[key], key); } : argsLen === 4 ? function (key, result) { return callback.call(thisArg, result, object[key], key, args[3]); } : function (key, result) { return callback.call.apply(callback, [ thisArg, result, object[key], key ].concat( toArray(args, 3) )); };
return argsLen === 3 ? function (key, result) {
return callback.call(thisArg, result, object[key], key);
} : argsLen === 4 ? function (key, result) {
return callback.call(thisArg, result, object[key], key, args[3]);
} : function (key, result) {
return callback.call.apply(callback, [thisArg, result, object[key], key].concat(toArray(args, 3)));
};
}

@@ -162,0 +174,0 @@

@@ -1,2 +0,2 @@

var r,n;r=this,n=function(r){"use strict";function n(r){return new TypeError(r)}function t(r,t){return n("expected "+t+" arguments, got "+r+".")}function e(r){return n(r+" is not an object.")}function o(r){return n(r+" is not a function.")}var i={}.hasOwnProperty;function f(r){return!!r&&"object"==typeof r}var u=Array.isArray,a=Object.prototype.toString,c=u||function(r){return!!r&&"[object Array]"==a.call(r)},l=function(r){var n=h.call(r);return"[object Function]"===n||"function"==typeof r&&"[object RegExp]"!==n||"undefined"!=typeof window&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)},h=Object.prototype.toString,w=function(r){if(!r)return!1;if(c(r))return!0;if(l(r)||function(r){if(null==r)return!1;var n=Object(r);return n===n.window}(r))return!1;var n="length"in(r=Object(r))&&r.length;return!(1!==r.nodeType||!n)||(0===n||"number"==typeof n&&n>0&&n-1 in r)};function v(r,n){if(!w(r)&&""!==r)throw new TypeError(r+" can't be converted to array.");if(null==n&&(n=0),"number"!=typeof n||!isFinite(n))throw new TypeError(n+" is not a valid start point.");var t=r.length;n<0&&(n+=t);for(var e=Object(r),o=new Array(t-n),i=n;i<t;i++)i in e&&(o[i-n]=e[i]);return o}function p(r,n,t,e,i){if(!l(r))throw o(r);return 2===i?function(e){return r.call(n,t[e],e)}:3===i?function(o){return r.call(n,t[o],o,e[2])}:function(o){return r.call.apply(r,[n,t[o],o].concat(v(e,2)))}}function s(r,n){var o=arguments.length;if(o<2)throw t(o,2);if(!f(r))throw e(r);for(var u in r)if(i.call(r,u)&&r[u]===n)return u;return null}r.every=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&!a(c))return!1;return!0},r.filter=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u),c={};for(var l in r)i.call(r,l)&&a(l)&&(c[l]=r[l]);return c},r.find=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&a(c))return r[c]},r.findKey=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&a(c))return c;return null},r.forEach=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)i.call(r,c)&&a(c)},r.includes=function(r,n){return null!==s(r,n)},r.keyOf=s,r.lastKeyOf=function(r,n){var o=arguments.length;if(o<2)throw t(o,2);if(!f(r))throw e(r);var u=null;for(var a in r)i.call(r,a)&&r[a]===n&&(u=a);return u},r.map=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u),c={};for(var l in r)i.call(r,l)&&(c[l]=a(l));return c},r.reduce=function(r,n,u){var a=arguments,c=a.length;if(c<2)throw t(c,2);if(!f(r))throw e(r);var h=function(r,n,t,e,i){if(!l(r))throw o(r);return 3===i?function(e,o){return r.call(n,o,t[e],e)}:4===i?function(o,i){return r.call(n,i,t[o],o,e[3])}:function(o,i){return r.call.apply(r,[n,i,t[o],o].concat(v(e,3)))}}(n,this,r,a,c),w=u;for(var p in r)i.call(r,p)&&(w=h(p,w));return w},r.some=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&a(c))return!0;return!1}},"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((r=r||self).eachProp={});
var r,n;r=this,n=function(r){"use strict";function n(r){return new TypeError(r)}function t(r,t){return n("expected "+t+" arguments, got "+r+".")}function e(r){return n(r+" is not an object.")}function o(r){return n(r+" is not a function.")}var i={}.hasOwnProperty;function f(r){return!!r&&"object"==typeof r}var u=Array.isArray,a=Object.prototype.toString,c=u||function(r){return!!r&&"[object Array]"==a.call(r)},l=function(r){var n=h.call(r);return"[object Function]"===n||"function"==typeof r&&"[object RegExp]"!==n||"undefined"!=typeof window&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)},h=Object.prototype.toString,w=function(r){if(!r)return!1;if(c(r))return!0;if(l(r)||function(r){if(null==r)return!1;var n=Object(r);return n===n.window}(r))return!1;var n="length"in(r=Object(r))&&r.length;return!(1!==r.nodeType||!n)||0===n||"number"==typeof n&&n>0&&n-1 in r};function v(r,n){if(!w(r)&&""!==r)throw new TypeError(r+" can't be converted to array.");if(null==n&&(n=0),"number"!=typeof n||!isFinite(n))throw new TypeError(n+" is not a valid start point.");var t=r.length;n<0&&(n+=t);for(var e=Object(r),o=new Array(t-n),i=n;i<t;i++)i in e&&(o[i-n]=e[i]);return o}function p(r,n,t,e,i){if(!l(r))throw o(r);return 2===i?function(e){return r.call(n,t[e],e)}:3===i?function(o){return r.call(n,t[o],o,e[2])}:function(o){return r.call.apply(r,[n,t[o],o].concat(v(e,2)))}}function s(r,n){var o=arguments.length;if(o<2)throw t(o,2);if(!f(r))throw e(r);for(var u in r)if(i.call(r,u)&&r[u]===n)return u;return null}r.every=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&!a(c))return!1;return!0},r.filter=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u),c={};for(var l in r)i.call(r,l)&&a(l)&&(c[l]=r[l]);return c},r.find=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&a(c))return r[c]},r.findKey=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&a(c))return c;return null},r.forEach=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)i.call(r,c)&&a(c)},r.includes=function(r,n){return null!==s(r,n)},r.keyOf=s,r.lastKeyOf=function(r,n){var o=arguments.length;if(o<2)throw t(o,2);if(!f(r))throw e(r);var u=null;for(var a in r)i.call(r,a)&&r[a]===n&&(u=a);return u},r.map=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u),c={};for(var l in r)i.call(r,l)&&(c[l]=a(l));return c},r.reduce=function(r,n,u){var a=arguments,c=a.length;if(c<2)throw t(c,2);if(!f(r))throw e(r);var h=function(r,n,t,e,i){if(!l(r))throw o(r);return 3===i?function(e,o){return r.call(n,o,t[e],e)}:4===i?function(o,i){return r.call(n,i,t[o],o,e[3])}:function(o,i){return r.call.apply(r,[n,i,t[o],o].concat(v(e,3)))}}(n,this,r,a,c),w=u;for(var p in r)i.call(r,p)&&(w=h(p,w));return w},r.some=function(r,n){var o=arguments,u=o.length;if(u<2)throw t(u,2);if(!f(r))throw e(r);var a=p(n,this,r,o,u);for(var c in r)if(i.call(r,c)&&a(c))return!0;return!1}},"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((r=r||self).eachProp={});
//# sourceMappingURL=each-prop.umd.min.js.map
{
"name": "foreach-prop",
"version": "2.0.5",
"version": "2.0.6",
"description": "Array-like methods for objects",
"main": "dist/each-prop.cjs.js",
"module": "dist/each-prop.es.js",
"browser": "dist/each-prop.umd.js",
"types": "types/index.d.ts",
"bundlib": {
"name": "eachProp",
"min": "browser"
},
"keywords": [

@@ -25,2 +17,11 @@ "for-in",

],
"main": "dist/each-prop.cjs.js",
"module": "dist/each-prop.es.js",
"browser": "dist/each-prop.umd.js",
"types": "types/index.d.ts",
"typings": "types/index.d.ts",
"bundlib": {
"name": "eachProp",
"min": "browser"
},
"files": [

@@ -32,10 +33,10 @@ "dist",

"lint": "tslint src/**/*.ts",
"clean": "rm -rf .cache dist types coverage",
"clean": "rm -rf node_modules/.cache/bundlib node_modules/.cache/jest dist types coverage",
"dev": "bundlib -dw",
"build": "npm run lint && bundlib -d",
"test": "jest --colors",
"preversion": "npm run clean && npm run build && npm test"
"test": "jest --color -w 3",
"preversion": "npm run clean && npm test && npm run build"
},
"dependencies": {
"args-to-arr": "^1.4.3",
"args-to-arr": "^1.4.6",
"is-function": "^1.0.1"

@@ -45,9 +46,12 @@ },

"@types/is-function": "^1.0.0",
"@types/jest": "^24.0.15",
"@types/node": "^12.0.8",
"bundlib": "^0.5.1",
"eslint": "^6.0.0",
"jest": "^24.8.0",
"tslint": "^5.17.0",
"typescript": "^3.5.2"
"@types/jest": "^24.0.18",
"@types/node": "^12.7.2",
"bundlib": "^0.12.2",
"chokidar": "^3.0.2",
"eslint": "^6.2.2",
"husky": "^3.0.4",
"jest": "^24.9.0",
"ts-jest": "^24.0.2",
"tslint": "^5.19.0",
"typescript": "^3.6.2"
},

@@ -54,0 +58,0 @@ "author": {

@@ -23,3 +23,3 @@ # foreach-prop

##### for production
***for production***

@@ -38,3 +38,3 @@ ```html

##### for production
***for production***

@@ -49,3 +49,3 @@ ```html

###### example
***example***

@@ -66,2 +66,3 @@ ```javascript

```
```console

@@ -179,3 +180,3 @@ {

###### example
***example***

@@ -182,0 +183,0 @@ ```javascript

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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