@pnpm/cli-meta
Advanced tools
Comparing version 6.0.4 to 6.1.0
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
export declare const packageManager: { | ||
@@ -6,1 +7,3 @@ name: string; | ||
}; | ||
export declare function detectIfCurrentPkgIsExecutable(proc?: NodeJS.Process): boolean; | ||
export declare function isExecutedByCorepack(env?: NodeJS.ProcessEnv): boolean; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageManager = void 0; | ||
exports.isExecutedByCorepack = exports.detectIfCurrentPkgIsExecutable = exports.packageManager = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -42,2 +42,10 @@ const load_json_file_1 = __importDefault(require("load-json-file")); | ||
}; | ||
function detectIfCurrentPkgIsExecutable(proc = process) { | ||
return 'pkg' in proc && proc.pkg != null; | ||
} | ||
exports.detectIfCurrentPkgIsExecutable = detectIfCurrentPkgIsExecutable; | ||
function isExecutedByCorepack(env = process.env) { | ||
return env.COREPACK_ROOT != null; | ||
} | ||
exports.isExecutedByCorepack = isExecutedByCorepack; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/cli-meta", | ||
"version": "6.0.4", | ||
"version": "6.1.0", | ||
"description": "Reads the metainfo of the currently running pnpm instance", | ||
@@ -25,7 +25,7 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/cli-meta": "6.0.4" | ||
"@pnpm/cli-meta": "6.1.0" | ||
}, | ||
"dependencies": { | ||
"load-json-file": "^6.2.0", | ||
"@pnpm/types": "11.1.0" | ||
"@pnpm/types": "12.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "funding": "https://opencollective.com/pnpm", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5803
56
8
+ Added@pnpm/types@12.0.0(transitive)
- Removed@pnpm/types@11.1.0(transitive)
Updated@pnpm/types@12.0.0