You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

sort-package-json

Package Overview
Dependencies
Maintainers
1
Versions
117
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
3.5.1
to
3.5.2
+1
-1
index.cjs

@@ -428,3 +428,3 @@ var __create = Object.create;

const idx = rest.indexOf(":");
if (idx !== -1) {
if (idx > 0) {
const base = key.slice(0, (prefix ? prefix.length + 1 : 0) + idx);

@@ -431,0 +431,0 @@ if (!groupMap.has(base)) groupMap.set(base, []);

@@ -281,3 +281,3 @@ import sortObjectKeys from 'sort-object-keys'

const idx = rest.indexOf(':')
if (idx !== -1) {
if (idx > 0) {
const base = key.slice(0, (prefix ? prefix.length + 1 : 0) + idx)

@@ -284,0 +284,0 @@ if (!groupMap.has(base)) groupMap.set(base, [])

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

@@ -5,0 +5,0 @@ "keywords": [