@strapi/data-transfer 5.0.0-beta.2 → 5.0.0-beta.3
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 +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/strapi/providers/local-destination/index.d.ts +2 -2
- package/dist/strapi/providers/local-destination/index.d.ts.map +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/configuration.d.ts +2 -2
- package/dist/strapi/providers/local-destination/strategies/restore/configuration.d.ts.map +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/entities.d.ts +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/entities.d.ts.map +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/index.d.ts +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/index.d.ts.map +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/links.d.ts +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/links.d.ts.map +1 -1
- package/dist/strapi/providers/local-source/assets.d.ts +1 -1
- package/dist/strapi/providers/local-source/assets.d.ts.map +1 -1
- package/dist/strapi/providers/local-source/configuration.d.ts +1 -1
- package/dist/strapi/providers/local-source/configuration.d.ts.map +1 -1
- package/dist/strapi/providers/local-source/entities.d.ts +1 -1
- package/dist/strapi/providers/local-source/entities.d.ts.map +1 -1
- package/dist/strapi/providers/local-source/index.d.ts +2 -2
- package/dist/strapi/providers/local-source/index.d.ts.map +1 -1
- package/dist/strapi/providers/local-source/links.d.ts +1 -1
- package/dist/strapi/providers/local-source/links.d.ts.map +1 -1
- package/dist/strapi/queries/entity.d.ts +1 -1
- package/dist/strapi/queries/entity.d.ts.map +1 -1
- package/dist/strapi/queries/link.d.ts +1 -1
- package/dist/strapi/queries/link.d.ts.map +1 -1
- package/dist/strapi/remote/handlers/utils.d.ts.map +1 -1
- package/dist/utils/components.d.ts +1 -1
- package/dist/utils/components.d.ts.map +1 -1
- package/dist/utils/providers.d.ts +1 -1
- package/dist/utils/providers.d.ts.map +1 -1
- package/dist/utils/transaction.d.ts +1 -1
- package/dist/utils/transaction.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -3133,8 +3133,11 @@ const transformUpgradeHeader = (header = "") => {
|
|
|
3133
3133
|
return header.split(",").map((s) => s.trim().toLowerCase());
|
|
3134
3134
|
};
|
|
3135
3135
|
let timeouts;
|
|
3136
|
+
const hasHttpServer = () => {
|
|
3137
|
+
return typeof strapi !== "undefined" && !!strapi?.server?.httpServer;
|
|
3138
|
+
};
|
|
3136
3139
|
const disableTimeouts = () => {
|
|
3137
|
-
if (!
|
|
3140
|
+
if (!hasHttpServer()) {
|
|
3138
3141
|
return;
|
|
3139
3142
|
}
|
|
3140
3143
|
const { httpServer } = strapi.server;
|
|
@@ -3149,7 +3152,7 @@ const disableTimeouts = () => {
|
|
|
3149
3152
|
strapi.log.info("[Data transfer] Disabling http timeouts");
|
|
3150
3153
|
};
|
|
3151
3154
|
const resetTimeouts = () => {
|
|
3152
|
-
if (!
|
|
3155
|
+
if (!hasHttpServer() || !timeouts) {
|
|
3153
3156
|
return;
|
|
3154
3157
|
}
|
|
3155
3158
|
const { httpServer } = strapi.server;
|