locize-cli 7.14.14 → 7.15.0

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/sync.js +8 -3
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ 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.15.0](https://github.com/locize/locize-cli/compare/v7.14.15...v7.15.0) - 2023-12-18
9
+
10
+ - locize sync: show publish mode advice if necessary
11
+
12
+ ## [7.14.15](https://github.com/locize/locize-cli/compare/v7.14.14...v7.14.15) - 2023-12-18
13
+
14
+ - fix sync for private published translations
15
+
8
16
  ## [7.14.14](https://github.com/locize/locize-cli/compare/v7.14.13...v7.14.14) - 2023-11-28
9
17
 
10
18
  - update gettext and xlsx dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locize-cli",
3
- "version": "7.14.14",
3
+ "version": "7.15.0",
4
4
  "description": "locize cli to import locales",
5
5
  "main": "index.js",
6
6
  "bin": {
package/sync.js CHANGED
@@ -28,9 +28,9 @@ const getDownloads = (opt, cb) => {
28
28
  if (!opt.unpublished) {
29
29
  request(opt.apiPath + '/download/' + opt.projectId + '/' + opt.version, {
30
30
  method: 'get',
31
- // headers: opt.apiKey ? {
32
- // 'Authorization': opt.apiKey
33
- // } : undefined
31
+ headers: opt.apiKey ? {
32
+ 'Authorization': opt.apiKey
33
+ } : undefined
34
34
  }, (err, res, obj) => {
35
35
  if (err) return cb(err);
36
36
  if (res.status >= 300) {
@@ -270,6 +270,11 @@ const update = (opt, lng, ns, shouldOmit, cb) => {
270
270
  }
271
271
  }, (err, res, obj) => {
272
272
  if (err) return clb(err);
273
+ const cliInfo = res.headers.get('x-cli-info');
274
+ if (cliInfo && cliInfo !== opt.lastShownCliInfo) {
275
+ console.log(colors.yellow(cliInfo));
276
+ opt.lastShownCliInfo = cliInfo;
277
+ }
273
278
  if (res.status === 504 && !isRetrying) {
274
279
  return setTimeout(() => send(d, so, clb, true), 3000);
275
280
  }