@module-federation/dts-plugin 0.0.0-next-20250109080507 → 0.0.0-next-20250109082157

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/core.js CHANGED
@@ -1150,6 +1150,7 @@ var retrieveTypesArchiveDestinationPath = /* @__PURE__ */ __name((hostOptions, d
1150
1150
  var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1151
1151
  let retries = 0;
1152
1152
  return (_0) => __async(void 0, [_0], function* ([destinationFolder, fileToDownload]) {
1153
+ var _a3;
1153
1154
  const destinationPath = retrieveTypesArchiveDestinationPath(hostOptions, destinationFolder);
1154
1155
  while (retries++ < hostOptions.maxRetries) {
1155
1156
  try {
@@ -1157,7 +1158,9 @@ var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1157
1158
  const response = yield axiosGet(url, {
1158
1159
  responseType: "arraybuffer"
1159
1160
  }).catch(downloadErrorLogger(destinationFolder, url));
1160
- if (typeof response.headers["content-type"] === "string" && response.headers["content-type"].includes("text/html")) {
1161
+ debugger;
1162
+ if (typeof ((_a3 = response.headers) == null ? void 0 : _a3["content-type"]) === "string" && response.headers["content-type"].includes("text/html")) {
1163
+ console.log(11111111, response.headers["content-type"]);
1161
1164
  throw new Error(`${url} receives invalid content-type: ${response.headers["content-type"]}`);
1162
1165
  }
1163
1166
  try {
@@ -4,7 +4,7 @@ import {
4
4
  exposeRpc,
5
5
  getDTSManagerConstructor,
6
6
  isDebugMode
7
- } from "./chunk-D43S4NQM.js";
7
+ } from "./chunk-PLT53QND.js";
8
8
  import {
9
9
  __async,
10
10
  __export,
@@ -1279,6 +1279,7 @@ var retrieveTypesArchiveDestinationPath = /* @__PURE__ */ __name((hostOptions, d
1279
1279
  var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1280
1280
  let retries = 0;
1281
1281
  return (_0) => __async(void 0, [_0], function* ([destinationFolder, fileToDownload]) {
1282
+ var _a2;
1282
1283
  const destinationPath = retrieveTypesArchiveDestinationPath(hostOptions, destinationFolder);
1283
1284
  while (retries++ < hostOptions.maxRetries) {
1284
1285
  try {
@@ -1286,7 +1287,9 @@ var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1286
1287
  const response = yield axiosGet(url, {
1287
1288
  responseType: "arraybuffer"
1288
1289
  }).catch(downloadErrorLogger(destinationFolder, url));
1289
- if (typeof response.headers["content-type"] === "string" && response.headers["content-type"].includes("text/html")) {
1290
+ debugger;
1291
+ if (typeof ((_a2 = response.headers) == null ? void 0 : _a2["content-type"]) === "string" && response.headers["content-type"].includes("text/html")) {
1292
+ console.log(11111111, response.headers["content-type"]);
1290
1293
  throw new Error(`${url} receives invalid content-type: ${response.headers["content-type"]}`);
1291
1294
  }
1292
1295
  try {
package/dist/esm/core.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  consumeTypes,
4
4
  generateTypesInChildProcess,
5
5
  rpc_exports
6
- } from "./chunk-6TJIDZFG.js";
6
+ } from "./chunk-66QKPHMJ.js";
7
7
  import {
8
8
  DTSManager,
9
9
  HOST_API_TYPES_FILE_NAME,
@@ -19,7 +19,7 @@ import {
19
19
  retrieveTypesAssetsInfo,
20
20
  retrieveTypesZipPath,
21
21
  validateOptions
22
- } from "./chunk-D43S4NQM.js";
22
+ } from "./chunk-PLT53QND.js";
23
23
  import "./chunk-KCWHOFI6.js";
24
24
  import "./chunk-4CSLH7II.js";
25
25
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rpc_exports
3
- } from "./chunk-6TJIDZFG.js";
3
+ } from "./chunk-66QKPHMJ.js";
4
4
  import {
5
5
  ModuleFederationDevServer,
6
6
  createKoaServer,
@@ -9,7 +9,7 @@ import {
9
9
  retrieveMfTypesPath,
10
10
  retrieveRemoteConfig,
11
11
  retrieveTypesZipPath
12
- } from "./chunk-D43S4NQM.js";
12
+ } from "./chunk-PLT53QND.js";
13
13
  import {
14
14
  fileLog,
15
15
  getIPV4
@@ -2,7 +2,7 @@ import {
2
2
  RpcGMCallTypes,
3
3
  exposeRpc,
4
4
  generateTypes
5
- } from "./chunk-D43S4NQM.js";
5
+ } from "./chunk-PLT53QND.js";
6
6
  import "./chunk-KCWHOFI6.js";
7
7
  import {
8
8
  __async,
package/dist/esm/index.js CHANGED
@@ -2,14 +2,14 @@ import {
2
2
  consumeTypes,
3
3
  generateTypesInChildProcess,
4
4
  rpc_exports
5
- } from "./chunk-6TJIDZFG.js";
5
+ } from "./chunk-66QKPHMJ.js";
6
6
  import {
7
7
  cloneDeepOptions,
8
8
  generateTypes,
9
9
  isTSProject,
10
10
  retrieveTypesAssetsInfo,
11
11
  validateOptions
12
- } from "./chunk-D43S4NQM.js";
12
+ } from "./chunk-PLT53QND.js";
13
13
  import {
14
14
  getIPV4,
15
15
  logger
@@ -1670,6 +1670,7 @@ var retrieveTypesArchiveDestinationPath = /* @__PURE__ */ __name((hostOptions, d
1670
1670
  var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1671
1671
  let retries = 0;
1672
1672
  return (_0) => __async(void 0, [_0], function* ([destinationFolder, fileToDownload]) {
1673
+ var _a3;
1673
1674
  const destinationPath = retrieveTypesArchiveDestinationPath(hostOptions, destinationFolder);
1674
1675
  while (retries++ < hostOptions.maxRetries) {
1675
1676
  try {
@@ -1677,7 +1678,9 @@ var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1677
1678
  const response = yield axiosGet(url, {
1678
1679
  responseType: "arraybuffer"
1679
1680
  }).catch(downloadErrorLogger(destinationFolder, url));
1680
- if (typeof response.headers["content-type"] === "string" && response.headers["content-type"].includes("text/html")) {
1681
+ debugger;
1682
+ if (typeof ((_a3 = response.headers) == null ? void 0 : _a3["content-type"]) === "string" && response.headers["content-type"].includes("text/html")) {
1683
+ console.log(11111111, response.headers["content-type"]);
1681
1684
  throw new Error(`${url} receives invalid content-type: ${response.headers["content-type"]}`);
1682
1685
  }
1683
1686
  try {
@@ -1310,6 +1310,7 @@ var retrieveTypesArchiveDestinationPath = /* @__PURE__ */ __name((hostOptions, d
1310
1310
  var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1311
1311
  let retries = 0;
1312
1312
  return (_0) => __async(void 0, [_0], function* ([destinationFolder, fileToDownload]) {
1313
+ var _a2;
1313
1314
  const destinationPath = retrieveTypesArchiveDestinationPath(hostOptions, destinationFolder);
1314
1315
  while (retries++ < hostOptions.maxRetries) {
1315
1316
  try {
@@ -1317,7 +1318,9 @@ var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1317
1318
  const response = yield axiosGet(url, {
1318
1319
  responseType: "arraybuffer"
1319
1320
  }).catch(downloadErrorLogger(destinationFolder, url));
1320
- if (typeof response.headers["content-type"] === "string" && response.headers["content-type"].includes("text/html")) {
1321
+ debugger;
1322
+ if (typeof ((_a2 = response.headers) == null ? void 0 : _a2["content-type"]) === "string" && response.headers["content-type"].includes("text/html")) {
1323
+ console.log(11111111, response.headers["content-type"]);
1321
1324
  throw new Error(`${url} receives invalid content-type: ${response.headers["content-type"]}`);
1322
1325
  }
1323
1326
  try {
package/dist/index.js CHANGED
@@ -1173,6 +1173,7 @@ var retrieveTypesArchiveDestinationPath = /* @__PURE__ */ __name((hostOptions, d
1173
1173
  var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1174
1174
  let retries = 0;
1175
1175
  return (_0) => __async(void 0, [_0], function* ([destinationFolder, fileToDownload]) {
1176
+ var _a3;
1176
1177
  const destinationPath = retrieveTypesArchiveDestinationPath(hostOptions, destinationFolder);
1177
1178
  while (retries++ < hostOptions.maxRetries) {
1178
1179
  try {
@@ -1180,7 +1181,9 @@ var downloadTypesArchive = /* @__PURE__ */ __name((hostOptions) => {
1180
1181
  const response = yield axiosGet(url, {
1181
1182
  responseType: "arraybuffer"
1182
1183
  }).catch(downloadErrorLogger(destinationFolder, url));
1183
- if (typeof response.headers["content-type"] === "string" && response.headers["content-type"].includes("text/html")) {
1184
+ debugger;
1185
+ if (typeof ((_a3 = response.headers) == null ? void 0 : _a3["content-type"]) === "string" && response.headers["content-type"].includes("text/html")) {
1186
+ console.log(11111111, response.headers["content-type"]);
1184
1187
  throw new Error(`${url} receives invalid content-type: ${response.headers["content-type"]}`);
1185
1188
  }
1186
1189
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.0.0-next-20250109080507",
3
+ "version": "0.0.0-next-20250109082157",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -60,10 +60,10 @@
60
60
  "log4js": "6.9.1",
61
61
  "node-schedule": "2.1.1",
62
62
  "ws": "8.18.0",
63
- "@module-federation/sdk": "0.0.0-next-20250109080507",
64
- "@module-federation/managers": "0.0.0-next-20250109080507",
65
- "@module-federation/third-party-dts-extractor": "0.0.0-next-20250109080507",
66
- "@module-federation/error-codes": "0.0.0-next-20250109080507"
63
+ "@module-federation/sdk": "0.0.0-next-20250109082157",
64
+ "@module-federation/managers": "0.0.0-next-20250109082157",
65
+ "@module-federation/third-party-dts-extractor": "0.0.0-next-20250109082157",
66
+ "@module-federation/error-codes": "0.0.0-next-20250109082157"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/ws": "8.5.12",
@@ -72,7 +72,7 @@
72
72
  "vue": "^3.4.29",
73
73
  "@vue/tsconfig": "^0.5.1",
74
74
  "vue-tsc": "^2.0.26",
75
- "@module-federation/runtime": "0.0.0-next-20250109080507"
75
+ "@module-federation/runtime": "0.0.0-next-20250109082157"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "typescript": "^4.9.0 || ^5.0.0",