locize-cli 7.14.11 → 7.14.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
  Project versioning adheres to [Semantic Versioning](http://semver.org/).
6
6
  Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
7
7
 
8
+ ## [7.14.12](https://github.com/locize/locize-cli/compare/v7.14.11...v7.14.12) - 2023-10-13
9
+
10
+ - update some deps and optimize unflatten
11
+
8
12
  ## [7.14.11](https://github.com/locize/locize-cli/compare/v7.14.10...v7.14.11) - 2023-10-13
9
13
 
10
14
  - fix laravel sync
package/download.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const colors = require('colors');
2
- const mkdirp = require('mkdirp');
2
+ const { mkdirp } = require('mkdirp');
3
3
  const rimraf = require('rimraf');
4
4
  const request = require('./request');
5
5
  const fs = require('fs');
package/lngs.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "csb",
8
8
  "dz",
9
9
  "es_ar",
10
+ "es-ar",
10
11
  "fil",
11
12
  "fur",
12
13
  "gun",
@@ -20,6 +21,7 @@
20
21
  "pap",
21
22
  "pms",
22
23
  "pt_br",
24
+ "pt-br",
23
25
  "sah",
24
26
  "sco",
25
27
  "son",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locize-cli",
3
- "version": "7.14.11",
3
+ "version": "7.14.12",
4
4
  "description": "locize cli to import locales",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@js.properties/properties": "0.5.4",
11
11
  "android-string-resource": "2.3.9",
12
- "async": "3.2.4",
12
+ "async": "3.2.5",
13
13
  "cacheable-lookup": "6.1.0",
14
14
  "colors": "1.4.0",
15
15
  "commander": "9.5.0",
@@ -19,29 +19,29 @@
19
19
  "flat": "5.0.2",
20
20
  "fluent_conv": "3.2.0",
21
21
  "gettext-converter": "1.2.3",
22
- "https-proxy-agent": "5.0.1",
23
- "ini": "3.0.1",
22
+ "https-proxy-agent": "7.0.2",
23
+ "ini": "4.1.1",
24
24
  "js-yaml": "4.1.0",
25
25
  "laravelphp": "2.0.4",
26
26
  "lodash.clonedeep": "4.5.0",
27
- "mkdirp": "2.1.6",
27
+ "mkdirp": "3.0.1",
28
28
  "node-fetch": "2.7.0",
29
29
  "resx": "2.0.4",
30
30
  "rimraf": "3.0.2",
31
31
  "strings-file": "0.0.5",
32
32
  "tmexchange": "2.0.5",
33
- "xliff": "6.1.0",
33
+ "xliff": "6.2.0",
34
34
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
35
35
  },
36
36
  "devDependencies": {
37
- "eslint": "8.51.0",
37
+ "eslint": "8.53.0",
38
38
  "gh-release": "7.0.2",
39
39
  "pkg": "5.8.1"
40
40
  },
41
41
  "scripts": {
42
42
  "lint": "eslint .",
43
43
  "test": "npm run lint",
44
- "pkg": "mkdir -p ./bins && pkg ./bin/locize --out-path ./bins --targets node16-linux-x64,node16-macos-x64,node16-win-x64,node16-alpine-x64",
44
+ "pkg": "mkdir -p ./bins && pkg ./bin/locize --out-path ./bins --targets node18-linux-x64,node18-macos-x64,node18-win-x64,node18-alpine-x64",
45
45
  "release": "gh-release --assets ./bins/locize-linux,./bins/locize-macos,./bins/locize-win.exe,./bins/locize-alpine",
46
46
  "version": "npm run pkg",
47
47
  "postversion": "git push && npm run release"
@@ -1,7 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
3
  const async = require('async');
4
- const mkdirp = require('mkdirp');
4
+ const { mkdirp } = require('mkdirp');
5
5
  const convertToFlatFormat = require('./convertToFlatFormat');
6
6
  const formats = require('./formats');
7
7
  const fileExtensionsMap = formats.fileExtensionsMap;
package/sync.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
- const mkdirp = require('mkdirp');
3
+ const { mkdirp } = require('mkdirp');
4
4
  const rimraf = require('rimraf');
5
5
  const async = require('async');
6
6
  const colors = require('colors');
package/unflatten.js CHANGED
@@ -6,7 +6,7 @@ module.exports = (data) => {
6
6
  keys.reduce((r, e, j) => {
7
7
  const isNumber = !isNaN(Number(keys[j + 1]));
8
8
  const hasLeadingZero = isNumber && keys[j + 1].length > 1 && keys[j + 1][0] === '0';
9
- const tooHighNumberToBeAnArrayIndex = isNumber && Number(keys[j + 1]) > 1000000;
9
+ const tooHighNumberToBeAnArrayIndex = isNumber && Number(keys[j + 1]) > 1000;
10
10
  // if assumed to be an array, but now see a key wih non number value => transform to an object
11
11
  if (Array.isArray(r[e]) && (!isNumber || hasLeadingZero || tooHighNumberToBeAnArrayIndex)) {
12
12
  r[e] = r[e].reduce((mem, item, ind) => {