Socket
Socket
Sign inDemoInstall

npmconf

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmconf - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

18

npmconf.js

@@ -12,2 +12,3 @@

var Octal = configDefs.Octal
var mkdirp = require('mkdirp')

@@ -178,2 +179,3 @@ exports.load = load

this._saving ++
var mode = where === 'user' ? 0600 : 0666

@@ -183,10 +185,14 @@ if (!data.trim())

else {
fs.writeFile(target.path, data, 'utf8', function (er) {
mkdirp(path.dirname(target.path), function (er) {
if (er)
return then(er)
if (where === 'user' && myUid && myGid)
fs.chown(target.path, +myUid, +myGid, then)
else
then()
}.bind(this))
fs.writeFile(target.path, data, 'utf8', function (er) {
if (er)
return then(er)
if (where === 'user' && myUid && myGid)
fs.chown(target.path, +myUid, +myGid, then)
else
then()
})
})
}

@@ -193,0 +199,0 @@

{
"name": "npmconf",
"version": "0.0.6",
"version": "0.0.7",
"description": "The config thing npm uses",

@@ -12,3 +12,4 @@ "main": "npmconf.js",

"inherits": "~1.0.0",
"once": "~1.1.1"
"once": "~1.1.1",
"mkdirp": "~0.3.3"
},

@@ -15,0 +16,0 @@ "devDependencies": {},

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