@pnpm/lockfile-utils
Advanced tools
Comparing version 2.0.12-alpha.1 to 2.0.12
# @pnpm/lockfile-utils | ||
## 2.0.12 | ||
### Patch Changes | ||
- Updated dependencies [da091c711] | ||
- Updated dependencies [6a8a97eee] | ||
- @pnpm/types@6.0.0 | ||
- @pnpm/lockfile-types@2.0.1 | ||
- dependency-path@4.0.7 | ||
- @pnpm/resolver-base@7.0.1 | ||
## 2.0.12-alpha.1 | ||
@@ -4,0 +15,0 @@ |
import { PackageSnapshot } from '@pnpm/lockfile-types'; | ||
declare const _default: (relDepPath: string, pkgSnapshot: PackageSnapshot) => { | ||
declare const _default: (depPath: string, pkgSnapshot: PackageSnapshot) => { | ||
name: string; | ||
@@ -4,0 +4,0 @@ peersSuffix: string | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const dp = require("dependency-path"); | ||
exports.default = (relDepPath, pkgSnapshot) => { | ||
exports.default = (depPath, pkgSnapshot) => { | ||
if (!pkgSnapshot.name) { | ||
const pkgInfo = dp.parse(relDepPath); | ||
const pkgInfo = dp.parse(depPath); | ||
return { | ||
@@ -8,0 +8,0 @@ name: pkgInfo.name, |
import { PackageSnapshot } from '@pnpm/lockfile-types'; | ||
import { Registries } from '@pnpm/types'; | ||
declare const _default: (relDepPath: string, pkgSnapshot: PackageSnapshot, registries: Registries) => string; | ||
declare const _default: (depPath: string, pkgSnapshot: PackageSnapshot, registries: Registries) => string; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const dp = require("dependency-path"); | ||
exports.default = (relDepPath, pkgSnapshot, registries) => { | ||
exports.default = (depPath, pkgSnapshot, registries) => { | ||
if (pkgSnapshot.id) | ||
return pkgSnapshot.id; | ||
return dp.tryGetPackageId(registries, relDepPath) || relDepPath; | ||
return dp.tryGetPackageId(registries, depPath) || depPath; | ||
}; | ||
//# sourceMappingURL=packageIdFromSnapshot.js.map |
import { PackageSnapshot } from '@pnpm/lockfile-types'; | ||
import { Resolution } from '@pnpm/resolver-base'; | ||
import { Registries } from '@pnpm/types'; | ||
declare const _default: (relDepPath: string, pkgSnapshot: PackageSnapshot, registries: Registries) => Resolution; | ||
declare const _default: (depPath: string, pkgSnapshot: PackageSnapshot, registries: Registries) => Resolution; | ||
export default _default; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const nameVerFromPkgSnapshot_1 = require("./nameVerFromPkgSnapshot"); | ||
exports.default = (relDepPath, pkgSnapshot, registries) => { | ||
exports.default = (depPath, pkgSnapshot, registries) => { | ||
// tslint:disable:no-string-literal | ||
@@ -14,3 +14,3 @@ if (pkgSnapshot.resolution['type']) { | ||
if (!pkgSnapshot.resolution['tarball']) { | ||
const { name } = nameVerFromPkgSnapshot_1.default(relDepPath, pkgSnapshot); | ||
const { name } = nameVerFromPkgSnapshot_1.default(depPath, pkgSnapshot); | ||
const registry = name[0] === '@' && registries[name.split('/')[0]] || registries.default; | ||
@@ -26,3 +26,3 @@ return { | ||
} | ||
const { name } = nameVerFromPkgSnapshot_1.default(relDepPath, pkgSnapshot); | ||
const { name } = nameVerFromPkgSnapshot_1.default(depPath, pkgSnapshot); | ||
const registry = name[0] === '@' && registries[name.split('/')[0]] || registries.default; | ||
@@ -35,5 +35,5 @@ return { | ||
function getTarball(registry) { | ||
const { name, version } = dp.parse(relDepPath); | ||
const { name, version } = dp.parse(depPath); | ||
if (!name || !version) { | ||
throw new Error(`Couldn't get tarball URL from dependency path ${relDepPath}`); | ||
throw new Error(`Couldn't get tarball URL from dependency path ${depPath}`); | ||
} | ||
@@ -40,0 +40,0 @@ return get_npm_tarball_url_1.default(name, version, { registry }); |
{ | ||
"name": "@pnpm/lockfile-utils", | ||
"version": "2.0.12-alpha.1", | ||
"version": "2.0.12", | ||
"description": "Utils for dealing with pnpm-lock.yaml", | ||
@@ -42,6 +42,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/lockfile-types": "2.0.1-alpha.0", | ||
"@pnpm/resolver-base": "7.0.1-alpha.0", | ||
"@pnpm/types": "6.0.0-alpha.0", | ||
"dependency-path": "4.0.7-alpha.0", | ||
"@pnpm/lockfile-types": "2.0.1", | ||
"@pnpm/resolver-base": "7.0.1", | ||
"@pnpm/types": "6.0.0", | ||
"dependency-path": "4.0.7", | ||
"get-npm-tarball-url": "2.0.1", | ||
@@ -48,0 +48,0 @@ "ramda": "0.27.0" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11546
1
+ Added@pnpm/lockfile-types@2.0.1(transitive)
+ Added@pnpm/resolver-base@7.0.1(transitive)
+ Added@pnpm/types@6.0.0(transitive)
+ Addeddependency-path@4.0.7(transitive)
- Removed@pnpm/lockfile-types@2.0.1-alpha.0(transitive)
- Removed@pnpm/resolver-base@7.0.1-alpha.0(transitive)
- Removed@pnpm/types@6.0.0-alpha.0(transitive)
- Removeddependency-path@4.0.7-alpha.0(transitive)
Updated@pnpm/lockfile-types@2.0.1
Updated@pnpm/resolver-base@7.0.1
Updated@pnpm/types@6.0.0
Updateddependency-path@4.0.7