contentful-import 10.2.1 → 10.2.3
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 +8 -8
- package/bin/contentful-import +10 -6
- package/dist/chunk-BWBJ5DCQ.mjs +53 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4943 -90
- package/dist/index.mjs +5028 -182
- package/dist/usageParams.d.mts +6 -0
- package/dist/usageParams.d.ts +7 -1
- package/dist/usageParams.js +13 -1
- package/dist/usageParams.mjs +9 -2
- package/package.json +4 -4
- package/dist/chunk-GA5GJRGP.mjs +0 -20
package/dist/usageParams.d.mts
CHANGED
|
@@ -20,6 +20,9 @@ declare const _default: {
|
|
|
20
20
|
uploadAssets: boolean | undefined;
|
|
21
21
|
"assets-directory": string | undefined;
|
|
22
22
|
assetsDirectory: string | undefined;
|
|
23
|
+
timeout: number | undefined;
|
|
24
|
+
"retry-limit": number | undefined;
|
|
25
|
+
retryLimit: number | undefined;
|
|
23
26
|
"error-log-file": string | undefined;
|
|
24
27
|
errorLogFile: string | undefined;
|
|
25
28
|
host: string;
|
|
@@ -55,6 +58,9 @@ declare const _default: {
|
|
|
55
58
|
uploadAssets: boolean | undefined;
|
|
56
59
|
"assets-directory": string | undefined;
|
|
57
60
|
assetsDirectory: string | undefined;
|
|
61
|
+
timeout: number | undefined;
|
|
62
|
+
"retry-limit": number | undefined;
|
|
63
|
+
retryLimit: number | undefined;
|
|
58
64
|
"error-log-file": string | undefined;
|
|
59
65
|
errorLogFile: string | undefined;
|
|
60
66
|
host: string;
|
package/dist/usageParams.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ declare const _default: {
|
|
|
20
20
|
uploadAssets: boolean | undefined;
|
|
21
21
|
"assets-directory": string | undefined;
|
|
22
22
|
assetsDirectory: string | undefined;
|
|
23
|
+
timeout: number | undefined;
|
|
24
|
+
"retry-limit": number | undefined;
|
|
25
|
+
retryLimit: number | undefined;
|
|
23
26
|
"error-log-file": string | undefined;
|
|
24
27
|
errorLogFile: string | undefined;
|
|
25
28
|
host: string;
|
|
@@ -55,6 +58,9 @@ declare const _default: {
|
|
|
55
58
|
uploadAssets: boolean | undefined;
|
|
56
59
|
"assets-directory": string | undefined;
|
|
57
60
|
assetsDirectory: string | undefined;
|
|
61
|
+
timeout: number | undefined;
|
|
62
|
+
"retry-limit": number | undefined;
|
|
63
|
+
retryLimit: number | undefined;
|
|
58
64
|
"error-log-file": string | undefined;
|
|
59
65
|
errorLogFile: string | undefined;
|
|
60
66
|
host: string;
|
|
@@ -70,4 +76,4 @@ declare const _default: {
|
|
|
70
76
|
$0: string;
|
|
71
77
|
}>;
|
|
72
78
|
|
|
73
|
-
export
|
|
79
|
+
export = _default;
|
package/dist/usageParams.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
if (!globalThis.__contentfulImportCjsDeprecationWarned) {
|
|
3
|
+
globalThis.__contentfulImportCjsDeprecationWarned = true;
|
|
4
|
+
console.warn('[contentful-import] Deprecation notice: the next major version of this package will be ESM-only and will drop require() support. Please migrate consuming code to ES modules (import) ahead of that release.');
|
|
5
|
+
}
|
|
1
6
|
var __create = Object.create;
|
|
2
7
|
var __defProp = Object.defineProperty;
|
|
3
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -77,7 +82,13 @@ var usageParams_default = import_yargs.default.version(version || "Version only
|
|
|
77
82
|
}).implies("upload-assets", "assets-directory").option("assets-directory", {
|
|
78
83
|
describe: "Path to a directory with an asset export made using the downloadAssets option to upload those files instead of pointing to the URLs of previously uploaded assets. Requires upload-assets",
|
|
79
84
|
type: "string"
|
|
80
|
-
}).implies("assets-directory", "upload-assets").option("
|
|
85
|
+
}).implies("assets-directory", "upload-assets").option("timeout", {
|
|
86
|
+
describe: "Time between retries",
|
|
87
|
+
type: "number"
|
|
88
|
+
}).option("retry-limit", {
|
|
89
|
+
describe: "Maximum number of retries",
|
|
90
|
+
type: "number"
|
|
91
|
+
}).option("error-log-file", {
|
|
81
92
|
describe: "Full path to the error log file",
|
|
82
93
|
type: "string"
|
|
83
94
|
}).option("host", {
|
|
@@ -104,3 +115,4 @@ var usageParams_default = import_yargs.default.version(version || "Version only
|
|
|
104
115
|
type: "boolean",
|
|
105
116
|
default: true
|
|
106
117
|
}).config("config", "An optional configuration JSON file containing all the options for a single run").argv;
|
|
118
|
+
module.exports = module.exports.default || module.exports;
|
package/dist/usageParams.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
1
2
|
import {
|
|
2
3
|
version
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BWBJ5DCQ.mjs";
|
|
4
5
|
|
|
5
6
|
// lib/usageParams.ts
|
|
6
7
|
import yargs from "yargs";
|
|
@@ -43,7 +44,13 @@ var usageParams_default = yargs.version(version || "Version only available on in
|
|
|
43
44
|
}).implies("upload-assets", "assets-directory").option("assets-directory", {
|
|
44
45
|
describe: "Path to a directory with an asset export made using the downloadAssets option to upload those files instead of pointing to the URLs of previously uploaded assets. Requires upload-assets",
|
|
45
46
|
type: "string"
|
|
46
|
-
}).implies("assets-directory", "upload-assets").option("
|
|
47
|
+
}).implies("assets-directory", "upload-assets").option("timeout", {
|
|
48
|
+
describe: "Time between retries",
|
|
49
|
+
type: "number"
|
|
50
|
+
}).option("retry-limit", {
|
|
51
|
+
describe: "Maximum number of retries",
|
|
52
|
+
type: "number"
|
|
53
|
+
}).option("error-log-file", {
|
|
47
54
|
describe: "Full path to the error log file",
|
|
48
55
|
type: "string"
|
|
49
56
|
}).option("host", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-import",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.3",
|
|
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",
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
66
66
|
"contentful-batch-libs": "^9.7.0",
|
|
67
67
|
"contentful-management": "^12.13.0",
|
|
68
|
-
"date-fns": "^
|
|
68
|
+
"date-fns": "^4.4.0",
|
|
69
69
|
"joi": "^18.2.3",
|
|
70
70
|
"listr": "^0.14.3",
|
|
71
71
|
"listr-update-renderer": "^0.5.0",
|
|
72
72
|
"listr-verbose-renderer": "^0.6.0",
|
|
73
|
-
"lodash": "^4.18.1",
|
|
73
|
+
"lodash-es": "^4.18.1",
|
|
74
74
|
"p-queue": "^6.6.2",
|
|
75
75
|
"yargs": "^17.7.3"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@semantic-release/changelog": "^6.0.3",
|
|
79
79
|
"@types/jest": "^29.5.14",
|
|
80
|
-
"@types/lodash": "^4.17.
|
|
80
|
+
"@types/lodash-es": "^4.17.12",
|
|
81
81
|
"@types/node": "^20.6.3",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
83
83
|
"@typescript-eslint/parser": "^7.18.0",
|
package/dist/chunk-GA5GJRGP.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
-
}) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
-
});
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// package.json
|
|
14
|
-
var version = "0.0.0-determined-by-semantic-release";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
__require,
|
|
18
|
-
__export,
|
|
19
|
-
version
|
|
20
|
-
};
|