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
0
Versions
529
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-20250108134931 to 0.0.0-next-20250109025056

31

dist/esm/index.js

@@ -325,7 +325,8 @@ import {

var _GenerateTypesPlugin = class _GenerateTypesPlugin {
constructor(pluginOptions, dtsOptions, defaultOptions, fetchTypesPromise) {
constructor(pluginOptions, dtsOptions, defaultOptions, consumeTypesPromise, callback) {
__publicField(this, "pluginOptions");
__publicField(this, "dtsOptions");
__publicField(this, "defaultOptions");
__publicField(this, "fetchTypesPromise");
__publicField(this, "consumeTypesPromise");
__publicField(this, "callback");
__publicField(this, "debounceTimer", null);

@@ -338,8 +339,10 @@ __publicField(this, "isProcessing", false);

this.defaultOptions = defaultOptions;
this.fetchTypesPromise = fetchTypesPromise;
this.consumeTypesPromise = consumeTypesPromise;
this.callback = callback;
}
apply(compiler) {
const { dtsOptions, defaultOptions, pluginOptions, fetchTypesPromise } = this;
const { dtsOptions, defaultOptions, pluginOptions, consumeTypesPromise, callback } = this;
const normalizedGenerateTypes = normalizeOptions3(true, defaultOptions, "mfOptions.dts.generateTypes")(dtsOptions.generateTypes);
if (!normalizedGenerateTypes) {
callback();
return;

@@ -456,3 +459,3 @@ }

}, () => __async(this, null, function* () {
yield fetchTypesPromise;
yield consumeTypesPromise;
try {

@@ -489,3 +492,5 @@ if (pluginOptions.dev === false && compiledOnce) {

compiledOnce = true;
callback();
} catch (err) {
callback();
console.error("Error in mf:generateTypes processAssets hook:", err);

@@ -527,9 +532,13 @@ }

}
let resolve2;
const fetchTypesPromise = new Promise((res, rej) => {
resolve2 = res;
let consumeTypesPromiseResolve;
const consumeTypesPromise = new Promise((resolve2) => {
consumeTypesPromiseResolve = resolve2;
});
new DevPlugin(options, fetchTypesPromise).apply(compiler);
new GenerateTypesPlugin(options, normalizedDtsOptions, defaultGenerateTypes, fetchTypesPromise).apply(compiler);
new ConsumeTypesPlugin(options, normalizedDtsOptions, defaultConsumeTypes, resolve2).apply(compiler);
let generateTypesPromiseResolve;
const generateTypesPromise = new Promise((resolve2) => {
generateTypesPromiseResolve = resolve2;
});
new DevPlugin(options, generateTypesPromise).apply(compiler);
new GenerateTypesPlugin(options, normalizedDtsOptions, defaultGenerateTypes, consumeTypesPromise, generateTypesPromiseResolve).apply(compiler);
new ConsumeTypesPlugin(options, normalizedDtsOptions, defaultConsumeTypes, consumeTypesPromiseResolve).apply(compiler);
}

@@ -536,0 +545,0 @@ };

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

@@ -63,6 +63,6 @@ "main": "./dist/index.js",

"ws": "8.18.0",
"@module-federation/sdk": "0.0.0-next-20250108134931",
"@module-federation/managers": "0.0.0-next-20250108134931",
"@module-federation/third-party-dts-extractor": "0.0.0-next-20250108134931",
"@module-federation/error-codes": "0.0.0-next-20250108134931"
"@module-federation/sdk": "0.0.0-next-20250109025056",
"@module-federation/managers": "0.0.0-next-20250109025056",
"@module-federation/third-party-dts-extractor": "0.0.0-next-20250109025056",
"@module-federation/error-codes": "0.0.0-next-20250109025056"
},

@@ -76,3 +76,3 @@ "devDependencies": {

"vue-tsc": "^2.0.26",
"@module-federation/runtime": "0.0.0-next-20250108134931"
"@module-federation/runtime": "0.0.0-next-20250109025056"
},

@@ -79,0 +79,0 @@ "peerDependencies": {

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