@pnpm/lockfile-file
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.sortLockfileKeys = void 0; | ||
const util_lex_comparator_1 = require("@pnpm/util.lex-comparator"); | ||
const sort_keys_1 = __importDefault(require("sort-keys")); | ||
@@ -56,6 +57,3 @@ const ORDERED_KEYS = { | ||
return 1; | ||
// We want deterministic sorting, so we can't use .localCompare here. | ||
// comparing strings with < and > will produce the same result on each machine. | ||
// An alternative solution could be to use a specific culture for compare, using Intl.Collator | ||
return left < right ? -1 : (left > right ? 1 : 0); | ||
return (0, util_lex_comparator_1.lexCompare)(left, right); | ||
} | ||
@@ -62,0 +60,0 @@ function sortLockfileKeys(lockfile) { |
{ | ||
"name": "@pnpm/lockfile-file", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Read/write pnpm-lock.yaml files", | ||
@@ -30,7 +30,7 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/lockfile-file": "6.0.1", | ||
"@pnpm/lockfile-file": "6.0.2", | ||
"@types/js-yaml": "^4.0.5", | ||
"@types/normalize-path": "^3.0.0", | ||
"@types/ramda": "0.28.15", | ||
"@types/semver": "7.3.12", | ||
"@types/semver": "7.3.13", | ||
"@types/write-file-atomic": "^3.0.3", | ||
@@ -45,8 +45,9 @@ "tempy": "^1.0.1", | ||
"@pnpm/git-utils": "0.1.0", | ||
"@pnpm/lockfile-types": "4.3.4", | ||
"@pnpm/merge-lockfile-changes": "4.0.1", | ||
"@pnpm/types": "8.8.0", | ||
"@pnpm/lockfile-types": "4.3.5", | ||
"@pnpm/merge-lockfile-changes": "4.0.2", | ||
"@pnpm/types": "8.9.0", | ||
"@pnpm/util.lex-comparator": "1.0.0", | ||
"@zkochan/rimraf": "^2.1.2", | ||
"comver-to-semver": "^1.0.0", | ||
"dependency-path": "9.2.7", | ||
"dependency-path": "9.2.8", | ||
"js-yaml": "npm:@zkochan/js-yaml@^0.0.6", | ||
@@ -53,0 +54,0 @@ "normalize-path": "^3.0.0", |
Sorry, the diff of this file is not supported yet
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
67996
18
886
+ Added@pnpm/lockfile-types@4.3.5(transitive)
+ Added@pnpm/merge-lockfile-changes@4.0.2(transitive)
+ Added@pnpm/types@8.9.0(transitive)
+ Added@pnpm/util.lex-comparator@1.0.0(transitive)
+ Addeddependency-path@9.2.8(transitive)
- Removed@pnpm/lockfile-types@4.3.4(transitive)
- Removed@pnpm/merge-lockfile-changes@4.0.1(transitive)
- Removed@pnpm/types@8.8.0(transitive)
- Removeddependency-path@9.2.7(transitive)
Updated@pnpm/lockfile-types@4.3.5
Updated@pnpm/types@8.9.0
Updateddependency-path@9.2.8