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
100
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 2.10.2 to 2.11.0

cjs/index.js

2

index.d.ts

@@ -9,3 +9,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

interface SortPackageJson {
export interface SortPackageJson {
/**

@@ -12,0 +12,0 @@ * Sort packageJson object.

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

@@ -21,6 +21,18 @@ "keywords": [

"type": "module",
"exports": "./index.js",
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./index.js"
},
"require": {
"types": "./index.d.ts",
"default": "./cjs/index.js"
}
}
},
"types": "index.d.ts",
"bin": "cli.js",
"files": [
"cjs",
"index.js",

@@ -32,5 +44,7 @@ "index.d.ts",

"scripts": {
"build": "esbuild index.js --bundle --platform=node --alias:git-hooks-list=./git-hooks-list_shim.cjs --outfile=./cjs/index.js && ncp package.cjs.json ./cjs/package.json",
"fix": "eslint . --fix && prettier . \"!**/*.js\" --write && node cli.js \"package.json\"",
"lint": "eslint . && prettier . \"!**/*.js\" --check && node cli.js \"package.json\" --check",
"prepare": "husky install",
"prepublishOnly": "npm run build",
"semantic-release": "semantic-release",

@@ -88,2 +102,3 @@ "test": "ava && dtslint --localTs node_modules/typescript/lib",

"dtslint": "^4.2.1",
"esbuild": "^0.20.2",
"eslint": "^8.24.0",

@@ -99,2 +114,3 @@ "eslint-config-prettier": "^8.5.0",

"make-dir": "^3.1.0",
"ncp": "^2.0.0",
"nyc": "^15.1.0",

@@ -101,0 +117,0 @@ "prettier": "^2.7.1",

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