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

java-properties

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-properties - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

test/fixtures/utf8.properties

2

lib/properties.js

@@ -55,3 +55,3 @@ /*

// the key does not exists
this.objs[key] = value;
this.objs[key] = unescape(JSON.parse('"' + value.replace('"', '\\"') + '"'));
}

@@ -58,0 +58,0 @@ }

{
"name": "java-properties",
"description": "Reads and interpolates Java .properties files",
"version": "0.2.7",
"version": "0.2.8",
"homepage": "http://github.com/mattdsteele/java-properties",

@@ -6,0 +6,0 @@ "author": {

@@ -80,4 +80,5 @@ # java-properties

* 0.2.7 Get only last value for int and boolean in case of multivalued attribute
* 0.2.8 FIX unicode \uxxxx char decoding
## License
Licensed under the MIT license.

@@ -295,3 +295,11 @@ 'use strict';

test.done();
},
'utf8 strings' : function(test) {
test.expect(2);
var myFile = new PropertiesFile('test/fixtures/utf8.properties');
var str = myFile.get('utf8.string');
test.equal(str, '\u2601 a string with accent : crédits seront très bientôt épuisés');
test.equal(str.charAt(0),String.fromCharCode(0x2601));
test.done();
}
};
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