Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

properties

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

properties - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

11

lib/writer.js

@@ -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>

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