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

@pnpm/config

Package Overview
Dependencies
Maintainers
3
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/config - npm Package Compare versions

Comparing version 8.0.1 to 8.1.0

2

lib/Config.d.ts

@@ -104,2 +104,4 @@ import { ProjectManifest, Registries } from '@pnpm/types';

npmPath?: string;
gitChecks?: boolean;
publishBranch?: string;
registries: Registries;

@@ -106,0 +108,0 @@ ignoreWorkspaceRootCheck: boolean;

14

lib/index.js

@@ -29,2 +29,3 @@ "use strict";

'frozen-shrinkwrap': Boolean,
'git-checks': Boolean,
'global-dir': String,

@@ -54,2 +55,3 @@ 'global-path': String,

'production': [null, true],
'publish-branch': String,
'reporter': String,

@@ -80,4 +82,4 @@ 'resolution-strategy': ['fast', 'fewer-dependencies'],

var _a, _b, _c, _d, _e, _f, _g;
const packageManager = (_a = opts.packageManager, (_a !== null && _a !== void 0 ? _a : { name: 'pnpm', version: 'undefined' }));
const cliOptions = (_b = opts.cliOptions, (_b !== null && _b !== void 0 ? _b : {}));
const packageManager = (_a = opts.packageManager) !== null && _a !== void 0 ? _a : { name: 'pnpm', version: 'undefined' };
const cliOptions = (_b = opts.cliOptions) !== null && _b !== void 0 ? _b : {};
const warnings = new Array();

@@ -150,3 +152,3 @@ if (cliOptions['hoist'] === false) {

]);
const cwd = (_c = (cliOptions['dir'] && path.resolve(cliOptions['dir'])), (_c !== null && _c !== void 0 ? _c : npmConfig.localPrefix)); // tslint:disable-line
const cwd = (_c = (cliOptions['dir'] && path.resolve(cliOptions['dir']))) !== null && _c !== void 0 ? _c : npmConfig.localPrefix; // tslint:disable-line
pnpmConfig.workspaceDir = opts.workspaceDir;

@@ -171,5 +173,5 @@ pnpmConfig.rawLocalConfig = Object.assign.apply(Object, [

};
const npmGlobalPrefix = (_e = (_d = pnpmConfig.globalDir, (_d !== null && _d !== void 0 ? _d : pnpmConfig.rawConfig['pnpm-prefix'])), (_e !== null && _e !== void 0 ? _e : (process.platform !== 'win32'
const npmGlobalPrefix = (_e = (_d = pnpmConfig.globalDir) !== null && _d !== void 0 ? _d : pnpmConfig.rawConfig['pnpm-prefix']) !== null && _e !== void 0 ? _e : (process.platform !== 'win32'
? npmConfig.globalPrefix
: findBestGlobalPrefixOnWindows_1.default(npmConfig.globalPrefix, process.env))));
: findBestGlobalPrefixOnWindows_1.default(npmConfig.globalPrefix, process.env));
pnpmConfig.globalBin = process.platform === 'win32'

@@ -179,3 +181,3 @@ ? npmGlobalPrefix

pnpmConfig.globalDir = pnpmConfig.globalDir ? npmGlobalPrefix : path.join(npmGlobalPrefix, 'pnpm-global');
pnpmConfig.lockfileDir = (_g = (_f = pnpmConfig.lockfileDir, (_f !== null && _f !== void 0 ? _f : pnpmConfig.lockfileDirectory)), (_g !== null && _g !== void 0 ? _g : pnpmConfig.shrinkwrapDirectory));
pnpmConfig.lockfileDir = (_g = (_f = pnpmConfig.lockfileDir) !== null && _f !== void 0 ? _f : pnpmConfig.lockfileDirectory) !== null && _g !== void 0 ? _g : pnpmConfig.shrinkwrapDirectory;
pnpmConfig.useLockfile = (() => {

@@ -182,0 +184,0 @@ if (typeof pnpmConfig['lockfile'] === 'boolean')

{
"name": "@pnpm/config",
"version": "8.0.1",
"version": "8.1.0",
"description": "Gets configuration options for pnpm",

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

"@pnpm/types": "5.0.0",
"@zkochan/npm-conf": "1.2.4",
"@zkochan/npm-conf": "2.0.0",
"camelcase": "5.3.1",

@@ -46,7 +46,7 @@ "is-subdir": "1.1.1",

"@types/mz": "^2.7.0",
"@types/ramda": "0.26.36",
"@types/ramda": "^0.26.43",
"@types/which": "1.3.2",
"mz": "2.7.0",
"tempy": "0.3.0"
"tempy": "0.4.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