@strapi/data-transfer 4.6.2 → 4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d
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/lib/engine/index.js +13 -3
- package/lib/file/providers/destination/index.js +7 -0
- package/lib/strapi/index.d.ts +0 -1
- package/lib/strapi/index.js +1 -6
- package/lib/strapi/providers/local-destination/index.d.ts +1 -1
- package/lib/strapi/providers/local-destination/index.js +9 -4
- package/lib/strapi/providers/remote-destination/index.d.ts +4 -7
- package/lib/strapi/providers/remote-destination/index.js +140 -57
- package/lib/strapi/providers/remote-destination/utils.js +2 -2
- package/lib/strapi/remote/constants.d.ts +2 -2
- package/lib/strapi/remote/constants.js +1 -1
- package/lib/strapi/remote/controllers/push.d.ts +1 -0
- package/lib/strapi/remote/controllers/push.js +53 -32
- package/lib/strapi/remote/flows/default.d.ts +3 -0
- package/lib/strapi/remote/flows/default.js +41 -0
- package/lib/strapi/remote/flows/index.d.ts +18 -0
- package/lib/strapi/remote/flows/index.js +59 -0
- package/lib/strapi/remote/handlers.d.ts +8 -1
- package/lib/strapi/remote/handlers.js +263 -171
- package/lib/strapi/remote/index.d.ts +1 -1
- package/lib/strapi/remote/index.js +2 -2
- package/lib/utils/transaction.js +21 -3
- package/package.json +4 -4
- package/lib/strapi/register.d.ts +0 -7
- package/lib/strapi/register.js +0 -13
- package/lib/strapi/remote/routes.d.ts +0 -21
- package/lib/strapi/remote/routes.js +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/data-transfer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
|
|
4
4
|
"description": "Data transfer capabilities for Strapi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"lib": "./lib"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@strapi/logger": "4.
|
|
43
|
-
"@strapi/strapi": "4.
|
|
42
|
+
"@strapi/logger": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
|
|
43
|
+
"@strapi/strapi": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
|
|
44
44
|
"chalk": "4.1.2",
|
|
45
45
|
"fs-extra": "10.0.0",
|
|
46
46
|
"lodash": "4.17.21",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"node": ">=14.19.1 <=18.x.x",
|
|
74
74
|
"npm": ">=6.0.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "117579f4c13806c2cd518e7d7d2f9d0c8a20107d"
|
|
77
77
|
}
|
package/lib/strapi/register.d.ts
DELETED
package/lib/strapi/register.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const remote_1 = require("./remote");
|
|
4
|
-
/**
|
|
5
|
-
* This is intended to be called on Strapi register phase.
|
|
6
|
-
*
|
|
7
|
-
* It registers a transfer route in the Strapi admin router.
|
|
8
|
-
*/
|
|
9
|
-
const register = (strapi) => {
|
|
10
|
-
remote_1.routes.registerAdminTransferRoute(strapi);
|
|
11
|
-
};
|
|
12
|
-
exports.default = register;
|
|
13
|
-
//# sourceMappingURL=register.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Context } from 'koa';
|
|
2
|
-
declare module '@strapi/strapi' {
|
|
3
|
-
interface Strapi {
|
|
4
|
-
admin: {
|
|
5
|
-
routes: {
|
|
6
|
-
method: string;
|
|
7
|
-
path: string;
|
|
8
|
-
handler: (ctx: Context) => Promise<void>;
|
|
9
|
-
config: unknown;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Register a transfer route in the Strapi admin router.
|
|
16
|
-
*
|
|
17
|
-
* It exposes a WS server that can be used to run and manage transfer processes.
|
|
18
|
-
*
|
|
19
|
-
* @param strapi - A Strapi instance
|
|
20
|
-
*/
|
|
21
|
-
export declare const registerAdminTransferRoute: (strapi: Strapi.Strapi) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerAdminTransferRoute = void 0;
|
|
4
|
-
const constants_1 = require("./constants");
|
|
5
|
-
const handlers_1 = require("./handlers");
|
|
6
|
-
/**
|
|
7
|
-
* Register a transfer route in the Strapi admin router.
|
|
8
|
-
*
|
|
9
|
-
* It exposes a WS server that can be used to run and manage transfer processes.
|
|
10
|
-
*
|
|
11
|
-
* @param strapi - A Strapi instance
|
|
12
|
-
*/
|
|
13
|
-
const registerAdminTransferRoute = (strapi) => {
|
|
14
|
-
strapi.admin.routes.push({
|
|
15
|
-
method: 'GET',
|
|
16
|
-
path: constants_1.TRANSFER_PATH,
|
|
17
|
-
handler: (0, handlers_1.createTransferHandler)(),
|
|
18
|
-
config: { auth: false },
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.registerAdminTransferRoute = registerAdminTransferRoute;
|
|
22
|
-
//# sourceMappingURL=routes.js.map
|