contentful-import 9.4.101 → 9.4.102
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 +20 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -215,6 +215,8 @@ Path to a JSON file with the configuration options. This file will be merged wit
|
|
|
215
215
|
|
|
216
216
|
## :rescue_worker_helmet: Troubleshooting
|
|
217
217
|
|
|
218
|
+
### Proxy
|
|
219
|
+
|
|
218
220
|
Unable to connect to Contentful through your Proxy? Try to set the `rawProxy` option to `true`.
|
|
219
221
|
|
|
220
222
|
```javascript
|
|
@@ -225,6 +227,24 @@ contentfulImport({
|
|
|
225
227
|
})
|
|
226
228
|
```
|
|
227
229
|
|
|
230
|
+
### Embargoed Assets
|
|
231
|
+
|
|
232
|
+
If a space is configured to use the [embargoed assets feature](https://www.contentful.com/help/media/embargoed-assets/), certain options will need to be set to use the export/import tooling. When exporting content ([using `contentful-export`](https://github.com/contentful/contentful-export)), the `downloadAssets` option must be set to `true`. This will download the asset files to your local machine. Then, when importing content, the `uploadAssets` option must be set to `true` and the `assetsDirectory` must be set to the directory that contains all of the exported asset folders.
|
|
233
|
+
|
|
234
|
+
```javascript
|
|
235
|
+
const contentfulImport = require('contentful-import')
|
|
236
|
+
|
|
237
|
+
const options = {
|
|
238
|
+
contentFile: '/path/to/result/of/contentful-export.json',
|
|
239
|
+
spaceId: '<space_id>',
|
|
240
|
+
managementToken: '<content_management_api_key>',
|
|
241
|
+
uploadAssets: true,
|
|
242
|
+
assetsDirectory: '/path/to/exported/assets.json'
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
contentfulImport(options)
|
|
246
|
+
```
|
|
247
|
+
|
|
228
248
|
## :card_file_box: Expected input data structure
|
|
229
249
|
|
|
230
250
|
The data to import should be structured like this:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-import",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.102",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"bluebird": "^3.7.2",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
66
66
|
"contentful-batch-libs": "^9.6.0",
|
|
67
|
-
"contentful-management": "^11.
|
|
67
|
+
"contentful-management": "^11.53.0",
|
|
68
68
|
"date-fns": "^2.30.0",
|
|
69
69
|
"eslint": "^8.57.1",
|
|
70
70
|
"eslint-config-standard": "^17.1.0",
|
|
@@ -78,21 +78,21 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/jest": "^29.5.14",
|
|
81
|
-
"@types/lodash": "^4.17.
|
|
81
|
+
"@types/lodash": "^4.17.17",
|
|
82
82
|
"@types/node": "^20.6.3",
|
|
83
83
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
84
84
|
"@typescript-eslint/parser": "^6.21.0",
|
|
85
85
|
"cz-conventional-changelog": "^3.1.0",
|
|
86
86
|
"eslint-plugin-import": "^2.31.0",
|
|
87
|
-
"eslint-plugin-jest": "^28.
|
|
87
|
+
"eslint-plugin-jest": "^28.13.3",
|
|
88
88
|
"eslint-plugin-node": "^11.1.0",
|
|
89
89
|
"eslint-plugin-promise": "^6.1.1",
|
|
90
90
|
"eslint-plugin-standard": "^5.0.0",
|
|
91
91
|
"jest": "^29.7.0",
|
|
92
92
|
"rimraf": "^5.0.7",
|
|
93
|
-
"semantic-release": "^24.2.
|
|
94
|
-
"ts-jest": "^29.
|
|
95
|
-
"tsup": "^8.
|
|
93
|
+
"semantic-release": "^24.2.5",
|
|
94
|
+
"ts-jest": "^29.4.0",
|
|
95
|
+
"tsup": "^8.5.0",
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
97
|
"nixt": "^0.5.1"
|
|
98
98
|
},
|