@pnpm/npm-conf
Advanced tools
Comparing version 1.0.2 to 1.0.3
'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 @@ } |
{ | ||
"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 @@ }, |
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
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
28156
2
881
+ Added@pnpm/network.ca-file@^1.0.1
+ Added@pnpm/network.ca-file@1.0.2(transitive)
+ Addedgraceful-fs@4.2.10(transitive)