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.38.0 to 1.38.1

36

index.d.ts

@@ -0,1 +1,3 @@

/* eslint-disable @typescript-eslint/no-explicit-any */
type ComparatorFunction = (left: string, right: string) => number

@@ -11,23 +13,27 @@

/**
Sort packageJson.
Sort packageJson.
@param packageJson - A packageJson object or string.
@returns Sorted packageJson object or string.
*/
(packageJson, options?: sortPackageJson.Options): typeof packageJson
@param packageJson - A packageJson object or string.
@param options
@returns Sorted packageJson object or string.
*/
<T extends any>(packageJson: T, options?: sortPackageJson.Options): T
/**
Sort packageJson.
Sort packageJson.
@param packageJson - A packageJson object or string.
@returns Sorted packageJson object or string.
*/
sortPackageJson(
packageJson,
options?: sortPackageJson.Options,
): typeof packageJson
@param packageJson - A packageJson object or string.
@param options
@returns Sorted packageJson object or string.
*/
sortPackageJson<T extends any>(
packageJson: T,
options?: sortPackageJson.Options
): T
/**
Default sort order.
*/
Default sort order.
*/
readonly sortOrder: readonly string[]

@@ -34,0 +40,0 @@ }

{
"name": "sort-package-json",
"version": "1.38.0",
"version": "1.38.1",
"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