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

sort-object

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-object - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

11

index.js

@@ -10,7 +10,8 @@ /*!

var isObject = require('is-extendable');
var sortDesc = require('sort-desc');
var bytewise = require('bytewise');
var union = require('union-value');
var sortAsc = require('sort-asc');
var isObject = require('is-extendable');
var get = require('get-value');
var bytewise = require('bytewise');

@@ -80,4 +81,3 @@ var sortFns = {desc: sortDesc, asc: sortAsc};

item = isObject(item) ? bytewise.encode(JSON.stringify(item)).toString() : item;
sortBy[item] = sortBy[item] || [];
sortBy[item].push(key);
union(sortBy, item, [key]);
keys.push(item);

@@ -94,6 +94,5 @@ tmp[key] = val;

var val = obj[key];
sortBy[key] = sortBy[key] || [];
sortBy[key].push(key);
union(sortBy, key, [key]);
tmp[key] = val;
}
}
{
"name": "sort-object",
"description": "Sort the keys in an object.",
"version": "2.0.2",
"version": "2.0.3",
"homepage": "https://github.com/doowb/sort-object",

@@ -46,3 +46,4 @@ "author": {

"sort-asc": "^0.1.0",
"sort-desc": "^0.1.1"
"sort-desc": "^0.1.1",
"union-value": "^0.1.1"
},

@@ -49,0 +50,0 @@ "keywords": [

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