contentful-import 10.2.0 → 10.2.2

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.
@@ -70,4 +70,4 @@ declare const _default: {
70
70
  $0: string;
71
71
  }>;
72
72
 
73
- export { _default as default };
73
+ export = _default;
@@ -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;
@@ -104,3 +109,4 @@ var usageParams_default = import_yargs.default.version(version || "Version only
104
109
  type: "boolean",
105
110
  default: true
106
111
  }).config("config", "An optional configuration JSON file containing all the options for a single run").argv;
112
+ module.exports = module.exports.default || module.exports;
@@ -1,6 +1,7 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
1
2
  import {
2
3
  version
3
- } from "./chunk-GA5GJRGP.mjs";
4
+ } from "./chunk-BWBJ5DCQ.mjs";
4
5
 
5
6
  // lib/usageParams.ts
6
7
  import yargs from "yargs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-import",
3
- "version": "10.2.0",
3
+ "version": "10.2.2",
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": "^2.30.0",
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.24",
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",
@@ -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
- };