properties
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -232,2 +232,4 @@ "use strict"; | ||
var first = true; | ||
var sk; | ||
var sv; | ||
@@ -248,8 +250,9 @@ for (var k in obj){ | ||
if (this._pretty){ | ||
sv = v; | ||
if ("$comment" in v || "$value" in v){ | ||
v = v.$value; | ||
sv = sv.$value; | ||
} | ||
for (k in v){ | ||
if (k.length > me._maxKeyLength){ | ||
me._maxKeyLength = k.length; | ||
for (sk in sv){ | ||
if (sk.length > me._maxKeyLength){ | ||
me._maxKeyLength = sk.length; | ||
} | ||
@@ -256,0 +259,0 @@ } |
{ | ||
"name": "properties", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Properties parser/stringifier", | ||
@@ -5,0 +5,0 @@ "keywords": ["properties", ".properties", "ini", ".ini", "parser"], |
@@ -8,3 +8,3 @@ properties | ||
Version: 0.3.0 | ||
Version: 0.3.1 | ||
@@ -332,3 +332,3 @@ The module implements the Java properties specification and gives to you a powerful set of features that can be enabled or disabled at any time. Json files can be used to store complex data structures such as arrays or nested objects, but if you only want to save some properties, e.g. the database uri connection and credentials, valid json files can become a bit overloaded with metadata: curly braces, colons, commas and especially a lot of double quotes. Compare this two versions: | ||
__properties.parse(str[, settings])__ | ||
Does the same as [load()](#load) but does not perform any I/O access, the input is the given string. The only setting property is the reviver. | ||
Does the same as [load()](#load) but does not perform any I/O access, the input is the given string. The only setting property is the reviver. Only throws exceptions if the variable substitution is enabled. | ||
@@ -335,0 +335,0 @@ <a name="store"></a> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32449
736
0