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

sort-package-json

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-package-json - npm Package Compare versions

Comparing version 1.32.2 to 1.32.3

14

index.js

@@ -9,2 +9,3 @@ #!/usr/bin/env node

const uniq = onArray(xs => xs.filter((x, i) => i === xs.indexOf(x)))
const sortArray = onArray(array => [...array].sort())
const isPlainObject = x =>

@@ -17,3 +18,10 @@ x && Object.prototype.toString.call(x) === '[object Object]'

const sortPeopleObject = sortObjectBy(['name', 'email', 'url'])
const sortDirectories = sortObjectBy(['lib', 'bin', 'man', 'doc', 'example'])
const sortDirectories = sortObjectBy([
'lib',
'bin',
'man',
'doc',
'example',
'test',
])

@@ -135,4 +143,4 @@ // See https://docs.npmjs.com/misc/scripts

{ key: 'peerDependencies', over: sortObject },
{ key: 'bundledDependencies', over: sortObject },
{ key: 'bundleDependencies', over: sortObject },
{ key: 'bundledDependencies', over: sortArray },
{ key: 'bundleDependencies', over: sortArray },
{ key: 'optionalDependencies', over: sortObject },

@@ -139,0 +147,0 @@ { key: 'flat' },

{
"name": "sort-package-json",
"version": "1.32.2",
"version": "1.32.3",
"description": "Sort an Object or package.json based on the well-known package.json keys",

@@ -5,0 +5,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