jclic 2.1.13 → 2.1.16

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ### v2.1.16 (2023-12-12)
2
+ #### Improvements
3
+ - Upgraded dependencies
4
+ #### Bug fixes
5
+ - Uninstall `webpack-node-externals` due to an incompatibility with `clipboard-polyfill` version 4
6
+ - Avoid font checking when running on NodeJS due to an error of [JSDOM](https://github.com/jsdom/jsdom) with [jQuery](https://jquery.com/) XML node trees.
7
+
8
+ ### v2.1.15 (2023-09-26)
9
+ #### Improvements
10
+ - Upgraded dependencies
11
+
12
+ ### v2.1.14 (2023-09-16)
13
+ #### Improvements
14
+ - Upgraded dependencies
15
+ #### Bug fixes
16
+ - Replace calls to `substr` (deprecated) by `substring`
17
+
1
18
  ### v2.1.13 (2023-07-11)
2
19
  #### Improvements
3
20
  - Upgraded dependencies
package/build-locales.js CHANGED
@@ -27,7 +27,7 @@ const getData = function (locales = _LOCALES, verbose = true) {
27
27
 
28
28
  // Initialize the options object
29
29
  const opt = {
30
- version: `${pkg.version} (${(new Date()).toISOString().substr(0, 10)})`,
30
+ version: `${pkg.version} (${(new Date()).toISOString().substring(0, 10)})`,
31
31
  languages: ['en'],
32
32
  messages: {},
33
33
  };
@@ -36,7 +36,7 @@ const getData = function (locales = _LOCALES, verbose = true) {
36
36
  fs.readdirSync(locales).forEach(fn => {
37
37
  if (fn.endsWith('.po')) {
38
38
  // Gent language code from file name, skipping extension
39
- const lang = fn.substr(0, fn.lastIndexOf('.'));
39
+ const lang = fn.substring(0, fn.lastIndexOf('.'));
40
40
  const file = path.resolve(locales, fn);
41
41
  if (verbose)
42
42
  console.log(`Processing language ${lang}`);