Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/dts-plugin

Package Overview
Dependencies
Maintainers
8
Versions
479
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.1.9 to 0.1.10

9

dist/CHANGELOG.md
# @module-federation/dts-plugin
## 0.1.10
### Patch Changes
- 3d4fb69: import path on Windows
- @module-federation/sdk@0.1.10
- @module-federation/managers@0.1.10
- @module-federation/third-party-dts-extractor@0.1.10
## 0.1.9

@@ -4,0 +13,0 @@

11

dist/core.js

@@ -113,3 +113,6 @@ "use strict";

const mapExposeToEntry = Object.fromEntries(
Object.entries(mapComponentsToExpose).map((entry) => entry.reverse())
Object.entries(mapComponentsToExpose).map(([exposed, filename]) => [
(0, import_path.normalize)(filename),
exposed
])
);

@@ -127,3 +130,3 @@ const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);

for (const sourceFile of sourceFiles || []) {
const sourceEntry = mapExposeToEntry[sourceFile.fileName];
const sourceEntry = mapExposeToEntry[(0, import_path.normalize)(sourceFile.fileName)];
if (sourceEntry) {

@@ -135,3 +138,3 @@ const mfeTypeEntry = (0, import_path.join)(

const mfeTypeEntryDirectory = (0, import_path.dirname)(mfeTypeEntry);
const relativePathToOutput = (0, import_path.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, "");
const relativePathToOutput = (0, import_path.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, "").split(import_path.sep).join("/");
originalWriteFile(

@@ -1131,3 +1134,3 @@ mfeTypeEntry,

(sum, exposeKey) => {
const exposePath = import_path3.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey);
const exposePath = import_path3.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey).split(import_path3.default.sep).join("/");
exposePaths.add(`'${exposePath}'`);

@@ -1134,0 +1137,0 @@ const curType = `T extends '${exposePath}' ? typeof import('${exposePath}') :`;

@@ -254,3 +254,6 @@ "use strict";

const mapExposeToEntry = Object.fromEntries(
Object.entries(mapComponentsToExpose).map((entry) => entry.reverse())
Object.entries(mapComponentsToExpose).map(([exposed, filename]) => [
(0, import_path2.normalize)(filename),
exposed
])
);

@@ -268,3 +271,3 @@ const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);

for (const sourceFile of sourceFiles || []) {
const sourceEntry = mapExposeToEntry[sourceFile.fileName];
const sourceEntry = mapExposeToEntry[(0, import_path2.normalize)(sourceFile.fileName)];
if (sourceEntry) {

@@ -276,3 +279,3 @@ const mfeTypeEntry = (0, import_path2.join)(

const mfeTypeEntryDirectory = (0, import_path2.dirname)(mfeTypeEntry);
const relativePathToOutput = (0, import_path2.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, "");
const relativePathToOutput = (0, import_path2.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, "").split(import_path2.sep).join("/");
originalWriteFile(

@@ -1270,3 +1273,3 @@ mfeTypeEntry,

(sum, exposeKey) => {
const exposePath = import_path4.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey);
const exposePath = import_path4.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey).split(import_path4.default.sep).join("/");
exposePaths.add(`'${exposePath}'`);

@@ -1273,0 +1276,0 @@ const curType = `T extends '${exposePath}' ? typeof import('${exposePath}') :`;

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

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

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

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

"ws": "8.5.0",
"@module-federation/sdk": "0.1.9",
"@module-federation/managers": "0.1.9",
"@module-federation/third-party-dts-extractor": "0.1.9"
"@module-federation/sdk": "0.1.10",
"@module-federation/managers": "0.1.10",
"@module-federation/third-party-dts-extractor": "0.1.10"
},

@@ -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

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