@pnpm/dependency-path
Advanced tools
Comparing version 5.1.4 to 5.1.5
@@ -6,3 +6,13 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createPeersDirSuffix = exports.depPathToFilename = exports.parse = exports.refToRelative = exports.getRegistryByPackageName = exports.tryGetPackageId = exports.getPkgIdWithPatchHash = exports.removeSuffix = exports.parseDepPath = exports.indexOfPeersSuffix = exports.isAbsolute = void 0; | ||
exports.isAbsolute = isAbsolute; | ||
exports.indexOfPeersSuffix = indexOfPeersSuffix; | ||
exports.parseDepPath = parseDepPath; | ||
exports.removeSuffix = removeSuffix; | ||
exports.getPkgIdWithPatchHash = getPkgIdWithPatchHash; | ||
exports.tryGetPackageId = tryGetPackageId; | ||
exports.getRegistryByPackageName = getRegistryByPackageName; | ||
exports.refToRelative = refToRelative; | ||
exports.parse = parse; | ||
exports.depPathToFilename = depPathToFilename; | ||
exports.createPeersDirSuffix = createPeersDirSuffix; | ||
const crypto_base32_hash_1 = require("@pnpm/crypto.base32-hash"); | ||
@@ -13,3 +23,2 @@ const semver_1 = __importDefault(require("semver")); | ||
} | ||
exports.isAbsolute = isAbsolute; | ||
function indexOfPeersSuffix(depPath) { | ||
@@ -41,3 +50,2 @@ if (!depPath.endsWith(')')) | ||
} | ||
exports.indexOfPeersSuffix = indexOfPeersSuffix; | ||
function parseDepPath(relDepPath) { | ||
@@ -56,3 +64,2 @@ const { peersIndex } = indexOfPeersSuffix(relDepPath); | ||
} | ||
exports.parseDepPath = parseDepPath; | ||
function removeSuffix(relDepPath) { | ||
@@ -68,3 +75,2 @@ const { peersIndex, patchHashIndex } = indexOfPeersSuffix(relDepPath); | ||
} | ||
exports.removeSuffix = removeSuffix; | ||
function getPkgIdWithPatchHash(depPath) { | ||
@@ -81,3 +87,2 @@ let pkgId = depPath; | ||
} | ||
exports.getPkgIdWithPatchHash = getPkgIdWithPatchHash; | ||
function tryGetPackageId(relDepPath) { | ||
@@ -95,3 +100,2 @@ let pkgId = relDepPath; | ||
} | ||
exports.tryGetPackageId = tryGetPackageId; | ||
function getRegistryByPackageName(registries, packageName) { | ||
@@ -103,3 +107,2 @@ if (packageName[0] !== '@') | ||
} | ||
exports.getRegistryByPackageName = getRegistryByPackageName; | ||
function refToRelative(reference, pkgName) { | ||
@@ -120,3 +123,2 @@ if (reference.startsWith('link:')) { | ||
} | ||
exports.refToRelative = refToRelative; | ||
function parse(dependencyPath) { | ||
@@ -171,3 +173,2 @@ // eslint-disable-next-line: strict-type-predicates | ||
} | ||
exports.parse = parse; | ||
function depPathToFilename(depPath, maxLengthWithoutHash) { | ||
@@ -185,3 +186,2 @@ let filename = depPathToFilenameUnescaped(depPath).replace(/[\\/:*?"<>|]/g, '+'); | ||
} | ||
exports.depPathToFilename = depPathToFilename; | ||
function depPathToFilenameUnescaped(depPath) { | ||
@@ -214,3 +214,2 @@ if (depPath.indexOf('file:') !== 0) { | ||
} | ||
exports.createPeersDirSuffix = createPeersDirSuffix; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/dependency-path", | ||
"version": "5.1.4", | ||
"version": "5.1.5", | ||
"description": "Utilities for working with symlinked node_modules", | ||
@@ -28,3 +28,3 @@ "main": "lib/index.js", | ||
"semver": "^7.6.2", | ||
"@pnpm/types": "12.0.0", | ||
"@pnpm/types": "12.1.0", | ||
"@pnpm/crypto.base32-hash": "3.0.0" | ||
@@ -34,3 +34,3 @@ }, | ||
"@types/semver": "7.5.3", | ||
"@pnpm/dependency-path": "5.1.4" | ||
"@pnpm/dependency-path": "5.1.5" | ||
}, | ||
@@ -37,0 +37,0 @@ "funding": "https://opencollective.com/pnpm", |
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
18974
232
+ Added@pnpm/types@12.1.0(transitive)
- Removed@pnpm/types@12.0.0(transitive)
Updated@pnpm/types@12.1.0