@pnpm/lockfile-file
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -8,2 +8,3 @@ "use strict"; | ||
const dependency_path_1 = require("@pnpm/dependency-path"); | ||
const git_resolver_1 = require("@pnpm/git-resolver"); | ||
const types_1 = require("@pnpm/types"); | ||
@@ -198,6 +199,3 @@ const equals_1 = __importDefault(require("ramda/src/equals")); | ||
else if ('repo' in pkg.resolution) { | ||
newId += `${pkg.resolution.repo.startsWith('git+') ? '' : 'git+'}${pkg.resolution.repo}#${pkg.resolution.commit}`; | ||
if (pkg.resolution.path) { | ||
newId += `&path:${pkg.resolution.path}`; | ||
} | ||
newId += (0, git_resolver_1.createGitHostedPkgId)(pkg.resolution); | ||
} | ||
@@ -249,2 +247,13 @@ else if ('directory' in pkg.resolution) { | ||
lockfile.packages = newLockfilePackages; | ||
if ((lockfile.dependencies != null || lockfile.devDependencies != null || lockfile.optionalDependencies != null) && !lockfile.importers?.['.']) { | ||
lockfile.importers = lockfile.importers ?? {}; | ||
lockfile.importers['.'] = { | ||
dependencies: lockfile.dependencies, | ||
devDependencies: lockfile.devDependencies, | ||
optionalDependencies: lockfile.optionalDependencies, | ||
}; | ||
delete lockfile.dependencies; | ||
delete lockfile.devDependencies; | ||
delete lockfile.optionalDependencies; | ||
} | ||
for (const importer of Object.values(lockfile.importers ?? {})) { | ||
@@ -251,0 +260,0 @@ for (const depType of ['dependencies', 'optionalDependencies', 'devDependencies']) { |
{ | ||
"name": "@pnpm/lockfile-file", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"description": "Read/write pnpm-lock.yaml files", | ||
@@ -38,3 +38,3 @@ "main": "lib/index.js", | ||
"yaml-tag": "1.1.0", | ||
"@pnpm/lockfile-file": "9.0.1" | ||
"@pnpm/lockfile-file": "9.0.2" | ||
}, | ||
@@ -54,5 +54,6 @@ "dependencies": { | ||
"@pnpm/dependency-path": "3.0.0", | ||
"@pnpm/error": "6.0.0", | ||
"@pnpm/git-resolver": "9.0.1", | ||
"@pnpm/git-utils": "2.0.0", | ||
"@pnpm/lockfile-types": "6.0.0", | ||
"@pnpm/error": "6.0.0", | ||
"@pnpm/lockfile-utils": "10.0.0", | ||
@@ -59,0 +60,0 @@ "@pnpm/merge-lockfile-changes": "6.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
76470
976
20
+ Added@pnpm/git-resolver@9.0.1
+ Added@pnpm/constants@6.2.0(transitive)
+ Added@pnpm/core-loggers@10.0.0(transitive)
+ Added@pnpm/error@4.0.1(transitive)
+ Added@pnpm/fetch@8.0.0(transitive)
+ Added@pnpm/fetching-types@6.0.0(transitive)
+ Added@pnpm/git-resolver@9.0.1(transitive)
+ Added@pnpm/hosted-git-info@1.0.0(transitive)
+ Added@pnpm/network.agent@1.0.1(transitive)
+ Added@pnpm/network.config@1.0.1(transitive)
+ Added@pnpm/network.proxy-agent@1.0.1(transitive)
+ Added@pnpm/node-fetch@1.0.0(transitive)
+ Added@tootallnate/once@2.0.0(transitive)
+ Added@zkochan/retry@0.2.0(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedagentkeepalive@4.2.1(transitive)
+ Addeddata-uri-to-buffer@3.0.1(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddepd@1.1.2(transitive)
+ Addedfetch-blob@2.1.2(transitive)
+ Addedgraceful-git@3.1.2(transitive)
+ Addedhttp-proxy-agent@5.0.0(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedhumanize-ms@1.2.1(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedlru-cache@6.0.07.10.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednerf-dart@1.0.0(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedsafe-execa@0.1.4(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@6.1.1(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedyallist@4.0.0(transitive)