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

@pnpm/lifecycle

Package Overview
Dependencies
Maintainers
3
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/lifecycle - npm Package Compare versions

Comparing version 9.2.3 to 9.2.4

6

CHANGELOG.md
# @pnpm/lifecycle
## 9.2.4
### Patch Changes
- @pnpm/read-package-json@3.1.5
## 9.2.3

@@ -4,0 +10,0 @@

11

lib/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.runPostinstallHooks = exports.runLifecycleHooksConcurrently = void 0;
const read_package_json_1 = require("@pnpm/read-package-json");
const runLifecycleHook_1 = __importDefault(require("./runLifecycleHook"));
const runLifecycleHooksConcurrently_1 = __importDefault(require("./runLifecycleHooksConcurrently"));
exports.runLifecycleHooksConcurrently = runLifecycleHooksConcurrently_1.default;
const path = require("path");
const exists = require("path-exists");
const runLifecycleHook_1 = require("./runLifecycleHook");
const runLifecycleHooksConcurrently_1 = require("./runLifecycleHooksConcurrently");
exports.runLifecycleHooksConcurrently = runLifecycleHooksConcurrently_1.default;
exports.default = runLifecycleHook_1.default;

@@ -39,5 +42,5 @@ async function runPostinstallHooks(opts) {

if (await exists(path.join(root, 'binding.gyp'))) {
scripts['install'] = 'node-gyp rebuild'; // tslint:disable-line:no-string-literal
scripts['install'] = 'node-gyp rebuild'; // eslint-disable-line @typescript-eslint/dot-notation
}
}
//# sourceMappingURL=index.js.map
import { DependencyManifest, ProjectManifest } from '@pnpm/types';
export declare type RunLifecycleHookOptions = {
export interface RunLifecycleHookOptions {
args?: string[];

@@ -13,3 +13,3 @@ depPath: string;

unsafePerm: boolean;
};
}
export default function runLifecycleHook(stage: string, manifest: ProjectManifest | DependencyManifest, opts: RunLifecycleHookOptions): Promise<void>;

@@ -5,5 +5,5 @@ "use strict";

const lifecycle = require("@zkochan/npm-lifecycle");
function noop() { } // tslint:disable-line:no-empty
function noop() { } // eslint-disable-line:no-empty
async function runLifecycleHook(stage, manifest, opts) {
var _a, _b;
var _a, _b, _c, _d;
const optional = opts.optional === true;

@@ -36,3 +36,3 @@ const m = { _id: getId(manifest), ...manifest };

dir: opts.rootModulesDir,
extraBinPaths: opts.extraBinPaths || [],
extraBinPaths: (_c = opts.extraBinPaths) !== null && _c !== void 0 ? _c : [],
extraEnv: { PNPM_SCRIPT_SRC_DIR: opts.pkgRoot },

@@ -51,3 +51,3 @@ log: {

runConcurrently: true,
stdio: opts.stdio || 'pipe',
stdio: (_d = opts.stdio) !== null && _d !== void 0 ? _d : 'pipe',
unsafePerm: opts.unsafePerm,

@@ -67,3 +67,3 @@ });

return;
case 'Returned: code:':
case 'Returned: code:': {
if (opts.stdio === 'inherit') {

@@ -81,3 +81,3 @@ // Preventing the pnpm reporter from overriding the project's script output

});
return;
}
}

@@ -88,4 +88,5 @@ }

function getId(manifest) {
return `${manifest.name || ''}@${manifest.version || ''}`;
var _a, _b;
return `${(_a = manifest.name) !== null && _a !== void 0 ? _a : ''}@${(_b = manifest.version) !== null && _b !== void 0 ? _b : ''}`;
}
//# sourceMappingURL=runLifecycleHook.js.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const run_groups_1 = require("run-groups");
const runLifecycleHook_1 = require("./runLifecycleHook");
const run_groups_1 = __importDefault(require("run-groups"));
const runLifecycleHook_1 = __importDefault(require("./runLifecycleHook"));
async function runLifecycleHooksConcurrently(stages, importers, childConcurrency, opts) {

@@ -6,0 +9,0 @@ const importersByBuildIndex = new Map();

{
"name": "@pnpm/lifecycle",
"version": "9.2.3",
"version": "9.2.4",
"description": "Package lifecycle hook runner",

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

"scripts": {
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts",
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/lifecycle/coverage ts-node packages/lifecycle/test --type-check",

@@ -40,3 +40,3 @@ "test": "pnpm run compile && pnpm run _test",

"@pnpm/core-loggers": "4.2.0",
"@pnpm/read-package-json": "3.1.4",
"@pnpm/read-package-json": "3.1.5",
"@pnpm/types": "6.2.0",

@@ -43,0 +43,0 @@ "@zkochan/npm-lifecycle": "4.0.0",

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