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

@iplatformglobal/array-multi-sort

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iplatformglobal/array-multi-sort - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

build/index.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["ipf-helpers"]=t():e["ipf-helpers"]=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e,t){function n(e,t,r,o,u){var f="DESC"==o[u]?1:0,i=!isNaN(e[r[u]]-t[r[u]]),c=i?e[r[u]]:e[r[u]].toLowerCase(),p=i?t[r[u]]:t[r[u]].toLowerCase();return c<p?0===f?-1:1:c==p?r.length-1>u?n(e,t,r,o,u+1):0:0===f?1:-1}var r=t.map(function(e){return e.key}),o=t.map(function(e){return e.direction});return e.sort(function(e,t){return n(e,t,r,o,0)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["ipf-helpers"]=t():e["ipf-helpers"]=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e,t){function n(e,t,r,o,u){var f="DESC"==o[u]?1:0,i=!isNaN(e[r[u]]-t[r[u]]),c=i?e[r[u]]:e[r[u]].toLowerCase(),p=i?t[r[u]]:t[r[u]].toLowerCase();return c<p?0===f?-1:1:c==p?r.length-1>u?n(e,t,r,o,u+1):0:0===f?1:-1}var r=t.map(function(e){return e.key}),o=t.map(function(e){return e.direction});return e.concat().sort(function(e,t){return n(e,t,r,o,0)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}])});

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

{"/mnt/Stuff/Documents/NPM Modules/array-multi-sort/lib/index.js": {"path":"/mnt/Stuff/Documents/NPM Modules/array-multi-sort/lib/index.js","statementMap":{"0":{"start":{"line":2,"column":18},"end":{"line":2,"column":43}},"1":{"start":{"line":2,"column":37},"end":{"line":2,"column":42}},"2":{"start":{"line":3,"column":18},"end":{"line":3,"column":49}},"3":{"start":{"line":3,"column":37},"end":{"line":3,"column":48}},"4":{"start":{"line":6,"column":22},"end":{"line":6,"column":54}},"5":{"start":{"line":7,"column":22},"end":{"line":7,"column":67}},"6":{"start":{"line":9,"column":14},"end":{"line":9,"column":77}},"7":{"start":{"line":10,"column":14},"end":{"line":10,"column":77}},"8":{"start":{"line":12,"column":4},"end":{"line":12,"column":47}},"9":{"start":{"line":12,"column":15},"end":{"line":12,"column":47}},"10":{"start":{"line":14,"column":4},"end":{"line":14,"column":115}},"11":{"start":{"line":14,"column":16},"end":{"line":14,"column":115}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":36}},"13":{"start":{"line":19,"column":2},"end":{"line":19,"column":80}},"14":{"start":{"line":19,"column":28},"end":{"line":19,"column":78}}},"fnMap":{"0":{"name":"arrayMultiSort","decl":{"start":{"line":1,"column":24},"end":{"line":1,"column":38}},"loc":{"start":{"line":1,"column":55},"end":{"line":20,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":32},"end":{"line":2,"column":33}},"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":42}},"line":2},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":32},"end":{"line":3,"column":33}},"loc":{"start":{"line":3,"column":37},"end":{"line":3,"column":48}},"line":3},"3":{"name":"arrayMultiSortRecursive","decl":{"start":{"line":5,"column":11},"end":{"line":5,"column":34}},"loc":{"start":{"line":5,"column":66},"end":{"line":17,"column":3}},"line":5},"4":{"name":"(anonymous_4)","decl":{"start":{"line":19,"column":18},"end":{"line":19,"column":19}},"loc":{"start":{"line":19,"column":28},"end":{"line":19,"column":78}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":22},"end":{"line":6,"column":54}},"type":"cond-expr","locations":[{"start":{"line":6,"column":49},"end":{"line":6,"column":50}},{"start":{"line":6,"column":53},"end":{"line":6,"column":54}}],"line":6},"1":{"loc":{"start":{"line":9,"column":14},"end":{"line":9,"column":77}},"type":"cond-expr","locations":[{"start":{"line":9,"column":26},"end":{"line":9,"column":43}},{"start":{"line":9,"column":46},"end":{"line":9,"column":77}}],"line":9},"2":{"loc":{"start":{"line":10,"column":14},"end":{"line":10,"column":77}},"type":"cond-expr","locations":[{"start":{"line":10,"column":26},"end":{"line":10,"column":43}},{"start":{"line":10,"column":46},"end":{"line":10,"column":77}}],"line":10},"3":{"loc":{"start":{"line":12,"column":4},"end":{"line":12,"column":47}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":12,"column":47}},{"start":{"line":12,"column":4},"end":{"line":12,"column":47}}],"line":12},"4":{"loc":{"start":{"line":12,"column":22},"end":{"line":12,"column":46}},"type":"cond-expr","locations":[{"start":{"line":12,"column":40},"end":{"line":12,"column":42}},{"start":{"line":12,"column":45},"end":{"line":12,"column":46}}],"line":12},"5":{"loc":{"start":{"line":14,"column":4},"end":{"line":14,"column":115}},"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":115}},{"start":{"line":14,"column":4},"end":{"line":14,"column":115}}],"line":14},"6":{"loc":{"start":{"line":14,"column":23},"end":{"line":14,"column":114}},"type":"cond-expr","locations":[{"start":{"line":14,"column":52},"end":{"line":14,"column":110}},{"start":{"line":14,"column":113},"end":{"line":14,"column":114}}],"line":14},"7":{"loc":{"start":{"line":16,"column":11},"end":{"line":16,"column":35}},"type":"cond-expr","locations":[{"start":{"line":16,"column":29},"end":{"line":16,"column":30}},{"start":{"line":16,"column":33},"end":{"line":16,"column":35}}],"line":16}},"s":{"0":2,"1":3,"2":2,"3":3,"4":6,"5":6,"6":6,"7":6,"8":6,"9":3,"10":3,"11":2,"12":1,"13":2,"14":5},"f":{"0":2,"1":3,"2":3,"3":6,"4":5},"b":{"0":[1,5],"1":[1,5],"2":[1,5],"3":[3,3],"4":[2,1],"5":[2,1],"6":[1,1],"7":[1,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"7ddc2925a5c11f173701ec8d979beae622f13b47"}
{"/mnt/Stuff/Documents/NPM Modules/array-multi-sort/lib/index.js": {"path":"/mnt/Stuff/Documents/NPM Modules/array-multi-sort/lib/index.js","statementMap":{"0":{"start":{"line":2,"column":18},"end":{"line":2,"column":43}},"1":{"start":{"line":2,"column":37},"end":{"line":2,"column":42}},"2":{"start":{"line":3,"column":18},"end":{"line":3,"column":49}},"3":{"start":{"line":3,"column":37},"end":{"line":3,"column":48}},"4":{"start":{"line":6,"column":22},"end":{"line":6,"column":54}},"5":{"start":{"line":7,"column":22},"end":{"line":7,"column":67}},"6":{"start":{"line":9,"column":14},"end":{"line":9,"column":77}},"7":{"start":{"line":10,"column":14},"end":{"line":10,"column":77}},"8":{"start":{"line":12,"column":4},"end":{"line":12,"column":47}},"9":{"start":{"line":12,"column":15},"end":{"line":12,"column":47}},"10":{"start":{"line":14,"column":4},"end":{"line":14,"column":115}},"11":{"start":{"line":14,"column":16},"end":{"line":14,"column":115}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":36}},"13":{"start":{"line":19,"column":2},"end":{"line":19,"column":89}},"14":{"start":{"line":19,"column":37},"end":{"line":19,"column":87}}},"fnMap":{"0":{"name":"arrayMultiSort","decl":{"start":{"line":1,"column":24},"end":{"line":1,"column":38}},"loc":{"start":{"line":1,"column":55},"end":{"line":20,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":32},"end":{"line":2,"column":33}},"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":42}},"line":2},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":32},"end":{"line":3,"column":33}},"loc":{"start":{"line":3,"column":37},"end":{"line":3,"column":48}},"line":3},"3":{"name":"arrayMultiSortRecursive","decl":{"start":{"line":5,"column":11},"end":{"line":5,"column":34}},"loc":{"start":{"line":5,"column":66},"end":{"line":17,"column":3}},"line":5},"4":{"name":"(anonymous_4)","decl":{"start":{"line":19,"column":27},"end":{"line":19,"column":28}},"loc":{"start":{"line":19,"column":37},"end":{"line":19,"column":87}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":22},"end":{"line":6,"column":54}},"type":"cond-expr","locations":[{"start":{"line":6,"column":49},"end":{"line":6,"column":50}},{"start":{"line":6,"column":53},"end":{"line":6,"column":54}}],"line":6},"1":{"loc":{"start":{"line":9,"column":14},"end":{"line":9,"column":77}},"type":"cond-expr","locations":[{"start":{"line":9,"column":26},"end":{"line":9,"column":43}},{"start":{"line":9,"column":46},"end":{"line":9,"column":77}}],"line":9},"2":{"loc":{"start":{"line":10,"column":14},"end":{"line":10,"column":77}},"type":"cond-expr","locations":[{"start":{"line":10,"column":26},"end":{"line":10,"column":43}},{"start":{"line":10,"column":46},"end":{"line":10,"column":77}}],"line":10},"3":{"loc":{"start":{"line":12,"column":4},"end":{"line":12,"column":47}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":12,"column":47}},{"start":{"line":12,"column":4},"end":{"line":12,"column":47}}],"line":12},"4":{"loc":{"start":{"line":12,"column":22},"end":{"line":12,"column":46}},"type":"cond-expr","locations":[{"start":{"line":12,"column":40},"end":{"line":12,"column":42}},{"start":{"line":12,"column":45},"end":{"line":12,"column":46}}],"line":12},"5":{"loc":{"start":{"line":14,"column":4},"end":{"line":14,"column":115}},"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":115}},{"start":{"line":14,"column":4},"end":{"line":14,"column":115}}],"line":14},"6":{"loc":{"start":{"line":14,"column":23},"end":{"line":14,"column":114}},"type":"cond-expr","locations":[{"start":{"line":14,"column":52},"end":{"line":14,"column":110}},{"start":{"line":14,"column":113},"end":{"line":14,"column":114}}],"line":14},"7":{"loc":{"start":{"line":16,"column":11},"end":{"line":16,"column":35}},"type":"cond-expr","locations":[{"start":{"line":16,"column":29},"end":{"line":16,"column":30}},{"start":{"line":16,"column":33},"end":{"line":16,"column":35}}],"line":16}},"s":{"0":2,"1":3,"2":2,"3":3,"4":6,"5":6,"6":6,"7":6,"8":6,"9":2,"10":4,"11":2,"12":2,"13":2,"14":5},"f":{"0":2,"1":3,"2":3,"3":6,"4":5},"b":{"0":[1,5],"1":[1,5],"2":[1,5],"3":[2,4],"4":[1,1],"5":[2,2],"6":[1,1],"7":[2,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"6bd5b044dcbada490b4654a7460327061acf84e6"}
}

@@ -6,5 +6,5 @@ {

"failures": 0,
"duration": 899,
"start": "2017-11-22T13:29:27.798Z",
"end": "2017-11-22T13:29:28.697Z"
"duration": 941,
"start": "2017-12-01T11:52:17.537Z",
"end": "2017-12-01T11:52:18.478Z"
},

@@ -16,3 +16,3 @@ "failures": [],

"fullTitle": "arrayMultiSort Single Criteria",
"duration": 131,
"duration": 157,
"errorCount": 0

@@ -23,3 +23,3 @@ },

"fullTitle": "arrayMultiSort Two Criterias",
"duration": 131,
"duration": 157,
"errorCount": 0

@@ -26,0 +26,0 @@ }

{
"name": "@iplatformglobal/array-multi-sort",
"version": "1.0.0",
"version": "1.0.1",
"description": "Array helper for soring array object on multiple key values with ordering",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -76,5 +76,5 @@ <!-- TITLE/ -->

Ensure there are no errors in the tests or linter and ensure your commit messages comply to the following format:
Ensure that there are no errors in the tests or linter and ensure that your commit messages comply to the following format:
* break: COMMIT_MSG - Changing the code in a way that changes the other users would need to impiment it.
* break: COMMIT_MSG - changes in the code that changes the way other users would need to implement it.
* feat: COMMIT_MSG - adding a new feature or capability to the helper.

@@ -84,3 +84,3 @@ * fix: COMMIT_MSG - any bugs or minor updates that fixes the existing code without adding or removing any capabilities.

There are git hooks configured to ensure commit message format as well as test and linter complience
There are git hooks configured to ensure commit message format as well as test and linter compliance.

@@ -87,0 +87,0 @@

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