Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/git-resolver

Package Overview
Dependencies
Maintainers
2
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/git-resolver - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

lib/createGitHostedPkgId.d.ts

5

lib/index.d.ts
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;

9

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc