Socket
Socket
Sign inDemoInstall

@pnpm/git-fetcher

Package Overview
Dependencies
44
Maintainers
3
Versions
124
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.10 to 3.0.0-alpha.0

CHANGELOG.md

8

lib/index.d.ts

@@ -0,1 +1,2 @@

import { Cafs } from '@pnpm/fetcher-base';
declare const _default: () => {

@@ -5,7 +6,8 @@ git: (resolution: {

commit: string;
}, targetFolder: string) => Promise<{
filesIndex: any;
tempLocation: string;
}, opts: {
cafs: Cafs;
}) => Promise<{
filesIndex: import("@pnpm/fetcher-base").FilesIndex;
}>;
};
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const rimraf = require("@zkochan/rimraf");
const dint = require("dint");
const execa = require("execa");
const path = require("path");
const pathTemp = require("path-temp");
const tempy = require("tempy");
exports.default = () => {
return {
git: async function fetchFromGit(resolution, targetFolder) {
const tempLocation = pathTemp(targetFolder);
git: async function fetchFromGit(resolution, opts) {
const tempLocation = tempy.directory();
await execGit(['clone', resolution.repo, tempLocation]);

@@ -17,4 +16,3 @@ await execGit(['checkout', resolution.commit], { cwd: tempLocation });

return {
filesIndex: await dint.from(tempLocation),
tempLocation,
filesIndex: await opts.cafs.addFilesFromDir(tempLocation),
};

@@ -31,1 +29,2 @@ },

}
//# sourceMappingURL=index.js.map
{
"name": "@pnpm/git-fetcher",
"version": "2.0.10",
"version": "3.0.0-alpha.0",
"description": "A fetcher for git-hosted packages",

@@ -8,13 +8,15 @@ "main": "lib/index.js",

"files": [
"lib"
"lib",
"!*.map"
],
"scripts": {
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check",
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"tsc": "rimraf lib && tsc",
"prepublishOnly": "pnpm run tsc"
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/git-fetcher/coverage ts-node packages/git-fetcher/test --type-check",
"test": "pnpm run compile && pnpm run _test",
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/git-fetcher",
"engines": {
"node": ">=10"
"node": ">=10.13"
},

@@ -32,12 +34,11 @@ "keywords": [

"dependencies": {
"@pnpm/fetcher-base": "7.0.0-alpha.0",
"@zkochan/rimraf": "1.0.0",
"dint": "4.0.0",
"execa": "4.0.0",
"path-temp": "2.0.0"
"tempy": "0.5.0"
},
"devDependencies": {
"@pnpm/git-fetcher": "link:",
"rimraf": "3.0.0",
"tempy": "0.3.0"
"@pnpm/cafs": "1.0.0-alpha.0",
"@pnpm/git-fetcher": "link:"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc