@contentstack/cli-cm-import 1.21.0 → 1.21.2

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/README.md CHANGED
@@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import
47
47
  $ csdx COMMAND
48
48
  running command...
49
49
  $ csdx (--version)
50
- @contentstack/cli-cm-import/1.21.0 linux-x64 node-v22.14.0
50
+ @contentstack/cli-cm-import/1.21.2 linux-x64 node-v22.14.0
51
51
  $ csdx --help [COMMAND]
52
52
  USAGE
53
53
  $ csdx COMMAND
@@ -178,7 +178,12 @@ class BaseClass {
178
178
  case 'update-locale':
179
179
  return this.stack
180
180
  .locale(apiData.code)
181
- .update({ locale: (0, pick_1.default)(apiData, [...this.modulesConfig.locales.requiredKeys]) })
181
+ .fetch()
182
+ .then((locale) => {
183
+ locale.name = apiData.name;
184
+ locale.fallback_locale = apiData.fallback_locale;
185
+ return locale.update();
186
+ })
182
187
  .then(onSuccess)
183
188
  .catch(onReject);
184
189
  case 'create-cts':
@@ -199,5 +199,5 @@
199
199
  ]
200
200
  }
201
201
  },
202
- "version": "1.21.0"
202
+ "version": "1.21.2"
203
203
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-import",
3
3
  "description": "Contentstack CLI plugin to import content into stack",
4
- "version": "1.21.0",
4
+ "version": "1.21.2",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-audit": "~1.11.0",
8
+ "@contentstack/cli-audit": "~1.12.1",
9
9
  "@contentstack/cli-command": "~1.5.0",
10
10
  "@contentstack/cli-utilities": "~1.11.0",
11
- "@contentstack/management": "~1.20.1",
11
+ "@contentstack/management": "~1.20.2",
12
12
  "@contentstack/cli-variants": "~1.2.0",
13
13
  "@oclif/core": "^4.2.7",
14
14
  "big-json": "^3.2.0",