@pnpm/git-resolver
Advanced tools
Comparing version 9.0.0 to 9.0.1
import { type ResolveResult } from '@pnpm/resolver-base'; | ||
import { type HostedPackageSpec } from './parsePref'; | ||
import { createGitHostedPkgId } from './createGitHostedPkgId'; | ||
export { createGitHostedPkgId }; | ||
export type { HostedPackageSpec }; | ||
export declare function createGitResolver(opts: unknown): (wantedDependency: { | ||
export type GitResolver = (wantedDependency: { | ||
pref: string; | ||
}) => Promise<ResolveResult | null>; | ||
export declare function createGitResolver(opts: unknown): GitResolver; |
@@ -6,6 +6,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createGitResolver = void 0; | ||
exports.createGitResolver = exports.createGitHostedPkgId = void 0; | ||
const graceful_git_1 = __importDefault(require("graceful-git")); | ||
const semver_1 = __importDefault(require("semver")); | ||
const parsePref_1 = require("./parsePref"); | ||
const createGitHostedPkgId_1 = require("./createGitHostedPkgId"); | ||
Object.defineProperty(exports, "createGitHostedPkgId", { enumerable: true, get: function () { return createGitHostedPkgId_1.createGitHostedPkgId; } }); | ||
function createGitResolver(opts) { | ||
@@ -49,6 +51,3 @@ return async function resolveGit(wantedDependency) { | ||
else { | ||
id = `${resolution.repo.startsWith('git+') ? '' : 'git+'}${resolution.repo}#${resolution.commit}`; | ||
if (resolution.path) { | ||
id += `&path:${resolution.path}`; | ||
} | ||
id = (0, createGitHostedPkgId_1.createGitHostedPkgId)(resolution); | ||
} | ||
@@ -55,0 +54,0 @@ return { |
{ | ||
"name": "@pnpm/git-resolver", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Resolver for git-hosted packages", | ||
@@ -30,4 +30,4 @@ "main": "lib/index.js", | ||
"semver": "^7.6.0", | ||
"@pnpm/resolver-base": "12.0.0", | ||
"@pnpm/fetch": "8.0.0" | ||
"@pnpm/fetch": "8.0.0", | ||
"@pnpm/resolver-base": "12.0.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "devDependencies": { | ||
"is-windows": "^1.0.2", | ||
"@pnpm/git-resolver": "9.0.0" | ||
"@pnpm/git-resolver": "9.0.1" | ||
}, | ||
@@ -42,0 +42,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
25848
12
353