properties-file 3.2.13 → 3.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -270,7 +270,7 @@ Just like Java, if a Unicode-escaped character (`\u`) is malformed, an error wil
270
270
 
271
271
  ## Additional references
272
272
 
273
- - Java [Test Sandbox](https://codehs.com/sandbox/id/java-main-kYynuh?filename=TestProperties.java)
273
+ - Java [Test Sandbox](https://codehs.com/sandbox/id/java-main-uSOlNK)
274
274
  - Java's `Properties` class [documentation](https://docs.oracle.com/javase/9/docs/api/java/util/Properties.html)
275
275
  - Java's `PropertyResourceBundle` [documentation](https://docs.oracle.com/javase/9/docs/api/java/util/PropertyResourceBundle.html)
276
276
  - Java's Internationalization [Guide](https://docs.oracle.com/en/java/javase/18/intl/internationalization-overview.html)
package/lib/property.js CHANGED
@@ -32,7 +32,8 @@ if(!(this.hasNoKey||this.hasNoValue||this.separatorPosition)){for(var a=this.lin
32
32
  if(/[\t\f :=]/.test(a)){// Check if the separator might be escaped.
33
33
  var d=b?this.linesContent.slice(0,b):"";if(0<d.length){var e=d.match(/*#__PURE__*/_wrapRegExp(/(\\+)$/,{backslashes:1}));if(null!==e&&void 0!==e&&e.groups){var f=!!(e.groups.backslashes.length%2);if(f)// If the separator is escaped, check the next character.
34
34
  continue}}var g="";this.separatorPosition=b;// Check if the separator starts with a whitespace.
35
- var h=this.linesContent.slice(b),i=h.match(/*#__PURE__*/_wrapRegExp(/^(\s+)/,{whitespace:1})),j=(null===i||void 0===i||null===(c=i.groups)||void 0===c?void 0:c.whitespace)||"";// If there is a whitespace, move to the next character.
35
+ var h=this.linesContent.slice(b),i=h.match(/*#__PURE__*/_wrapRegExp(/^([\t\n\v\f\r ]+)/,{whitespace:1})),j=(null===i||void 0===i||null===(c=i.groups)||void 0===c?void 0:c.whitespace)||"";// All white-space characters, excluding non-breaking spaces.
36
+ // If there is a whitespace, move to the next character.
36
37
  // Check if there is an equal or colon character.
37
38
  if(0<j.length&&(g+=j,h=h.slice(j.length)),/[:=]/.test(h[0])){var k;g+=h[0],h=h.slice(1);// If an equal or colon character was found, try to get trailing whitespace.
38
- var l=h.match(/*#__PURE__*/_wrapRegExp(/^(\s+)/,{whitespace:1})),m=(null===l||void 0===l||null===(k=l.groups)||void 0===k?void 0:k.whitespace)||"";g+=m}this.separatorLength=g.length,this.valuePosition=this.separatorPosition+this.separatorLength,this.separator=this.linesContent.slice(this.separatorPosition,this.separatorPosition+this.separatorLength),b||(this.hasNoKey=!0);break}}void 0===this.separatorPosition?this.hasNoValue=!0:0<this.newlinePositions.length&&this.newlinePositions[0]<this.separatorPosition&&(this.hasMultilineKey=!0)}}}]),a}();exports.Property=Property;
39
+ var l=h.match(/*#__PURE__*/_wrapRegExp(/^([\t\n\v\f\r ]+)/,{whitespace:1})),m=(null===l||void 0===l||null===(k=l.groups)||void 0===k?void 0:k.whitespace)||"";g+=m}this.separatorLength=g.length,this.valuePosition=this.separatorPosition+this.separatorLength,this.separator=this.linesContent.slice(this.separatorPosition,this.separatorPosition+this.separatorLength),b||(this.hasNoKey=!0);break}}void 0===this.separatorPosition?this.hasNoValue=!0:0<this.newlinePositions.length&&this.newlinePositions[0]<this.separatorPosition&&(this.hasMultilineKey=!0)}}}]),a}();exports.Property=Property;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "properties-file",
3
- "version": "3.2.13",
3
+ "version": "3.2.14",
4
4
  "description": ".properties file parser, editor, formatter and Webpack loader.",
5
5
  "keywords": [
6
6
  ".properties",
@@ -69,13 +69,13 @@
69
69
  "@babel/preset-typescript": "7.22.5",
70
70
  "@release-it/conventional-changelog": "7.0.0",
71
71
  "@types/jest": "29.5.3",
72
- "@typescript-eslint/eslint-plugin": "6.2.0",
73
- "@typescript-eslint/parser": "6.2.0",
72
+ "@typescript-eslint/eslint-plugin": "6.2.1",
73
+ "@typescript-eslint/parser": "6.2.1",
74
74
  "babel-preset-minify": "^0.5.2",
75
75
  "check-node-version": "^4.2.1",
76
76
  "dotenv-cli": "7.2.1",
77
77
  "eslint": "8.46.0",
78
- "eslint-config-prettier": "8.9.0",
78
+ "eslint-config-prettier": "8.10.0",
79
79
  "eslint-import-resolver-node": "0.3.7",
80
80
  "eslint-import-resolver-typescript": "3.5.5",
81
81
  "eslint-plugin-import": "2.28.0",
@@ -86,7 +86,7 @@
86
86
  "eslint-plugin-tsdoc": "0.2.17",
87
87
  "eslint-plugin-unicorn": "48.0.1",
88
88
  "jest": "29.6.2",
89
- "prettier": "3.0.0",
89
+ "prettier": "3.0.1",
90
90
  "prettier-plugin-organize-imports": "3.2.3",
91
91
  "prettier-plugin-sh": "0.13.1",
92
92
  "release-it": "16.1.3",