Socket
Socket
Sign inDemoInstall

@pnpm/git-fetcher

Package Overview
Dependencies
95
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1 to 4.1.0

lib/index.js.map

14

CHANGELOG.md
# @pnpm/git-fetcher
## 4.1.0
### Minor Changes
- e6a2654a2: Packages fetched from Git should have their `devDependencies` installed in case they have a `prepare` script.
### Patch Changes
- Updated dependencies [e6a2654a2]
- Updated dependencies [e6a2654a2]
- Updated dependencies [e6a2654a2]
- @pnpm/prepare-package@1.0.0
- @pnpm/fetcher-base@11.0.0
## 4.0.1

@@ -4,0 +18,0 @@

11

lib/index.js

@@ -7,16 +7,17 @@ "use strict";

const path_1 = __importDefault(require("path"));
const prepare_package_1 = __importDefault(require("@pnpm/prepare-package"));
const rimraf_1 = __importDefault(require("@zkochan/rimraf"));
const execa_1 = __importDefault(require("execa"));
const tempy_1 = __importDefault(require("tempy"));
exports.default = () => {
return {
git: async function fetchFromGit(cafs, resolution, opts) {
const tempLocation = tempy_1.default.directory();
const tempLocation = await cafs.tempDir();
await execGit(['clone', resolution.repo, tempLocation]);
await execGit(['checkout', resolution.commit], { cwd: tempLocation });
await prepare_package_1.default(tempLocation);
// removing /.git to make directory integrity calculation faster
await rimraf_1.default(path_1.default.join(tempLocation, '.git'));
return {
filesIndex: await cafs.addFilesFromDir(tempLocation, opts.manifest),
};
const filesIndex = await cafs.addFilesFromDir(tempLocation, opts.manifest);
await rimraf_1.default(tempLocation);
return { filesIndex };
},

@@ -23,0 +24,0 @@ };

{
"name": "@pnpm/git-fetcher",
"version": "4.0.1",
"version": "4.1.0",
"description": "A fetcher for git-hosted packages",

@@ -25,11 +25,13 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/fetcher-base": "10.0.1",
"@pnpm/fetcher-base": "11.0.0",
"@pnpm/prepare-package": "1.0.0",
"@zkochan/rimraf": "^2.1.1",
"execa": "^5.0.0",
"tempy": "^1.0.0"
"execa": "^5.0.0"
},
"devDependencies": {
"@pnpm/cafs": "3.0.2",
"@pnpm/cafs": "3.0.3",
"@pnpm/package-store": "12.0.4",
"@pnpm/types": "7.1.0",
"p-defer": "^3.0.0"
"p-defer": "^3.0.0",
"tempy": "^1.0.0"
},

@@ -36,0 +38,0 @@ "funding": "https://opencollective.com/pnpm",

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