Socket
Socket
Sign inDemoInstall

like-ar

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

like-ar - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

13

like-ar.js

@@ -27,2 +27,4 @@ "use strict";

likeAr.testingLikeOldJs=false;
function AdaptWithArrayMethods(objectData, objectBase){

@@ -56,3 +58,3 @@ Object.defineProperty(objectData, '_object', { value: objectBase||objectData});

var oThis=this._object;
if(typeof Object.values === 'function'){
if(typeof Object.values === 'function' && !likeAr.testingLikeOldJs){
return Object.values(oThis);

@@ -71,2 +73,3 @@ }

/*
function ArrayAndKeys2Object(result, keys){

@@ -79,2 +82,3 @@ var adapted = {};

}
*/

@@ -108,6 +112,3 @@ ObjectWithArrayMethodsOptimized.prototype.plain = function plain(){

var arrayValue=oThis[arrayKey];
return (method.stepAdapt||id)(
typeof f === "function" ? f.call(fThis, arrayValue, arrayKey, oThis) : f,
arrayValue, arrayKey, acumulator
);
return (method.stepAdapt||id)(f.call(fThis, arrayValue, arrayKey, oThis), arrayValue, arrayKey, acumulator);
}, fThis);

@@ -150,3 +151,3 @@ return (method.resultAdapt||id)(result, keys, acumulator);

if(keyNameOrArrayOfValues.length!=pairsOrArrayOfKeys.length){
throw new Error('ERROR like-ar.toPlainObject arrays of different lenght');
throw new Error('ERROR like-ar.toPlainObject arrays of different length');
}

@@ -153,0 +154,0 @@ keyNameOrArrayOfValues.forEach(function(value, i){

{
"name": "like-ar",
"description": "Using objects like arrays with map, filter, forEach and others coming soon.",
"version": "0.2.9",
"version": "0.2.10",
"author": "Codenautas <codenautas@googlegroups.com>",

@@ -18,4 +18,5 @@ "repository": "codenautas/like-ar",

"json4all": "~0.3.10",
"mocha": "~5.2.0",
"istanbul": "~0.4.5"
"mocha": "~6.0.2",
"istanbul": "~0.4.5",
"nyc": "~13.3.0"
},

@@ -28,4 +29,6 @@ "engines": {

"test-nc": "mocha --reporter spec --bail --check-leaks --no-colors test/",
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"x-test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
"test-ci": "nyc node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
"x-test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-cov": "node node_modules/nyc/bin/nyc node_modules/mocha/bin/_mocha --exit --check-leaks test/",
"test-cli": "node server/karma-server.js --karma karma.conf.js --single-run",

@@ -39,2 +42,26 @@ "test-cli-h": "node server/karma-server.js --karma karma.conf.js",

},
"nyc": {
"lines": 95,
"statements": 95,
"functions": 95,
"branches": 95,
"extension": [
".js"
],
"exclude": [
"test"
],
"include": [
"*.js"
],
"reporter": [
"html",
"lcov",
"text-summary"
],
"sourceMap": true,
"instrument": true,
"all": true,
"check-coverage": true
},
"qa-control": {

@@ -41,0 +68,0 @@ "package-version": "0.3.0",

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