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

sort-keys-recursive

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-keys-recursive - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

bower.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/Kikobeats/sort-keys-recursive",
"version": "1.1.0",
"version": "1.1.1",
"main": "dist/sort-keys-recursive.js",

@@ -8,0 +8,0 @@ "authors": [

/**
* sort-keys-recursive - Sort the keys of an object recursively
* @version v1.1.0
* @version v1.1.1
* @link https://github.com/Kikobeats/sort-keys-recursive
* @license MIT
*/require=function r(t,e,o){function n(i,u){if(!e[i]){if(!t[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(c)return c(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var a=e[i]={exports:{}};t[i][0].call(a.exports,function(r){var e=t[i][1][r];return n(e?e:r)},a,a.exports,r,t,e,o)}return e[i].exports}for(var c="function"==typeof require&&require,i=0;i<o.length;i++)n(o[i]);return n}({1:[function(r,t,e){"use strict";var o,n;n=r("sort-keys"),t.exports=o=function(){function r(){}return r.array=function(r,t){return r.sort(t)},r.objectKeys=function(r,t){return n(r)},r.object=function(r,t){var e,o;r=this.objectKeys(r,t);for(e in r)o=r[e],"object"==typeof o&&(r[e]=o instanceof Array?this.array(o):this.object(o));return r},r}()},{"sort-keys":4}],2:[function(r,t,e){},{}],3:[function(r,t,e){"use strict";t.exports=function(r){if(void 0===r||null===r)return String(r);var t={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"};return t[Object.prototype.toString.call(r)]}},{}],4:[function(r,t,e){"use strict";t.exports=function(r,t){if("object"!=typeof r)throw new TypeError("Expected an object");var e={};return Object.keys(r).sort(t).forEach(function(t){e[t]=r[t]}),e}},{}],"sort-keys-recursive":[function(r,t,e){"use strict";r("coffee-script/register");var o=r("fn-typeof"),n=r("./lib/SortRecursive");t.exports=function(r,t){return"array"===o(r)?n.array(r,t):"object"===o(r)?n.object(r,t):r}},{"./lib/SortRecursive":1,"coffee-script/register":2,"fn-typeof":3}]},{},[]);
*/require=function r(t,e,o){function n(i,u){if(!e[i]){if(!t[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(c)return c(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var a=e[i]={exports:{}};t[i][0].call(a.exports,function(r){var e=t[i][1][r];return n(e?e:r)},a,a.exports,r,t,e,o)}return e[i].exports}for(var c="function"==typeof require&&require,i=0;i<o.length;i++)n(o[i]);return n}({1:[function(r,t,e){"use strict";var o,n;n=r("sort-keys"),t.exports=o=function(){function r(){}return r.array=function(r,t){return r.sort(t)},r.objectKeys=function(r,t){return n(r)},r.object=function(r,t){var e,o;r=this.objectKeys(r,t);for(e in r)o=r[e],"object"==typeof o&&(r[e]=o instanceof Array?this.array(o):this.object(o));return r},r}()},{"sort-keys":4}],2:[function(r,t,e){},{}],3:[function(r,t,e){"use strict";t.exports=function(r){if(void 0===r||null===r)return String(r);var t={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"};return t[Object.prototype.toString.call(r)]}},{}],4:[function(r,t,e){"use strict";t.exports=function(r,t){if("object"!=typeof r)throw new TypeError("Expected an object");var e={};return Object.keys(r).sort(t).forEach(function(t){e[t]=r[t]}),e}},{}],"sort-keys-recursive":[function(r,t,e){"use strict";r("coffee-script/register");var o=r("fn-typeof"),n=r("./lib/SortRecursive");t.exports=function(r,t){var e=o(r);return n[e]?n[e](r,t):r}},{"./lib/SortRecursive":1,"coffee-script/register":2,"fn-typeof":3}]},{},[]);

@@ -7,5 +7,5 @@ 'use strict';

module.exports = function(something, compareFn) {
if (typeOf(something) === 'array') return sort.array(something, compareFn);
if (typeOf(something) === 'object') return sort.object(something, compareFn);
var type = typeOf(something);
if (sort[type]) return sort[type](something, compareFn);
return something;
};

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/Kikobeats/sort-keys-recursive",
"version": "1.1.0",
"version": "1.1.1",
"main": "./index.js",

@@ -8,0 +8,0 @@ "author": {

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