contentful-export 7.19.142 → 7.19.144

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -13,8 +13,8 @@ var _listrUpdateRenderer = _interopRequireDefault(require("listr-update-renderer
13
13
  var _listrVerboseRenderer = _interopRequireDefault(require("listr-verbose-renderer"));
14
14
  var _lodash = _interopRequireDefault(require("lodash.startcase"));
15
15
  var _mkdirp = _interopRequireDefault(require("mkdirp"));
16
- var _differenceInSeconds = _interopRequireDefault(require("date-fns/differenceInSeconds"));
17
- var _formatDistance = _interopRequireDefault(require("date-fns/formatDistance"));
16
+ var _differenceInSeconds = require("date-fns/differenceInSeconds");
17
+ var _formatDistance = require("date-fns/formatDistance");
18
18
  var _contentfulBatchLibs = require("contentful-batch-libs");
19
19
  var _downloadAssets = _interopRequireDefault(require("./tasks/download-assets"));
20
20
  var _getSpaceData = _interopRequireDefault(require("./tasks/get-space-data"));
@@ -148,8 +148,8 @@ function runContentfulExport(params) {
148
148
  console.log(downloadsTable.toString());
149
149
  }
150
150
  const endTime = new Date();
151
- const durationHuman = (0, _formatDistance.default)(endTime, options.startTime);
152
- const durationSeconds = (0, _differenceInSeconds.default)(endTime, options.startTime);
151
+ const durationHuman = (0, _formatDistance.formatDistance)(endTime, options.startTime);
152
+ const durationSeconds = (0, _differenceInSeconds.differenceInSeconds)(endTime, options.startTime);
153
153
  console.log(`The export took ${durationHuman} (${durationSeconds}s)`);
154
154
  if (options.saveFile) {
155
155
  console.log(`\nStored space data to json file at: ${options.logFilePath}`);
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = parseOptions;
7
7
  var _contentfulBatchLibs = require("contentful-batch-libs");
8
- var _format = _interopRequireDefault(require("date-fns/format"));
8
+ var _format = require("date-fns/format");
9
9
  var _path = require("path");
10
10
  var _querystring = _interopRequireDefault(require("querystring"));
11
11
  var _package = require("../package");
@@ -52,10 +52,10 @@ function parseOptions(params) {
52
52
  throw new Error('Please provide the proxy config in the following format:\nhost:port or user:password@host:port');
53
53
  }
54
54
  options.startTime = new Date();
55
- options.contentFile = options.contentFile || `contentful-export-${options.spaceId}-${options.environmentId}-${(0, _format.default)(options.startTime, "yyyy-MM-dd'T'HH-mm-ss")}.json`;
55
+ options.contentFile = options.contentFile || `contentful-export-${options.spaceId}-${options.environmentId}-${(0, _format.format)(options.startTime, "yyyy-MM-dd'T'HH-mm-ss")}.json`;
56
56
  options.logFilePath = (0, _path.resolve)(options.exportDir, options.contentFile);
57
57
  if (!options.errorLogFile) {
58
- options.errorLogFile = (0, _path.resolve)(options.exportDir, `contentful-export-error-log-${options.spaceId}-${options.environmentId}-${(0, _format.default)(options.startTime, "yyyy-MM-dd'T'HH-mm-ss")}.json`);
58
+ options.errorLogFile = (0, _path.resolve)(options.exportDir, `contentful-export-error-log-${options.spaceId}-${options.environmentId}-${(0, _format.format)(options.startTime, "yyyy-MM-dd'T'HH-mm-ss")}.json`);
59
59
  } else {
60
60
  options.errorLogFile = (0, _path.resolve)(process.cwd(), options.errorLogFile);
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.19.142",
3
+ "version": "7.19.144",
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",
@@ -49,7 +49,7 @@
49
49
  "contentful": "^10.6.9",
50
50
  "contentful-batch-libs": "^9.4.1",
51
51
  "contentful-management": "^11.0.1",
52
- "date-fns": "^2.28.0",
52
+ "date-fns": "^3.6.0",
53
53
  "figures": "^3.2.0",
54
54
  "jsonwebtoken": "^9.0.0",
55
55
  "listr": "^0.14.1",
@@ -101,6 +101,9 @@
101
101
  }
102
102
  },
103
103
  "release": {
104
+ "branches": [
105
+ "main"
106
+ ],
104
107
  "plugins": [
105
108
  [
106
109
  "@semantic-release/commit-analyzer",