@contentstack/cli-cm-bulk-publish 1.4.0 → 1.4.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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-bulk-publish",
3
3
  "description": "Contentstack CLI plugin for bulk publish actions",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
8
  "@contentstack/cli-command": "~1.2.16",
9
- "@contentstack/cli-utilities": "~1.5.10",
9
+ "@contentstack/cli-utilities": "~1.5.11",
10
10
  "bluebird": "^3.7.2",
11
11
  "chalk": "^4.1.2",
12
12
  "dotenv": "^16.1.4",
@@ -17,7 +17,7 @@
17
17
  "winston": "^3.7.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@oclif/test": "^1.2.6",
20
+ "@oclif/test": "^2.5.6",
21
21
  "chai": "^4.2.0",
22
22
  "eslint": "^8.18.0",
23
23
  "eslint-config-oclif": "^4.0.0",
@@ -99,4 +99,4 @@
99
99
  "version": "oclif readme && git add README.md",
100
100
  "clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
101
101
  }
102
- }
102
+ }
@@ -43,6 +43,7 @@ async function publishEntry(data, _config, queue) {
43
43
  .publish({
44
44
  publishDetails: { environments: entryObj.environments, locales: lang },
45
45
  locale: entryObj.locale || 'en-us',
46
+ version: entryObj.version
46
47
  })
47
48
  .then((publishEntryResponse) => {
48
49
  if (!publishEntryResponse.error_message) {
@@ -44,6 +44,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
44
44
  uid: items[index].data.uid,
45
45
  content_type: items[index].content_type_uid,
46
46
  locale: items[index].data.locale || 'en-us',
47
+ version: items[index].data._version,
47
48
  publish_details: [items[index].data.publish_details] || [],
48
49
  });
49
50
  }
@@ -111,6 +112,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
111
112
  environments: destEnv,
112
113
  entryUid: items[index].data.uid,
113
114
  locale: items[index].data.locale || 'en-us',
115
+ version: items[index].data._version,
114
116
  Type: 'entry',
115
117
  stack: stack,
116
118
  });