sort-package-json
Advanced tools
Comparing version 1.38.0 to 1.38.1
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19268
370