@contentstack/cli-cm-branches 1.0.13 → 1.0.15

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
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
37
37
  $ csdx COMMAND
38
38
  running command...
39
39
  $ csdx (--version)
40
- @contentstack/cli-cm-branches/1.0.13 linux-x64 node-v18.17.1
40
+ @contentstack/cli-cm-branches/1.0.15 linux-x64 node-v18.18.2
41
41
  $ csdx --help [COMMAND]
42
42
  USAGE
43
43
  $ csdx COMMAND
@@ -466,8 +466,10 @@ function entryCreateUpdateScript(contentType) {
466
466
  const references = await findReference(contentType.schema, '', flag);
467
467
 
468
468
  async function updateEntry(entry, entryDetails) {
469
- Object.assign(entry, { ...entryDetails });
470
- await entry.update();
469
+ if (entry) {
470
+ Object.assign(entry, { ...entryDetails });
471
+ await entry.update();
472
+ }
471
473
  }
472
474
 
473
475
  async function updateReferences(entryDetails, baseEntry, references) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.13",
2
+ "version": "1.0.15",
3
3
  "commands": {
4
4
  "cm:branches:create": {
5
5
  "id": "cm:branches:create",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-branches",
3
3
  "description": "Contentstack CLI plugin to do branches operations",
4
- "version": "1.0.13",
4
+ "version": "1.0.15",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "~1.2.12",
9
- "@contentstack/cli-utilities": "~1.5.2",
8
+ "@contentstack/cli-command": "~1.2.13",
9
+ "@contentstack/cli-utilities": "~1.5.3",
10
10
  "@oclif/core": "^2.9.3",
11
11
  "async": "^3.2.4",
12
12
  "big-json": "^3.2.0",
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.7.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@contentstack/cli-auth": "~1.3.13",
28
+ "@contentstack/cli-auth": "~1.3.14",
29
29
  "@contentstack/cli-config": "~1.4.11",
30
30
  "@contentstack/cli-dev-dependencies": "~1.2.3",
31
31
  "@oclif/plugin-help": "^5.1.19",