java-properties
Advanced tools
@@ -29,6 +29,6 @@ /* | ||
| var get = function(key) { | ||
| var rawValue = objs[key]; | ||
| if (rawValue) { | ||
| return interpolate(rawValue); | ||
| } | ||
| if (objs.hasOwnProperty(key)) { | ||
| return typeof objs[key] === 'undefined' ? '' : interpolate(objs[key]); | ||
| } | ||
| return undefined; | ||
| }; | ||
@@ -35,0 +35,0 @@ var set = function(key, value) { |
+1
-1
| { | ||
| "name": "java-properties", | ||
| "description": "Reads and interpolates Java .properties files", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "homepage": "http://github.com/mattdsteele/java-properties", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -10,2 +10,3 @@ ricola.version=${ricola.version.major}.${ricola.version.minor} | ||
| regex.format.date=^(0?[1-9]|1[012])\\/?(0?[1-9]|[12][0-9]|3[01])$ | ||
| property.with.equals=some=value | ||
| property.with.equals=some=value | ||
| property.emptyString= |
@@ -105,3 +105,8 @@ 'use strict'; | ||
| test.done(); | ||
| }, | ||
| 'empty string' : function (test) { | ||
| test.expect(1); | ||
| test.equal('', props.get('property.emptyString')); | ||
| test.done(); | ||
| } | ||
| }; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9375
2.44%195
2.63%