Comparing version 0.0.2 to 0.0.3
@@ -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 @@ } |
{ | ||
"name": "npmconf", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "The config thing npm uses", | ||
@@ -5,0 +5,0 @@ "main": "npmconf.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
27580
815
0
1