New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/dts-plugin

Package Overview
Dependencies
Maintainers
8
Versions
540
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/dts-plugin - npm Package Compare versions

Comparing version 0.0.0-next-20240508024041 to 0.0.0-next-20240510094642

22

dist/CHANGELOG.md
# @module-federation/dts-plugin
## 0.1.13
### Patch Changes
- 2e52e51: Build zip url for json ext as well
- 677958c: fix: tsup configuration
- Updated dependencies [2e52e51]
- Updated dependencies [677958c]
- Updated dependencies [2e52e51]
- @module-federation/managers@0.1.13
- @module-federation/third-party-dts-extractor@0.1.13
- @module-federation/sdk@0.1.13
## 0.1.12
### Patch Changes
- 2a18c65: fix(dts-plugin): avoid typescript generation exceptions in javascript projects
- @module-federation/sdk@0.1.12
- @module-federation/managers@0.1.12
- @module-federation/third-party-dts-extractor@0.1.12
## 0.1.11

@@ -4,0 +26,0 @@

17

dist/forkGenerateDts.js

@@ -552,5 +552,2 @@ "use strict";

const remoteUrl = new URL(url);
if (remoteUrl.href.includes(import_sdk3.MANIFEST_EXT)) {
return void 0;
}
const pathnameWithoutEntry = remoteUrl.pathname.split("/").slice(0, -1).join("/");

@@ -1227,3 +1224,3 @@ remoteUrl.pathname = `${pathnameWithoutEntry}/${hostOptions.remoteTypesFolder}.zip`;

try {
const url = replaceLocalhost(fileToDownload);
const url = fileToDownload;
const response = await import_axios.default.get(url, { responseType: "arraybuffer" }).catch(downloadErrorLogger(destinationFolder, url));

@@ -1361,3 +1358,3 @@ const zip = new import_adm_zip.default(Buffer.from(response.data));

}
const url = replaceLocalhost(remoteInfo.url);
const url = remoteInfo.url;
const res = await (0, import_axios2.default)({

@@ -1377,3 +1374,6 @@ method: "get",

};
const publicPath = "publicPath" in manifestJson.metaData ? manifestJson.metaData.publicPath : new Function(manifestJson.metaData.getPublicPath)();
let publicPath = "publicPath" in manifestJson.metaData ? manifestJson.metaData.publicPath : new Function(manifestJson.metaData.getPublicPath)();
if (publicPath === "auto") {
publicPath = (0, import_sdk4.inferAutoPublicPath)(remoteInfo.url);
}
remoteInfo.zipUrl = new URL(

@@ -1413,3 +1413,3 @@ import_path4.default.join(addProtocol(publicPath), manifestJson.metaData.types.zip)

try {
const url = replaceLocalhost(apiTypeUrl);
const url = apiTypeUrl;
const res = await import_axios2.default.get(url);

@@ -1599,5 +1599,2 @@ let apiTypeFile = res.data;

};
function replaceLocalhost(url) {
return url.replace("localhost", "127.0.0.1");
}

@@ -1604,0 +1601,0 @@ // packages/dts-plugin/src/core/lib/generateTypes.ts

{
"name": "@module-federation/dts-plugin",
"version": "0.1.11",
"version": "0.1.13",
"author": "hanric <hanric.zhang@gmail.com>",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

{
"name": "@module-federation/dts-plugin",
"version": "0.0.0-next-20240508024041",
"version": "0.0.0-next-20240510094642",
"author": "hanric <hanric.zhang@gmail.com>",

@@ -50,5 +50,5 @@ "main": "./dist/index.js",

"ws": "8.5.0",
"@module-federation/sdk": "0.0.0-next-20240508024041",
"@module-federation/managers": "0.0.0-next-20240508024041",
"@module-federation/third-party-dts-extractor": "0.0.0-next-20240508024041"
"@module-federation/sdk": "0.0.0-next-20240510094642",
"@module-federation/managers": "0.0.0-next-20240510094642",
"@module-federation/third-party-dts-extractor": "0.0.0-next-20240510094642"
},

@@ -55,0 +55,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc