contentful-export 7.19.130 → 7.19.131

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22,6 +22,13 @@ var _initClient = _interopRequireDefault(require("./tasks/init-client"));
22
22
  var _parseOptions = _interopRequireDefault(require("./parseOptions"));
23
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
24
  const accessP = _bluebird.default.promisify(_fs.access);
25
+ const tableOptions = {
26
+ // remove ANSI color codes for better CI/CD compatibility
27
+ style: {
28
+ head: [],
29
+ border: []
30
+ }
31
+ };
25
32
  function createListrOptions(options) {
26
33
  if (options.useVerboseRenderer) {
27
34
  return {
@@ -117,7 +124,7 @@ function runContentfulExport(params) {
117
124
  }).then(ctx => {
118
125
  const resultTypes = Object.keys(ctx.data);
119
126
  if (resultTypes.length) {
120
- const resultTable = new _cliTable.default();
127
+ const resultTable = new _cliTable.default(tableOptions);
121
128
  resultTable.push([{
122
129
  colSpan: 2,
123
130
  content: 'Exported entities'
@@ -130,7 +137,7 @@ function runContentfulExport(params) {
130
137
  console.log('No data was exported');
131
138
  }
132
139
  if ('assetDownloads' in ctx) {
133
- const downloadsTable = new _cliTable.default();
140
+ const downloadsTable = new _cliTable.default(tableOptions);
134
141
  downloadsTable.push([{
135
142
  colSpan: 2,
136
143
  content: 'Asset file download results'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.19.130",
3
+ "version": "7.19.131",
4
4
  "description": "this tool allows you to export a space to a JSON dump",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",