@zohodesk/client_build_tool 0.0.11-exp.11 → 0.0.11-exp.12

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.
@@ -81,7 +81,7 @@ class I18nNumericIndexPlugin {
81
81
  }
82
82
 
83
83
  if (this.options.generateManifest) {
84
- const cleanName = filename.replace(/\[locale\]/g, locale).replace(/\[contenthash\]/g, '').replace(/\.js$/, '.js');
84
+ const cleanName = filename.replace(/\[locale\]/g, locale).replace(/\.\[contenthash\]/g, '').replace(/\.js$/, '.js');
85
85
  const cleanNameWithType = fileType ? cleanName.replace(/\.js$/, `.${fileType}.js`) : cleanName;
86
86
  const manifestKey = cleanNameWithType.split('/').pop();
87
87
  this.manifest[manifestKey] = outputPath.split('/').pop();
@@ -1,10 +1,5 @@
1
1
  "use strict";
2
2
 
3
- /**
4
- * Shared properties file parsing utility
5
- * Handles consistent parsing across all i18n tools
6
- */
7
- // Decode Unicode escape sequences (for values only)
8
3
  function decodeUnicodeEscapes(str) {
9
4
  if (typeof str !== 'string') {
10
5
  return str;
@@ -14,12 +9,6 @@ function decodeUnicodeEscapes(str) {
14
9
  return String.fromCharCode(parseInt(hex, 16));
15
10
  });
16
11
  }
17
- /**
18
- * Parse properties file content into key-value pairs
19
- * @param {string} content - Properties file content
20
- * @returns {Object} Parsed key-value pairs
21
- */
22
-
23
12
 
24
13
  function parseProperties(content) {
25
14
  const lines = content.split(/\r?\n/);
@@ -29,8 +18,7 @@ function parseProperties(content) {
29
18
 
30
19
  if (trimmedLine.startsWith('#') || trimmedLine.startsWith('!') || trimmedLine === '') {
31
20
  return;
32
- } // Find unescaped separator (= or :)
33
-
21
+ }
34
22
 
35
23
  let separatorIndex = -1;
36
24
 
@@ -46,9 +34,7 @@ function parseProperties(content) {
46
34
  let value = trimmedLine.substring(separatorIndex + 1).trim();
47
35
 
48
36
  if (key) {
49
- // Handle escaped spaces in keys only
50
- key = key.replace(/\\ /g, ' '); // Decode Unicode escape sequences ONLY in values, not keys
51
-
37
+ key = key.replace(/\\ /g, ' ');
52
38
  value = decodeUnicodeEscapes(value);
53
39
  data[key] = value;
54
40
  }
@@ -56,12 +42,6 @@ function parseProperties(content) {
56
42
  });
57
43
  return data;
58
44
  }
59
- /**
60
- * Parse properties file content into a Set of keys only
61
- * @param {string} content - Properties file content
62
- * @returns {Set<string>} Set of keys
63
- */
64
-
65
45
 
66
46
  function parsePropertiesToKeySet(content) {
67
47
  const lines = content.split(/\r?\n/);
@@ -71,8 +51,7 @@ function parsePropertiesToKeySet(content) {
71
51
 
72
52
  if (trimmedLine.startsWith('#') || trimmedLine.startsWith('!') || trimmedLine === '') {
73
53
  return;
74
- } // Find unescaped separator (= or :)
75
-
54
+ }
76
55
 
77
56
  let separatorIndex = -1;
78
57
 
@@ -87,7 +66,6 @@ function parsePropertiesToKeySet(content) {
87
66
  let key = trimmedLine.substring(0, separatorIndex).trim();
88
67
 
89
68
  if (key) {
90
- // Handle escaped spaces in keys only
91
69
  key = key.replace(/\\ /g, ' ');
92
70
  keys.add(key);
93
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.11-exp.11",
3
+ "version": "0.0.11-exp.12",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {