locize-cli 10.2.0 → 10.2.1

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
@@ -6,6 +6,10 @@ 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
8
 
9
+ ## [10.2.1](https://github.com/locize/locize-cli/compare/v10.2.0...v10.2.1) - 2025-08-07
10
+
11
+ - download/sync: check if branch name is empty string
12
+
9
13
  ## [10.2.0](https://github.com/locize/locize-cli/compare/v10.1.1...v10.2.0) - 2025-07-16
10
14
 
11
15
  - download/sync introduce `--overridden-only` option for branches or tenants
package/README.md CHANGED
@@ -23,6 +23,23 @@ iwr https://raw.githubusercontent.com/locize/locize-cli/master/install.ps1 -useb
23
23
  ```
24
24
 
25
25
 
26
+ > ⚠️ **Filename restrictions**
27
+ > The namespace you choose becomes your on-disk filename, so please avoid these characters:
28
+ > ```
29
+ > < (less than)
30
+ > > (greater than)
31
+ > : (colon)
32
+ > " (double quote)
33
+ > / (forward slash)
34
+ > \ (backslash)
35
+ > | (vertical bar or pipe)
36
+ > ? (question mark)
37
+ > * (asterisk)
38
+ > ```
39
+ > These are sometimes illegal on various operating systems, so using them may lead to files not being written or being written incorrectly. If necessary, use only letters, numbers, hyphens ("-") and underscores ("_") in your namespace names.
40
+
41
+
42
+
26
43
  ## Adding/Updating new keys
27
44
  ### Step 1: execute
28
45
 
package/download.js CHANGED
@@ -474,6 +474,10 @@ const download = (opt, cb) => {
474
474
  return handleError(new Error('Please provide also an api-key!'), cb);
475
475
  }
476
476
 
477
+ if (opt.branch === '') {
478
+ return handleError(new Error('The branch name seems invalid!'), cb);
479
+ }
480
+
477
481
  if (opt.branch) {
478
482
  getBranches(opt, (err, branches) => {
479
483
  if (err) return handleError(err, cb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locize-cli",
3
- "version": "10.2.0",
3
+ "version": "10.2.1",
4
4
  "description": "locize cli to import locales",
5
5
  "main": "index.js",
6
6
  "bin": {
package/sync.js CHANGED
@@ -743,6 +743,10 @@ const sync = (opt, cb) => {
743
743
  return handleError(new Error('Please provide also an api-key!'), cb);
744
744
  }
745
745
 
746
+ if (opt.branch === '') {
747
+ return handleError(new Error('The branch name seems invalid!'), cb);
748
+ }
749
+
746
750
  if (opt.branch) {
747
751
  getBranches(opt, (err, branches) => {
748
752
  if (err) return handleError(err, cb);