Socket
Socket
Sign inDemoInstall

properties-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.5.0

1

index.js

@@ -75,2 +75,3 @@ var fs = require("fs");

while((curChar = iter.peek()) !== null) {
if(startsLineBreak(iter)) { children.push(consumeLineBreak(iter)); continue; }
if(startsSeparator(curChar)) { break; }

@@ -77,0 +78,0 @@ if(startsEscapedVal(curChar)) { children.push(consumeEscapedVal(iter)); continue; }

2

package.json
{
"name": "properties-parser",
"version": "0.4.0",
"version": "0.5.0",
"description": "A parser for .properties files written in javascript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -18,2 +18,3 @@ var fs = require("fs");

assert.equal(data["null-prop"], '');
assert.equal(data["foofoo"], 'barbar');
assert.ok(data["valueOf"] == null, "Properties are set that shouldn't be (valueOf)");

@@ -125,3 +126,6 @@ assert.ok(data["toString"] == null, "Properties are set that shouldn't be (toString)");

'another-test :whatever\n' +
' null-prop'
' null-prop\n' +
'foo\\\n' +
' foo=bar\\\n' +
' bar\n'
);

@@ -155,3 +159,3 @@

// javac ReadProperties.java
// java ReadProperties test-cases.properties
// javac ReadProperties.java

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc