contentful-export 9.0.0-exo.3 → 9.0.0

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/dist/index.js CHANGED
@@ -79,6 +79,7 @@ function runContentfulExport(params) {
79
79
  skipContentModel: options.skipContentModel,
80
80
  skipEditorInterfaces: options.skipEditorInterfaces,
81
81
  skipContent: options.skipContent,
82
+ skipAssets: options.skipAssets,
82
83
  skipWebhooks: options.skipWebhooks,
83
84
  skipRoles: options.skipRoles,
84
85
  skipTags: options.skipTags,
@@ -116,7 +117,9 @@ function runContentfulExport(params) {
116
117
  task: ctx => {
117
118
  return _bfj.default.write(options.logFilePath, ctx.data, {
118
119
  circular: 'ignore',
119
- space: 2
120
+ space: 2,
121
+ bufferLength: 1024,
122
+ yieldRate: 16384
120
123
  });
121
124
  }
122
125
  }]);
@@ -26,6 +26,7 @@ function parseOptions(params) {
26
26
  skipContentModel: false,
27
27
  skipEditorInterfaces: false,
28
28
  skipContent: false,
29
+ skipAssets: false,
29
30
  skipWebhooks: false,
30
31
  skipTags: false,
31
32
  stripTags: false,
@@ -24,6 +24,7 @@ function getFullSourceSpace({
24
24
  environmentId = 'master',
25
25
  skipContentModel,
26
26
  skipContent,
27
+ skipAssets,
27
28
  skipWebhooks,
28
29
  skipRoles,
29
30
  skipEditorInterfaces,
@@ -116,7 +117,7 @@ function getFullSourceSpace({
116
117
  ctx.data.assets = items;
117
118
  });
118
119
  }),
119
- skip: () => skipContent
120
+ skip: () => skipContent || skipAssets
120
121
  }, {
121
122
  title: 'Fetching locales data',
122
123
  task: (0, _contentfulBatchLibs.wrapTask)(ctx => {
@@ -41,6 +41,10 @@ var _default = exports.default = _yargs.default.version(_package.default.version
41
41
  describe: 'Skip exporting assets and entries',
42
42
  type: 'boolean',
43
43
  default: false
44
+ }).option('skip-assets', {
45
+ describe: 'Skip exporting assets',
46
+ type: 'boolean',
47
+ default: false
44
48
  }).option('skip-roles', {
45
49
  describe: 'Skip exporting roles and permissions',
46
50
  type: 'boolean',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "9.0.0-exo.3",
3
+ "version": "9.0.0",
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",
@@ -144,6 +144,7 @@
144
144
  ]
145
145
  },
146
146
  "overrides": {
147
- "cross-spawn": "^7.0.6"
147
+ "cross-spawn": "^7.0.6",
148
+ "undici": "^8.0.0"
148
149
  }
149
150
  }
package/types.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface Options {
21
21
  queryAssets?: string[];
22
22
  rawProxy?: boolean;
23
23
  saveFile?: boolean;
24
+ skipAssets?: boolean;
24
25
  skipContent?: boolean;
25
26
  skipContentModel?: boolean;
26
27
  skipEditorInterfaces?: boolean;