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

@pnpm/exec

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/exec - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

28

lib/installPnpm.js

@@ -12,25 +12,17 @@ "use strict";

const spawn = require("cross-spawn");
const fs = require("fs");
const got = require("got");
const path = require("path");
const installFile = require.resolve('@pnpm/self-installer');
exports.default = () => __awaiter(this, void 0, void 0, function* () {
const installFile = path.join(__dirname, 'install.js');
yield new Promise((resolve, reject) => {
got.stream('https://unpkg.com/@pnpm/self-installer')
.pipe(fs.createWriteStream(installFile))
.on('error', reject)
.on('close', () => {
const proc = spawn('node', [installFile], {
stdio: 'inherit',
});
proc.on('error', reject);
proc.on('close', (code) => {
if (code > 0) {
return reject(new Error(`Exit code: ${code}`));
}
return resolve();
});
const proc = spawn('node', [installFile], {
stdio: 'inherit',
});
proc.on('error', reject);
proc.on('close', (code) => {
if (code > 0) {
return reject(new Error(`Exit code: ${code}`));
}
return resolve();
});
});
});
//# sourceMappingURL=installPnpm.js.map
{
"name": "@pnpm/exec",
"version": "1.1.3",
"version": "1.1.4",
"description": "Executes pnpm. If pnpm is not installed, installs it first",

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

"dependencies": {
"@pnpm/self-installer": "^2.0.0",
"@types/got": "^7.1.4",
"@types/node": "^9.3.0",
"command-exists": "^1.2.2",
"cross-spawn": "^5.1.0",
"got": "^8.0.0"
"cross-spawn": "^5.1.0"
}
}

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