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.2 to 0.0.3

1

config-defs.js

@@ -21,2 +21,3 @@ // defaults, types, and shorthands.

exports.Octal = Octal
function Octal () {}

@@ -23,0 +24,0 @@ function validateOctal (data, k, val) {

@@ -11,2 +11,3 @@

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

@@ -268,4 +269,7 @@ exports.load = load

var isString = -1 !== typeList.indexOf(String)
var isNumber = -1 !== typeList.indexOf(Number) ||
-1 !== typeList.indexOf(Octal)
f = (''+f).trim()
if (f.match(/^".*"$/))

@@ -286,3 +290,2 @@ f = JSON.parse(f)

if (isPath) {

@@ -296,2 +299,5 @@ var homePattern = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\//

if (isNumber && !isNaN(f))
f = +f
return f

@@ -298,0 +304,0 @@ }

2

package.json
{
"name": "npmconf",
"version": "0.0.2",
"version": "0.0.3",
"description": "The config thing npm uses",

@@ -5,0 +5,0 @@ "main": "npmconf.js",

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