java-properties
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -34,3 +34,9 @@ 'use strict'; | ||
if (line && line.indexOf('#') !== 0) { | ||
let splitIndex = line.indexOf('='); | ||
//let splitIndex = line.indexOf('='); | ||
let separatorPositions = ['=', ':'].map(sep => { | ||
return line.indexOf(sep); | ||
}).filter(index => { | ||
return index > -1; | ||
}); | ||
let splitIndex = Math.min(...separatorPositions); | ||
let key = line.substring(0, splitIndex).trim(); | ||
@@ -37,0 +43,0 @@ let value = line.substring(splitIndex + 1).trim(); // if keys already exists ... |
@@ -29,3 +29,9 @@ "use strict"; | ||
if (line && line.indexOf('#') !== 0) { | ||
let splitIndex = line.indexOf('='); | ||
//let splitIndex = line.indexOf('='); | ||
let separatorPositions = ['=', ':'].map(sep => { | ||
return line.indexOf(sep); | ||
}).filter(index => { | ||
return index > -1; | ||
}); | ||
let splitIndex = Math.min(...separatorPositions); | ||
let key = line.substring(0, splitIndex).trim(); | ||
@@ -32,0 +38,0 @@ let value = line.substring(splitIndex + 1).trim(); // if keys already exists ... |
{ | ||
"name": "java-properties", | ||
"description": "Reads and interpolates Java .properties files", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "MIT", | ||
"files": [ | ||
"dist-*/", | ||
"bin/" | ||
], | ||
"esnext": "dist-src/index.js", | ||
@@ -15,7 +19,2 @@ "main": "dist-node/index.js", | ||
], | ||
"files": [ | ||
"dist-*/", | ||
"assets/", | ||
"bin/" | ||
], | ||
"homepage": "http://github.com/mattdsteele/java-properties", | ||
@@ -31,14 +30,14 @@ "bugs": { | ||
"devDependencies": { | ||
"@pika/pack": "^0.3.4", | ||
"@pika/plugin-build-node": "^0.3.13", | ||
"@pika/plugin-build-types": "^0.3.13", | ||
"@pika/plugin-standard-pkg": "^0.3.13", | ||
"@pika/plugin-ts-standard-pkg": "^0.3.13", | ||
"@pika/pack": "^0.3.7", | ||
"@pika/plugin-build-node": "^0.4.0", | ||
"@pika/plugin-build-types": "^0.4.0", | ||
"@pika/plugin-standard-pkg": "^0.4.0", | ||
"@pika/plugin-ts-standard-pkg": "^0.4.0", | ||
"@types/chai": "^4.1.7", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.10.4", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^11.13.17", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.1.4", | ||
"ts-node": "^8.0.2", | ||
"typescript": "^3.3.3333" | ||
"ts-node": "^8.3.0", | ||
"typescript": "^3.5.3" | ||
}, | ||
@@ -45,0 +44,0 @@ "engines": { |
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
14598
361
0