Socket
Socket
Sign inDemoInstall

@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.5 to 2.0.0

16

index.js

@@ -11,2 +11,3 @@ 'use strict';

conf.add(Object.assign({}, opts), 'cli');
const warnings = [];

@@ -29,3 +30,3 @@ if (require.resolve.paths) {

*/
conf.addFile(path.resolve(path.dirname(npmPath), '..', 'npmrc'), 'builtin');
warnings.push(conf.addFile(path.resolve(path.dirname(npmPath), '..', 'npmrc'), 'builtin'));
}

@@ -41,3 +42,3 @@ }

if (!conf.get('global') && projectConf !== userConf) {
conf.addFile(projectConf, 'project');
warnings.push(conf.addFile(projectConf, 'project'));
} else {

@@ -51,6 +52,6 @@ conf.add({}, 'project');

const workspaceConf = path.resolve(conf.get('workspace-prefix'), '.npmrc');
conf.addFile(workspaceConf, 'workspace');
warnings.push(conf.addFile(workspaceConf, 'workspace'));
}
conf.addFile(conf.get('userconfig'), 'user');
warnings.push(conf.addFile(conf.get('userconfig'), 'user'));

@@ -63,3 +64,3 @@ if (conf.get('prefix')) {

conf.addFile(conf.get('globalconfig'), 'global');
warnings.push(conf.addFile(conf.get('globalconfig'), 'global'));
conf.loadUser();

@@ -73,3 +74,6 @@

return conf;
return {
config: conf,
warnings: warnings.filter(Boolean),
};
};

@@ -76,0 +80,0 @@

@@ -47,7 +47,5 @@ 'use strict';

} else {
throw error;
return `Issue while reading "${file}". ${error.message}`
}
}
return this;
}

@@ -54,0 +52,0 @@

{
"name": "@pnpm/npm-conf",
"version": "1.0.5",
"description": "Get the npm config",
"license": "MIT",
"repository": "pnpm/npm-conf",
"engines": {
"node": ">=12"
},
"files": [
"index.js",
"lib"
],
"keywords": [
"conf",
"config",
"global",
"npm",
"path",
"prefix",
"rc"
],
"dependencies": {
"@pnpm/network.ca-file": "^1.0.1",
"config-chain": "^1.1.11"
},
"devDependencies": {
"@types/node": "^14.0.14",
"babel-generator": "^6.24.1",
"babel-traverse": "^6.24.1",
"babylon": "^6.17.1",
"eslint-import-resolver-node": "^0.3.2",
"jest": "^25.1.0",
"npm": "^5.0.4",
"typescript": "^3.9.6"
},
"scripts": {
"test": "jest"
}
}
"name": "@pnpm/npm-conf",
"version": "2.0.0",
"description": "Get the npm config",
"license": "MIT",
"repository": "pnpm/npm-conf",
"engines": {
"node": ">=12"
},
"scripts": {
"prepublishOnly": "node lib/make.js && tsc -p lib/tsconfig.make-out.json",
"test": "jest"
},
"files": [
"index.js",
"lib"
],
"keywords": [
"conf",
"config",
"global",
"npm",
"path",
"prefix",
"rc"
],
"dependencies": {
"@pnpm/network.ca-file": "^1.0.1",
"config-chain": "^1.1.11"
},
"devDependencies": {
"@types/node": "^14.0.14",
"babel-generator": "^6.24.1",
"babel-traverse": "^6.24.1",
"babylon": "^6.17.1",
"eslint-import-resolver-node": "^0.3.2",
"jest": "^25.1.0",
"npm": "^5.0.4",
"typescript": "^3.9.6"
}
}
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