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

@pnpm/npm-conf

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/npm-conf - npm Package Compare versions

Comparing version 2.2.2 to 2.3.0

10

lib/conf.js

@@ -20,4 +20,8 @@ 'use strict';

try {
for (const x of Object.keys(data)) {
data[x] = this._parseField(data[x], x);
for (const [key, value] of Object.entries(data)) {
const substKey = util.parseKey(key);
if (substKey !== key) {
delete data[key];
}
data[substKey] = this._parseField(value, substKey);
}

@@ -47,3 +51,3 @@ } catch (error) {

this.add({}, marker);
} else {
} else if (error.code !== 'EISDIR') {
return `Issue while reading "${file}". ${error.message}`

@@ -50,0 +54,0 @@ }

@@ -6,2 +6,10 @@ 'use strict';

const parseKey = (key) => {
if (typeof key !== 'string') {
return key;
}
return envReplace(key, process.env);
}
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L359-L404

@@ -131,1 +139,2 @@ const parseField = (types, field, key) => {

exports.parseField = parseField;
exports.parseKey = parseKey;
{
"name": "@pnpm/npm-conf",
"version": "2.2.2",
"version": "2.3.0",
"description": "Get the npm config",

@@ -5,0 +5,0 @@ "license": "MIT",

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