contentful-import 9.4.61 → 9.4.63
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.
|
@@ -2,8 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
3
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
4
|
}) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined")
|
|
6
|
-
return require.apply(this, arguments);
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
7
|
});
|
|
9
8
|
var __export = (target, all) => {
|
package/dist/index.js
CHANGED
|
@@ -235,8 +235,7 @@ async function processAssetForLocale(locale, asset, processingOptions) {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
async function lastResult(promises) {
|
|
238
|
-
if (!promises.length)
|
|
239
|
-
throw new RangeError("No last result from no promises");
|
|
238
|
+
if (!promises.length) throw new RangeError("No last result from no promises");
|
|
240
239
|
const results = [];
|
|
241
240
|
await Promise.all(
|
|
242
241
|
promises.map(
|
|
@@ -935,10 +934,8 @@ function isEntityArray(item) {
|
|
|
935
934
|
return Array.isArray(item) && item.length > 0 && _o.has(item[0], "sys");
|
|
936
935
|
}
|
|
937
936
|
function mergeSort(arr, compareFn) {
|
|
938
|
-
if (arr.length < 2)
|
|
939
|
-
|
|
940
|
-
if (compareFn == null)
|
|
941
|
-
compareFn = defaultCompare;
|
|
937
|
+
if (arr.length < 2) return arr;
|
|
938
|
+
if (compareFn == null) compareFn = defaultCompare;
|
|
942
939
|
const mid = ~~(arr.length / 2);
|
|
943
940
|
const left = mergeSort(arr.slice(0, mid), compareFn);
|
|
944
941
|
const right = mergeSort(arr.slice(mid, arr.length), compareFn);
|
|
@@ -956,10 +953,8 @@ function merge(left, right, compareFn) {
|
|
|
956
953
|
result.push(right.shift());
|
|
957
954
|
}
|
|
958
955
|
}
|
|
959
|
-
if (left.length)
|
|
960
|
-
|
|
961
|
-
if (right.length)
|
|
962
|
-
result.push(...right);
|
|
956
|
+
if (left.length) result.push(...left);
|
|
957
|
+
if (right.length) result.push(...right);
|
|
963
958
|
return result;
|
|
964
959
|
}
|
|
965
960
|
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__export,
|
|
3
3
|
__require,
|
|
4
4
|
version
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GA5GJRGP.mjs";
|
|
6
6
|
|
|
7
7
|
// lib/index.ts
|
|
8
8
|
import Table from "cli-table3";
|
|
@@ -208,8 +208,7 @@ async function processAssetForLocale(locale, asset, processingOptions) {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
async function lastResult(promises) {
|
|
211
|
-
if (!promises.length)
|
|
212
|
-
throw new RangeError("No last result from no promises");
|
|
211
|
+
if (!promises.length) throw new RangeError("No last result from no promises");
|
|
213
212
|
const results = [];
|
|
214
213
|
await Promise.all(
|
|
215
214
|
promises.map(
|
|
@@ -908,10 +907,8 @@ function isEntityArray(item) {
|
|
|
908
907
|
return Array.isArray(item) && item.length > 0 && _o.has(item[0], "sys");
|
|
909
908
|
}
|
|
910
909
|
function mergeSort(arr, compareFn) {
|
|
911
|
-
if (arr.length < 2)
|
|
912
|
-
|
|
913
|
-
if (compareFn == null)
|
|
914
|
-
compareFn = defaultCompare;
|
|
910
|
+
if (arr.length < 2) return arr;
|
|
911
|
+
if (compareFn == null) compareFn = defaultCompare;
|
|
915
912
|
const mid = ~~(arr.length / 2);
|
|
916
913
|
const left = mergeSort(arr.slice(0, mid), compareFn);
|
|
917
914
|
const right = mergeSort(arr.slice(mid, arr.length), compareFn);
|
|
@@ -929,10 +926,8 @@ function merge(left, right, compareFn) {
|
|
|
929
926
|
result.push(right.shift());
|
|
930
927
|
}
|
|
931
928
|
}
|
|
932
|
-
if (left.length)
|
|
933
|
-
|
|
934
|
-
if (right.length)
|
|
935
|
-
result.push(...right);
|
|
929
|
+
if (left.length) result.push(...left);
|
|
930
|
+
if (right.length) result.push(...right);
|
|
936
931
|
return result;
|
|
937
932
|
}
|
|
938
933
|
|
package/dist/usageParams.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-import",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.63",
|
|
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",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dts": true
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@discoveryjs/json-ext": "^0.
|
|
63
|
+
"@discoveryjs/json-ext": "^0.6.3",
|
|
64
64
|
"bluebird": "^3.7.2",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
66
66
|
"contentful-batch-libs": "^9.6.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"yargs": "^17.7.2"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@types/jest": "^29.5.
|
|
81
|
-
"@types/lodash": "^4.17.
|
|
80
|
+
"@types/jest": "^29.5.14",
|
|
81
|
+
"@types/lodash": "^4.17.12",
|
|
82
82
|
"@types/node": "^20.6.3",
|
|
83
83
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
84
84
|
"@typescript-eslint/parser": "^6.21.0",
|
|
@@ -86,17 +86,17 @@
|
|
|
86
86
|
"babel-plugin-add-module-exports": "^1.0.2",
|
|
87
87
|
"babel-preset-env": "^1.7.0",
|
|
88
88
|
"cz-conventional-changelog": "^3.1.0",
|
|
89
|
-
"eslint-plugin-import": "^2.
|
|
90
|
-
"eslint-plugin-jest": "^28.
|
|
89
|
+
"eslint-plugin-import": "^2.31.0",
|
|
90
|
+
"eslint-plugin-jest": "^28.8.3",
|
|
91
91
|
"eslint-plugin-node": "^11.1.0",
|
|
92
92
|
"eslint-plugin-promise": "^6.1.1",
|
|
93
93
|
"eslint-plugin-standard": "^5.0.0",
|
|
94
94
|
"jest": "^29.7.0",
|
|
95
95
|
"rimraf": "^5.0.7",
|
|
96
|
-
"semantic-release": "^
|
|
96
|
+
"semantic-release": "^24.1.3",
|
|
97
97
|
"ts-jest": "^29.1.3",
|
|
98
|
-
"tsup": "^8.0
|
|
99
|
-
"typescript": "^5.
|
|
98
|
+
"tsup": "^8.3.0",
|
|
99
|
+
"typescript": "^5.6.3"
|
|
100
100
|
},
|
|
101
101
|
"files": [
|
|
102
102
|
"bin",
|