@strapi/data-transfer 4.14.4 → 4.15.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.
Files changed (271) hide show
  1. package/dist/commands/commander.d.ts +1 -0
  2. package/dist/commands/commander.d.ts.map +1 -0
  3. package/dist/commands/data-transfer.d.ts +2 -1
  4. package/dist/commands/data-transfer.d.ts.map +1 -0
  5. package/dist/commands/export/action.d.ts +1 -0
  6. package/dist/commands/export/action.d.ts.map +1 -0
  7. package/dist/commands/export/command.d.ts +1 -0
  8. package/dist/commands/export/command.d.ts.map +1 -0
  9. package/dist/commands/helpers.d.ts +1 -0
  10. package/dist/commands/helpers.d.ts.map +1 -0
  11. package/dist/commands/import/action.d.ts +1 -0
  12. package/dist/commands/import/action.d.ts.map +1 -0
  13. package/dist/commands/import/command.d.ts +1 -0
  14. package/dist/commands/import/command.d.ts.map +1 -0
  15. package/dist/commands/index.d.ts +1 -0
  16. package/dist/commands/index.d.ts.map +1 -0
  17. package/dist/commands/transfer/action.d.ts +1 -0
  18. package/dist/commands/transfer/action.d.ts.map +1 -0
  19. package/dist/commands/transfer/command.d.ts +1 -0
  20. package/dist/commands/transfer/command.d.ts.map +1 -0
  21. package/dist/engine/diagnostic.d.ts +1 -0
  22. package/dist/engine/diagnostic.d.ts.map +1 -0
  23. package/dist/engine/errors.d.ts +1 -0
  24. package/dist/engine/errors.d.ts.map +1 -0
  25. package/dist/engine/index.d.ts +1 -0
  26. package/dist/engine/index.d.ts.map +1 -0
  27. package/dist/engine/validation/index.d.ts +1 -0
  28. package/dist/engine/validation/index.d.ts.map +1 -0
  29. package/dist/engine/validation/provider.d.ts +1 -0
  30. package/dist/engine/validation/provider.d.ts.map +1 -0
  31. package/dist/engine/validation/schemas/index.d.ts +1 -0
  32. package/dist/engine/validation/schemas/index.d.ts.map +1 -0
  33. package/dist/errors/base.d.ts +1 -0
  34. package/dist/errors/base.d.ts.map +1 -0
  35. package/dist/errors/constants.d.ts +1 -0
  36. package/dist/errors/constants.d.ts.map +1 -0
  37. package/dist/errors/index.d.ts +1 -0
  38. package/dist/errors/index.d.ts.map +1 -0
  39. package/dist/errors/providers.d.ts +1 -0
  40. package/dist/errors/providers.d.ts.map +1 -0
  41. package/dist/file/index.d.ts +1 -0
  42. package/dist/file/index.d.ts.map +1 -0
  43. package/dist/file/providers/destination/index.d.ts +1 -0
  44. package/dist/file/providers/destination/index.d.ts.map +1 -0
  45. package/dist/file/providers/destination/utils.d.ts +1 -0
  46. package/dist/file/providers/destination/utils.d.ts.map +1 -0
  47. package/dist/file/providers/index.d.ts +1 -0
  48. package/dist/file/providers/index.d.ts.map +1 -0
  49. package/dist/file/providers/source/index.d.ts +1 -0
  50. package/dist/file/providers/source/index.d.ts.map +1 -0
  51. package/dist/file/providers/source/utils.d.ts +1 -0
  52. package/dist/file/providers/source/utils.d.ts.map +1 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.js +5242 -30
  56. package/dist/index.js.map +1 -1
  57. package/dist/index.mjs +5213 -0
  58. package/dist/index.mjs.map +1 -0
  59. package/dist/strapi/index.d.ts +1 -0
  60. package/dist/strapi/index.d.ts.map +1 -0
  61. package/dist/strapi/providers/index.d.ts +1 -0
  62. package/dist/strapi/providers/index.d.ts.map +1 -0
  63. package/dist/strapi/providers/local-destination/index.d.ts +1 -0
  64. package/dist/strapi/providers/local-destination/index.d.ts.map +1 -0
  65. package/dist/strapi/providers/local-destination/strategies/index.d.ts +1 -0
  66. package/dist/strapi/providers/local-destination/strategies/index.d.ts.map +1 -0
  67. package/dist/strapi/providers/local-destination/strategies/restore/configuration.d.ts +1 -0
  68. package/dist/strapi/providers/local-destination/strategies/restore/configuration.d.ts.map +1 -0
  69. package/dist/strapi/providers/local-destination/strategies/restore/entities.d.ts +1 -0
  70. package/dist/strapi/providers/local-destination/strategies/restore/entities.d.ts.map +1 -0
  71. package/dist/strapi/providers/local-destination/strategies/restore/index.d.ts +1 -0
  72. package/dist/strapi/providers/local-destination/strategies/restore/index.d.ts.map +1 -0
  73. package/dist/strapi/providers/local-destination/strategies/restore/links.d.ts +1 -0
  74. package/dist/strapi/providers/local-destination/strategies/restore/links.d.ts.map +1 -0
  75. package/dist/strapi/providers/local-source/assets.d.ts +1 -0
  76. package/dist/strapi/providers/local-source/assets.d.ts.map +1 -0
  77. package/dist/strapi/providers/local-source/configuration.d.ts +1 -0
  78. package/dist/strapi/providers/local-source/configuration.d.ts.map +1 -0
  79. package/dist/strapi/providers/local-source/entities.d.ts +1 -0
  80. package/dist/strapi/providers/local-source/entities.d.ts.map +1 -0
  81. package/dist/strapi/providers/local-source/index.d.ts +1 -0
  82. package/dist/strapi/providers/local-source/index.d.ts.map +1 -0
  83. package/dist/strapi/providers/local-source/links.d.ts +1 -0
  84. package/dist/strapi/providers/local-source/links.d.ts.map +1 -0
  85. package/dist/strapi/providers/remote-destination/index.d.ts +1 -0
  86. package/dist/strapi/providers/remote-destination/index.d.ts.map +1 -0
  87. package/dist/strapi/providers/remote-source/index.d.ts +1 -0
  88. package/dist/strapi/providers/remote-source/index.d.ts.map +1 -0
  89. package/dist/strapi/providers/utils.d.ts +1 -0
  90. package/dist/strapi/providers/utils.d.ts.map +1 -0
  91. package/dist/strapi/queries/entity.d.ts +1 -0
  92. package/dist/strapi/queries/entity.d.ts.map +1 -0
  93. package/dist/strapi/queries/index.d.ts +1 -0
  94. package/dist/strapi/queries/index.d.ts.map +1 -0
  95. package/dist/strapi/queries/link.d.ts +1 -0
  96. package/dist/strapi/queries/link.d.ts.map +1 -0
  97. package/dist/strapi/remote/constants.d.ts +1 -0
  98. package/dist/strapi/remote/constants.d.ts.map +1 -0
  99. package/dist/strapi/remote/flows/default.d.ts +1 -0
  100. package/dist/strapi/remote/flows/default.d.ts.map +1 -0
  101. package/dist/strapi/remote/flows/index.d.ts +1 -0
  102. package/dist/strapi/remote/flows/index.d.ts.map +1 -0
  103. package/dist/strapi/remote/handlers/abstract.d.ts +1 -0
  104. package/dist/strapi/remote/handlers/abstract.d.ts.map +1 -0
  105. package/dist/strapi/remote/handlers/constants.d.ts +1 -0
  106. package/dist/strapi/remote/handlers/constants.d.ts.map +1 -0
  107. package/dist/strapi/remote/handlers/index.d.ts +4 -3
  108. package/dist/strapi/remote/handlers/index.d.ts.map +1 -0
  109. package/dist/strapi/remote/handlers/pull.d.ts +1 -0
  110. package/dist/strapi/remote/handlers/pull.d.ts.map +1 -0
  111. package/dist/strapi/remote/handlers/push.d.ts +1 -0
  112. package/dist/strapi/remote/handlers/push.d.ts.map +1 -0
  113. package/dist/strapi/remote/handlers/utils.d.ts +1 -0
  114. package/dist/strapi/remote/handlers/utils.d.ts.map +1 -0
  115. package/dist/strapi/remote/index.d.ts +1 -0
  116. package/dist/strapi/remote/index.d.ts.map +1 -0
  117. package/dist/utils/components.d.ts +1 -0
  118. package/dist/utils/components.d.ts.map +1 -0
  119. package/dist/utils/encryption/decrypt.d.ts +1 -0
  120. package/dist/utils/encryption/decrypt.d.ts.map +1 -0
  121. package/dist/utils/encryption/encrypt.d.ts +1 -0
  122. package/dist/utils/encryption/encrypt.d.ts.map +1 -0
  123. package/dist/utils/encryption/index.d.ts +1 -0
  124. package/dist/utils/encryption/index.d.ts.map +1 -0
  125. package/dist/utils/index.d.ts +1 -0
  126. package/dist/utils/index.d.ts.map +1 -0
  127. package/dist/utils/json.d.ts +1 -0
  128. package/dist/utils/json.d.ts.map +1 -0
  129. package/dist/utils/middleware.d.ts +1 -0
  130. package/dist/utils/middleware.d.ts.map +1 -0
  131. package/dist/utils/providers.d.ts +1 -0
  132. package/dist/utils/providers.d.ts.map +1 -0
  133. package/dist/utils/schema.d.ts +1 -0
  134. package/dist/utils/schema.d.ts.map +1 -0
  135. package/dist/utils/stream.d.ts +1 -0
  136. package/dist/utils/stream.d.ts.map +1 -0
  137. package/dist/utils/transaction.d.ts +1 -0
  138. package/dist/utils/transaction.d.ts.map +1 -0
  139. package/package.json +19 -17
  140. package/dist/commands/commander.js +0 -138
  141. package/dist/commands/commander.js.map +0 -1
  142. package/dist/commands/data-transfer.js +0 -359
  143. package/dist/commands/data-transfer.js.map +0 -1
  144. package/dist/commands/export/action.js +0 -156
  145. package/dist/commands/export/action.js.map +0 -1
  146. package/dist/commands/export/command.js +0 -30
  147. package/dist/commands/export/command.js.map +0 -1
  148. package/dist/commands/helpers.js +0 -87
  149. package/dist/commands/helpers.js.map +0 -1
  150. package/dist/commands/import/action.js +0 -139
  151. package/dist/commands/import/action.js.map +0 -1
  152. package/dist/commands/import/command.js +0 -75
  153. package/dist/commands/import/command.js.map +0 -1
  154. package/dist/commands/index.js +0 -13
  155. package/dist/commands/index.js.map +0 -1
  156. package/dist/commands/transfer/action.js +0 -161
  157. package/dist/commands/transfer/action.js.map +0 -1
  158. package/dist/commands/transfer/command.js +0 -69
  159. package/dist/commands/transfer/command.js.map +0 -1
  160. package/dist/engine/diagnostic.js +0 -50
  161. package/dist/engine/diagnostic.js.map +0 -1
  162. package/dist/engine/errors.js +0 -29
  163. package/dist/engine/errors.js.map +0 -1
  164. package/dist/engine/index.js +0 -708
  165. package/dist/engine/index.js.map +0 -1
  166. package/dist/engine/validation/index.js +0 -19
  167. package/dist/engine/validation/index.js.map +0 -1
  168. package/dist/engine/validation/provider.js +0 -18
  169. package/dist/engine/validation/provider.js.map +0 -1
  170. package/dist/engine/validation/schemas/index.js +0 -70
  171. package/dist/engine/validation/schemas/index.js.map +0 -1
  172. package/dist/errors/base.js +0 -16
  173. package/dist/errors/base.js.map +0 -1
  174. package/dist/errors/constants.js +0 -9
  175. package/dist/errors/constants.js.map +0 -1
  176. package/dist/errors/index.js +0 -19
  177. package/dist/errors/index.js.map +0 -1
  178. package/dist/errors/providers.js +0 -32
  179. package/dist/errors/providers.js.map +0 -1
  180. package/dist/file/index.js +0 -28
  181. package/dist/file/index.js.map +0 -1
  182. package/dist/file/providers/destination/index.js +0 -177
  183. package/dist/file/providers/destination/index.js.map +0 -1
  184. package/dist/file/providers/destination/utils.js +0 -62
  185. package/dist/file/providers/destination/utils.js.map +0 -1
  186. package/dist/file/providers/index.js +0 -19
  187. package/dist/file/providers/index.js.map +0 -1
  188. package/dist/file/providers/source/index.js +0 -234
  189. package/dist/file/providers/source/index.js.map +0 -1
  190. package/dist/file/providers/source/utils.js +0 -62
  191. package/dist/file/providers/source/utils.js.map +0 -1
  192. package/dist/strapi/index.js +0 -30
  193. package/dist/strapi/index.js.map +0 -1
  194. package/dist/strapi/providers/index.js +0 -23
  195. package/dist/strapi/providers/index.js.map +0 -1
  196. package/dist/strapi/providers/local-destination/index.js +0 -360
  197. package/dist/strapi/providers/local-destination/index.js.map +0 -1
  198. package/dist/strapi/providers/local-destination/strategies/index.js +0 -28
  199. package/dist/strapi/providers/local-destination/strategies/index.js.map +0 -1
  200. package/dist/strapi/providers/local-destination/strategies/restore/configuration.js +0 -51
  201. package/dist/strapi/providers/local-destination/strategies/restore/configuration.js.map +0 -1
  202. package/dist/strapi/providers/local-destination/strategies/restore/entities.js +0 -106
  203. package/dist/strapi/providers/local-destination/strategies/restore/entities.js.map +0 -1
  204. package/dist/strapi/providers/local-destination/strategies/restore/index.js +0 -109
  205. package/dist/strapi/providers/local-destination/strategies/restore/index.js.map +0 -1
  206. package/dist/strapi/providers/local-destination/strategies/restore/links.js +0 -32
  207. package/dist/strapi/providers/local-destination/strategies/restore/links.js.map +0 -1
  208. package/dist/strapi/providers/local-source/assets.js +0 -102
  209. package/dist/strapi/providers/local-source/assets.js.map +0 -1
  210. package/dist/strapi/providers/local-source/configuration.js +0 -36
  211. package/dist/strapi/providers/local-source/configuration.js.map +0 -1
  212. package/dist/strapi/providers/local-source/entities.js +0 -85
  213. package/dist/strapi/providers/local-source/entities.js.map +0 -1
  214. package/dist/strapi/providers/local-source/index.js +0 -100
  215. package/dist/strapi/providers/local-source/index.js.map +0 -1
  216. package/dist/strapi/providers/local-source/links.js +0 -23
  217. package/dist/strapi/providers/local-source/links.js.map +0 -1
  218. package/dist/strapi/providers/remote-destination/index.js +0 -270
  219. package/dist/strapi/providers/remote-destination/index.js.map +0 -1
  220. package/dist/strapi/providers/remote-source/index.js +0 -239
  221. package/dist/strapi/providers/remote-source/index.js.map +0 -1
  222. package/dist/strapi/providers/utils.js +0 -138
  223. package/dist/strapi/providers/utils.js.map +0 -1
  224. package/dist/strapi/queries/entity.js +0 -130
  225. package/dist/strapi/queries/entity.js.map +0 -1
  226. package/dist/strapi/queries/index.js +0 -29
  227. package/dist/strapi/queries/index.js.map +0 -1
  228. package/dist/strapi/queries/link.js +0 -224
  229. package/dist/strapi/queries/link.js.map +0 -1
  230. package/dist/strapi/remote/constants.js +0 -6
  231. package/dist/strapi/remote/constants.js.map +0 -1
  232. package/dist/strapi/remote/flows/default.js +0 -41
  233. package/dist/strapi/remote/flows/default.js.map +0 -1
  234. package/dist/strapi/remote/flows/index.js +0 -59
  235. package/dist/strapi/remote/flows/index.js.map +0 -1
  236. package/dist/strapi/remote/handlers/abstract.js +0 -3
  237. package/dist/strapi/remote/handlers/abstract.js.map +0 -1
  238. package/dist/strapi/remote/handlers/constants.js +0 -5
  239. package/dist/strapi/remote/handlers/constants.js.map +0 -1
  240. package/dist/strapi/remote/handlers/index.js +0 -10
  241. package/dist/strapi/remote/handlers/index.js.map +0 -1
  242. package/dist/strapi/remote/handlers/pull.js +0 -243
  243. package/dist/strapi/remote/handlers/pull.js.map +0 -1
  244. package/dist/strapi/remote/handlers/push.js +0 -311
  245. package/dist/strapi/remote/handlers/push.js.map +0 -1
  246. package/dist/strapi/remote/handlers/utils.js +0 -298
  247. package/dist/strapi/remote/handlers/utils.js.map +0 -1
  248. package/dist/strapi/remote/index.js +0 -29
  249. package/dist/strapi/remote/index.js.map +0 -1
  250. package/dist/utils/components.js +0 -381
  251. package/dist/utils/components.js.map +0 -1
  252. package/dist/utils/encryption/decrypt.js +0 -47
  253. package/dist/utils/encryption/decrypt.js.map +0 -1
  254. package/dist/utils/encryption/encrypt.js +0 -47
  255. package/dist/utils/encryption/encrypt.js.map +0 -1
  256. package/dist/utils/encryption/index.js +0 -19
  257. package/dist/utils/encryption/index.js.map +0 -1
  258. package/dist/utils/index.js +0 -33
  259. package/dist/utils/index.js.map +0 -1
  260. package/dist/utils/json.js +0 -68
  261. package/dist/utils/json.js.map +0 -1
  262. package/dist/utils/middleware.js +0 -14
  263. package/dist/utils/middleware.js.map +0 -1
  264. package/dist/utils/providers.js +0 -11
  265. package/dist/utils/providers.js.map +0 -1
  266. package/dist/utils/schema.js +0 -29
  267. package/dist/utils/schema.js.map +0 -1
  268. package/dist/utils/stream.js +0 -59
  269. package/dist/utils/stream.js.map +0 -1
  270. package/dist/utils/transaction.js +0 -88
  271. package/dist/utils/transaction.js.map +0 -1
@@ -1,234 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createLocalFileSourceProvider = void 0;
7
- const zlib_1 = __importDefault(require("zlib"));
8
- const path_1 = __importDefault(require("path"));
9
- const stream_1 = require("stream");
10
- const fs_extra_1 = __importDefault(require("fs-extra"));
11
- const tar_1 = __importDefault(require("tar"));
12
- const fp_1 = require("lodash/fp");
13
- const stream_chain_1 = require("stream-chain");
14
- const Parser_1 = require("stream-json/jsonl/Parser");
15
- const encryption_1 = require("../../../utils/encryption");
16
- const stream_2 = require("../../../utils/stream");
17
- const providers_1 = require("../../../errors/providers");
18
- const utils_1 = require("./utils");
19
- /**
20
- * Constant for the metadata file path
21
- */
22
- const METADATA_FILE_PATH = 'metadata.json';
23
- const createLocalFileSourceProvider = (options) => {
24
- return new LocalFileSourceProvider(options);
25
- };
26
- exports.createLocalFileSourceProvider = createLocalFileSourceProvider;
27
- class LocalFileSourceProvider {
28
- type = 'source';
29
- name = 'source::local-file';
30
- options;
31
- #metadata;
32
- constructor(options) {
33
- this.options = options;
34
- const { encryption } = this.options;
35
- if (encryption.enabled && encryption.key === undefined) {
36
- throw new Error('Missing encryption key');
37
- }
38
- }
39
- /**
40
- * Pre flight checks regarding the provided options, making sure that the file can be opened (decrypted, decompressed), etc.
41
- */
42
- async bootstrap() {
43
- const { path: filePath } = this.options.file;
44
- try {
45
- // Read the metadata to ensure the file can be parsed
46
- await this.#loadMetadata();
47
- // TODO: we might also need to read the schema.jsonl files & implements a custom stream-check
48
- }
49
- catch (e) {
50
- if (this.options?.encryption?.enabled) {
51
- throw new providers_1.ProviderInitializationError(`Key is incorrect or the file '${filePath}' is not a valid Strapi data file.`);
52
- }
53
- throw new providers_1.ProviderInitializationError(`File '${filePath}' is not a valid Strapi data file.`);
54
- }
55
- if (!this.#metadata) {
56
- throw new providers_1.ProviderInitializationError('Could not load metadata from Strapi data file.');
57
- }
58
- }
59
- async #loadMetadata() {
60
- const backupStream = this.#getBackupStream();
61
- this.#metadata = await this.#parseJSONFile(backupStream, METADATA_FILE_PATH);
62
- }
63
- async #loadAssetMetadata(path) {
64
- const backupStream = this.#getBackupStream();
65
- return this.#parseJSONFile(backupStream, path);
66
- }
67
- async getMetadata() {
68
- if (!this.#metadata) {
69
- await this.#loadMetadata();
70
- }
71
- return this.#metadata ?? null;
72
- }
73
- async getSchemas() {
74
- const schemas = await (0, stream_2.collect)(this.createSchemasReadStream());
75
- if ((0, fp_1.isEmpty)(schemas)) {
76
- throw new providers_1.ProviderInitializationError('Could not load schemas from Strapi data file.');
77
- }
78
- return (0, fp_1.keyBy)('uid', schemas);
79
- }
80
- createEntitiesReadStream() {
81
- return this.#streamJsonlDirectory('entities');
82
- }
83
- createSchemasReadStream() {
84
- return this.#streamJsonlDirectory('schemas');
85
- }
86
- createLinksReadStream() {
87
- return this.#streamJsonlDirectory('links');
88
- }
89
- createConfigurationReadStream() {
90
- // NOTE: TBD
91
- return this.#streamJsonlDirectory('configuration');
92
- }
93
- createAssetsReadStream() {
94
- const inStream = this.#getBackupStream();
95
- const outStream = new stream_1.PassThrough({ objectMode: true });
96
- const loadAssetMetadata = this.#loadAssetMetadata.bind(this);
97
- (0, stream_1.pipeline)([
98
- inStream,
99
- new tar_1.default.Parse({
100
- // find only files in the assets/uploads folder
101
- filter(filePath, entry) {
102
- if (entry.type !== 'File') {
103
- return false;
104
- }
105
- return (0, utils_1.isFilePathInDirname)('assets/uploads', filePath);
106
- },
107
- async onentry(entry) {
108
- const { path: filePath, size = 0 } = entry;
109
- const normalizedPath = (0, utils_1.unknownPathToPosix)(filePath);
110
- const file = path_1.default.basename(normalizedPath);
111
- let metadata;
112
- try {
113
- metadata = await loadAssetMetadata(`assets/metadata/${file}.json`);
114
- }
115
- catch (error) {
116
- console.warn(` Failed to read metadata for ${file}, Strapi will try to fix this issue automatically`);
117
- }
118
- const asset = {
119
- metadata,
120
- filename: file,
121
- filepath: normalizedPath,
122
- stats: { size },
123
- stream: entry,
124
- };
125
- outStream.write(asset);
126
- },
127
- }),
128
- ], () => outStream.end());
129
- return outStream;
130
- }
131
- #getBackupStream() {
132
- const { file, encryption, compression } = this.options;
133
- const streams = [];
134
- try {
135
- streams.push(fs_extra_1.default.createReadStream(file.path));
136
- }
137
- catch (e) {
138
- throw new Error(`Could not read backup file path provided at "${this.options.file.path}"`);
139
- }
140
- if (encryption.enabled && encryption.key) {
141
- streams.push((0, encryption_1.createDecryptionCipher)(encryption.key));
142
- }
143
- if (compression.enabled) {
144
- streams.push(zlib_1.default.createGunzip());
145
- }
146
- return (0, stream_chain_1.chain)(streams);
147
- }
148
- // `directory` must be posix formatted path
149
- #streamJsonlDirectory(directory) {
150
- const inStream = this.#getBackupStream();
151
- const outStream = new stream_1.PassThrough({ objectMode: true });
152
- (0, stream_1.pipeline)([
153
- inStream,
154
- new tar_1.default.Parse({
155
- filter(filePath, entry) {
156
- if (entry.type !== 'File') {
157
- return false;
158
- }
159
- return (0, utils_1.isFilePathInDirname)(directory, filePath);
160
- },
161
- async onentry(entry) {
162
- const transforms = [
163
- // JSONL parser to read the data chunks one by one (line by line)
164
- (0, Parser_1.parser)({
165
- checkErrors: true,
166
- }),
167
- // The JSONL parser returns each line as key/value
168
- (line) => line.value,
169
- ];
170
- const stream = entry.pipe((0, stream_chain_1.chain)(transforms));
171
- try {
172
- for await (const chunk of stream) {
173
- outStream.write(chunk);
174
- }
175
- }
176
- catch (e) {
177
- outStream.destroy(new providers_1.ProviderTransferError(`Error parsing backup files from backup file ${entry.path}: ${e.message}`, {
178
- details: {
179
- error: e,
180
- },
181
- }));
182
- }
183
- },
184
- }),
185
- ], async () => {
186
- // Manually send the 'end' event to the out stream
187
- // once every entry has finished streaming its content
188
- outStream.end();
189
- });
190
- return outStream;
191
- }
192
- // For collecting an entire JSON file then parsing it, not for streaming JSONL
193
- async #parseJSONFile(fileStream, filePath) {
194
- return new Promise((resolve, reject) => {
195
- (0, stream_1.pipeline)([
196
- fileStream,
197
- // Custom backup archive parsing
198
- new tar_1.default.Parse({
199
- /**
200
- * Filter the parsed entries to only keep the one that matches the given filepath
201
- */
202
- filter(entryPath, entry) {
203
- if (entry.type !== 'File') {
204
- return false;
205
- }
206
- return (0, utils_1.isPathEquivalent)(entryPath, filePath);
207
- },
208
- async onentry(entry) {
209
- // Collect all the content of the entry file
210
- const content = await entry.collect();
211
- try {
212
- // Parse from buffer array to string to JSON
213
- const parsedContent = JSON.parse(Buffer.concat(content).toString());
214
- // Resolve the Promise with the parsed content
215
- resolve(parsedContent);
216
- }
217
- catch (e) {
218
- reject(e);
219
- }
220
- finally {
221
- // Cleanup (close the stream associated to the entry)
222
- entry.destroy();
223
- }
224
- },
225
- }),
226
- ], () => {
227
- // If the promise hasn't been resolved and we've parsed all
228
- // the archive entries, then the file doesn't exist
229
- reject(new Error(`File "${filePath}" not found`));
230
- });
231
- });
232
- }
233
- }
234
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/file/providers/source/index.ts"],"names":[],"mappings":";;;;;;AAEA,gDAAuB;AACvB,gDAAwB;AACxB,mCAA+C;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AAS,EAAE,QAAQ,CAAC,CAAC;oBAC/C,CAAC;oBAED,KAAK,CAAC,OAAO,CAAC,KAAK;wBACjB,4CAA4C;wBAC5C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;wBAEtC,IAAI;4BACF,4CAA4C;4BAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;4BAEpE,8CAA8C;4BAC9C,OAAO,CAAC,aAAa,CAAC,CAAC;yBACxB;wBAAC,OAAO,CAAC,EAAE;4BACV,MAAM,CAAC,CAAC,CAAC,CAAC;yBACX;gCAAS;4BACR,qDAAqD;4BACrD,KAAK,CAAC,OAAO,EAAE,CAAC;yBACjB;oBACH,CAAC;iBACF,CAAC;aACH,EACD,GAAG,EAAE;gBACH,2DAA2D;gBAC3D,mDAAmD;gBACnD,MAAM,CAAC,IAAI,KAAK,CAAC,SAAS,QAAQ,aAAa,CAAC,CAAC,CAAC;YACpD,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.unknownPathToPosix = exports.isPathEquivalent = exports.isFilePathInDirname = void 0;
7
- const path_1 = __importDefault(require("path"));
8
- /**
9
- * Note: in versions of the transfer engine <=4.9.0, exports were generated with windows paths
10
- * on Windows systems, and posix paths on posix systems.
11
- *
12
- * We now store all paths as posix, but need to leave a separator conversion for legacy purposes, and to
13
- * support manually-created tar files coming from Windows systems (ie, if a user creates a
14
- * backup file with a windows tar tool rather than using the `export` command)
15
- *
16
- * Because of this, export/import files may never contain files with a forward slash in the name, even escaped
17
- *
18
- * */
19
- /**
20
- * Check if the directory of a given filePath (which can be either posix or win32) resolves to the same as the given posix-format path posixDirName
21
- * We must be able to assume the first argument is a path to a directory and the second is a path to a file, otherwise path.dirname will interpret a path without any slashes as the filename
22
- *
23
- * @param {string} posixDirName A posix path pointing to a directory
24
- * @param {string} filePath an unknown filesystem path pointing to a file
25
- * @returns {boolean} is the file located in the given directory
26
- */
27
- const isFilePathInDirname = (posixDirName, filePath) => {
28
- const normalizedDir = path_1.default.posix.dirname((0, exports.unknownPathToPosix)(filePath));
29
- return (0, exports.isPathEquivalent)(posixDirName, normalizedDir);
30
- };
31
- exports.isFilePathInDirname = isFilePathInDirname;
32
- /**
33
- * Check if two paths that can be either in posix or win32 format resolves to the same file
34
- *
35
- * @param {string} pathA a path that may be either win32 or posix
36
- * @param {string} pathB a path that may be either win32 or posix
37
- *
38
- * @returns {boolean} do paths point to the same place
39
- */
40
- const isPathEquivalent = (pathA, pathB) => {
41
- // Check if paths appear to be win32 or posix, and if win32 convert to posix
42
- const normalizedPathA = path_1.default.posix.normalize((0, exports.unknownPathToPosix)(pathA));
43
- const normalizedPathB = path_1.default.posix.normalize((0, exports.unknownPathToPosix)(pathB));
44
- return !path_1.default.posix.relative(normalizedPathB, normalizedPathA).length;
45
- };
46
- exports.isPathEquivalent = isPathEquivalent;
47
- /**
48
- * Convert an unknown format path (win32 or posix) to a posix path
49
- *
50
- * @param {string} filePath a path that may be either win32 or posix
51
- *
52
- * @returns {string} a posix path
53
- */
54
- const unknownPathToPosix = (filePath) => {
55
- // if it includes a forward slash, it must be posix already -- we will not support win32 with mixed path separators
56
- if (filePath.includes(path_1.default.posix.sep)) {
57
- return filePath;
58
- }
59
- return path_1.default.normalize(filePath).split(path_1.default.win32.sep).join(path_1.default.posix.sep);
60
- };
61
- exports.unknownPathToPosix = unknownPathToPosix;
62
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/file/providers/source/utils.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB;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Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.remote = exports.queries = exports.providers = void 0;
27
- exports.providers = __importStar(require("./providers"));
28
- exports.queries = __importStar(require("./queries"));
29
- exports.remote = __importStar(require("./remote"));
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/strapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAqC;AACrC,mDAAmC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- // Local
18
- __exportStar(require("./local-destination"), exports);
19
- __exportStar(require("./local-source"), exports);
20
- // Remote
21
- __exportStar(require("./remote-destination"), exports);
22
- __exportStar(require("./remote-source"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/strapi/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,sDAAoC;AACpC,iDAA+B;AAE/B,SAAS;AACT,uDAAqC;AACrC,kDAAgC"}