@pnpm/manifest-utils
Advanced tools
Comparing version 2.1.9 to 2.1.10
export declare type PinnedVersion = 'major' | 'minor' | 'patch' | 'none'; | ||
export declare const getPrefix: (alias: string, name: string) => string; | ||
export declare function getPref(alias: string, name: string, version: string, opts: { | ||
export declare function getPref(alias: string, name: string, version: string | undefined, opts: { | ||
pinnedVersion?: PinnedVersion; | ||
}): string; | ||
export declare function createVersionSpec(version: string, pinnedVersion?: PinnedVersion): string; | ||
export declare function createVersionSpec(version: string | undefined, pinnedVersion?: PinnedVersion): string; |
@@ -16,2 +16,4 @@ "use strict"; | ||
function createVersionSpec(version, pinnedVersion) { | ||
if (!version) | ||
return '*'; | ||
switch (pinnedVersion !== null && pinnedVersion !== void 0 ? pinnedVersion : 'major') { | ||
@@ -18,0 +20,0 @@ case 'none': |
{ | ||
"name": "@pnpm/manifest-utils", | ||
"description": "Utils for dealing with package manifest", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"bugs": { | ||
@@ -30,3 +30,3 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"devDependencies": { | ||
"@pnpm/manifest-utils": "2.1.9" | ||
"@pnpm/manifest-utils": "2.1.10" | ||
}, | ||
@@ -33,0 +33,0 @@ "scripts": { |
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
17746
195