Socket
Socket
Sign inDemoInstall

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 1.0.1 to 1.0.2

8

dist-node/index.js

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

29

package.json
{
"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": {

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