contentful-import 9.4.44 → 9.4.45

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/dist/index.js CHANGED
@@ -1239,6 +1239,10 @@ async function parseOptions(params) {
1239
1239
 
1240
1240
  // lib/index.ts
1241
1241
  var ONE_SECOND = 1e3;
1242
+ var tableOptions = {
1243
+ // remove ANSI color codes for better CI/CD compatibility
1244
+ style: { head: [], border: [] }
1245
+ };
1242
1246
  function createListrOptions(options) {
1243
1247
  if (options.useVerboseRenderer) {
1244
1248
  return {
@@ -1260,7 +1264,7 @@ async function runContentfulImport(params) {
1260
1264
  carryoverConcurrencyCount: true
1261
1265
  });
1262
1266
  (0, import_logging7.setupLogging)(log);
1263
- const infoTable = new import_cli_table3.default();
1267
+ const infoTable = new import_cli_table3.default(tableOptions);
1264
1268
  infoTable.push([{ colSpan: 2, content: "The following entities are going to be imported:" }]);
1265
1269
  Object.keys(options.content).forEach((type) => {
1266
1270
  if (options.skipLocales && type === "locales") {
@@ -1341,7 +1345,7 @@ async function runContentfulImport(params) {
1341
1345
  console.log("Finished importing all data");
1342
1346
  const resultTypes = Object.keys(ctx.data);
1343
1347
  if (resultTypes.length) {
1344
- const resultTable = new import_cli_table3.default();
1348
+ const resultTable = new import_cli_table3.default(tableOptions);
1345
1349
  resultTable.push([{ colSpan: 2, content: "Imported entities" }]);
1346
1350
  resultTypes.forEach((type) => {
1347
1351
  resultTable.push([(0, import_lodash2.startCase)(type), ctx.data[type].length]);
package/dist/index.mjs CHANGED
@@ -1209,6 +1209,10 @@ async function parseOptions(params) {
1209
1209
 
1210
1210
  // lib/index.ts
1211
1211
  var ONE_SECOND = 1e3;
1212
+ var tableOptions = {
1213
+ // remove ANSI color codes for better CI/CD compatibility
1214
+ style: { head: [], border: [] }
1215
+ };
1212
1216
  function createListrOptions(options) {
1213
1217
  if (options.useVerboseRenderer) {
1214
1218
  return {
@@ -1230,7 +1234,7 @@ async function runContentfulImport(params) {
1230
1234
  carryoverConcurrencyCount: true
1231
1235
  });
1232
1236
  setupLogging(log);
1233
- const infoTable = new Table();
1237
+ const infoTable = new Table(tableOptions);
1234
1238
  infoTable.push([{ colSpan: 2, content: "The following entities are going to be imported:" }]);
1235
1239
  Object.keys(options.content).forEach((type) => {
1236
1240
  if (options.skipLocales && type === "locales") {
@@ -1311,7 +1315,7 @@ async function runContentfulImport(params) {
1311
1315
  console.log("Finished importing all data");
1312
1316
  const resultTypes = Object.keys(ctx.data);
1313
1317
  if (resultTypes.length) {
1314
- const resultTable = new Table();
1318
+ const resultTable = new Table(tableOptions);
1315
1319
  resultTable.push([{ colSpan: 2, content: "Imported entities" }]);
1316
1320
  resultTypes.forEach((type) => {
1317
1321
  resultTable.push([startCase(type), ctx.data[type].length]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-import",
3
- "version": "9.4.44",
3
+ "version": "9.4.45",
4
4
  "description": "this tool allows you to import JSON dump exported by contentful-export",
5
5
  "main": "dist/index.mjs",
6
6
  "typings": "dist/index.d.ts",