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

@pnpm/npm-conf

Package Overview
Dependencies
Maintainers
2
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 1.0.2 to 1.0.3

17

lib/conf.js
'use strict';
const { readCAFileSync } = require('@pnpm/network.ca-file');
const fs = require('fs');

@@ -126,17 +127,5 @@ const path = require('path');

try {
const contents = fs.readFileSync(file, 'utf8');
const delim = '-----END CERTIFICATE-----';
const output = contents
.split(delim)
.filter(x => Boolean(x.trim()))
.map(x => x.trimLeft() + delim);
const ca = readCAFileSync(file);
if (ca) {
this.set('ca', output);
} catch (error) {
if (error.code === 'ENOENT') {
return;
}
throw error;
}

@@ -143,0 +132,0 @@ }

3

package.json
{
"name": "@pnpm/npm-conf",
"version": "1.0.2",
"version": "1.0.3",
"description": "Get the npm config",

@@ -24,2 +24,3 @@ "license": "MIT",

"dependencies": {
"@pnpm/network.ca-file": "^1.0.1",
"config-chain": "^1.1.11"

@@ -26,0 +27,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