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
536
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-20240409213838 to 0.0.0-next-20240411081414

dist/core.d.ts

8

dist/CHANGELOG.md
# @module-federation/dts-plugin
## 0.1.3
### Patch Changes
- f926b6c: chore: split types plugins implementation
- @module-federation/sdk@0.1.3
- @module-federation/managers@0.1.3
## 0.1.2

@@ -4,0 +12,0 @@

3

dist/forkDevWorker.d.ts

@@ -1,2 +0,3 @@

import { DTSManagerOptions } from '@module-federation/native-federation-typescript/helpers';
import { D as DTSManagerOptions } from './DTSManagerOptions-c0728719.js';
import '@module-federation/sdk';

@@ -3,0 +4,0 @@ interface DevWorkerOptions extends DTSManagerOptions {

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

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

},
"./core": {
"import": "./dist/core.js",
"require": "./dist/core.js"
},
"./*": "./*"

@@ -28,2 +32,5 @@ },

"./dist/index.d.ts"
],
"core": [
"./dist/core.d.ts"
]

@@ -33,4 +40,10 @@ }

"dependencies": {
"adm-zip": "^0.5.10",
"ansi-colors": "^4.1.3",
"axios": "^1.6.7",
"rambda": "^9.1.0",
"@module-federation/sdk": "workspace:*",
"@module-federation/native-federation-typescript": "workspace:*",
"@module-federation/managers": "workspace:*",
"lodash.clonedeepwith": "4.5.0",
"@module-federation/third-party-dts-extractor": "workspace:*",
"chalk": "3.0.0",

@@ -42,4 +55,3 @@ "fs-extra": "9.1.0",

"node-schedule": "2.1.0",
"ws": "8.5.0",
"lodash.clonedeepwith": "4.5.0"
"ws": "8.5.0"
},

@@ -46,0 +58,0 @@ "devDependencies": {

@@ -39,3 +39,64 @@ "use strict";

var import_http = require("http");
var import_helpers = require("@module-federation/native-federation-typescript/helpers");
// packages/dts-plugin/src/core/configurations/remotePlugin.ts
var import_managers2 = require("@module-federation/managers");
var import_typescript2 = __toESM(require("typescript"));
// packages/dts-plugin/src/core/lib/DTSManager.ts
var import_ansi_colors3 = __toESM(require("ansi-colors"));
var import_sdk2 = require("@module-federation/sdk");
var import_lodash = __toESM(require("lodash.clonedeepwith"));
// packages/dts-plugin/src/core/lib/archiveHandler.ts
var import_adm_zip = __toESM(require("adm-zip"));
var import_ansi_colors2 = __toESM(require("ansi-colors"));
var import_axios = __toESM(require("axios"));
// packages/dts-plugin/src/core/lib/typeScriptCompiler.ts
var import_ansi_colors = __toESM(require("ansi-colors"));
var import_typescript = __toESM(require("typescript"));
var import_third_party_dts_extractor = require("@module-federation/third-party-dts-extractor");
// packages/dts-plugin/src/core/configurations/hostPlugin.ts
var import_sdk = require("@module-federation/sdk");
var import_managers = require("@module-federation/managers");
var defaultOptions = {
typesFolder: "@mf-types",
remoteTypesFolder: "@mf-types",
deleteTypesFolder: true,
maxRetries: 3,
implementation: "",
context: process.cwd(),
abortOnError: true,
consumeAPITypes: false
};
// packages/dts-plugin/src/core/lib/DTSManager.ts
var import_axios2 = __toESM(require("axios"));
// packages/dts-plugin/src/core/lib/utils.ts
var import_ansi_colors4 = __toESM(require("ansi-colors"));
// packages/dts-plugin/src/core/configurations/remotePlugin.ts
var defaultOptions2 = {
tsConfigPath: "./tsconfig.json",
typesFolder: "@mf-types",
compiledTypesFolder: "compiled-types",
hostRemoteTypesFolder: "@mf-types",
deleteTypesFolder: true,
additionalFilesToCompile: [],
compilerInstance: "tsc",
compileInChildProcess: false,
implementation: "",
generateAPITypes: false,
context: process.cwd(),
abortOnError: true,
extractRemoteTypes: false,
extractThirdParty: false
};
// packages/dts-plugin/src/core/lib/DtsWorker.ts
var import_lodash2 = __toESM(require("lodash.clonedeepwith"));
// packages/dts-plugin/src/server/broker/Broker.ts
var import_isomorphic_ws = __toESM(require("isomorphic-ws"));

@@ -91,3 +152,3 @@ var import_node_schedule = __toESM(require("node-schedule"));

// packages/dts-plugin/src/server/utils/index.ts
var import_sdk2 = require("@module-federation/sdk");
var import_sdk4 = require("@module-federation/sdk");

@@ -115,3 +176,3 @@ // packages/dts-plugin/src/server/utils/logTransform.ts

// packages/dts-plugin/src/server/utils/log.ts
var import_sdk = require("@module-federation/sdk");
var import_sdk3 = require("@module-federation/sdk");
var log4js = __toESM(require("log4js"));

@@ -153,3 +214,3 @@ var import_chalk2 = __toESM(require("chalk"));

const { ip, name } = options;
return `mf ${import_sdk2.SEPARATOR}${name}${ip ? `${import_sdk2.SEPARATOR}${ip}` : ""}`;
return `mf ${import_sdk4.SEPARATOR}${name}${ip ? `${import_sdk4.SEPARATOR}${ip}` : ""}`;
}

@@ -490,3 +551,3 @@

updateKind: "UPDATE_TYPE" /* UPDATE_TYPE */,
updateMode: import_helpers.UpdateMode.PASSIVE,
updateMode: "PASSIVE" /* PASSIVE */,
updateSourcePaths: [registeredPublisher.name],

@@ -711,3 +772,3 @@ remoteTypeTarPath: registeredPublisher.remoteTypeTarPath,

updateKind: "UPDATE_TYPE" /* UPDATE_TYPE */,
updateMode: import_helpers.UpdateMode.PASSIVE,
updateMode: "PASSIVE" /* PASSIVE */,
updateSourcePaths: [publisher.name],

@@ -714,0 +775,0 @@ remoteTypeTarPath: publisher.remoteTypeTarPath,

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

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

},
"./core": {
"import": "./dist/core.js",
"require": "./dist/core.js"
},
"./*": "./*"

@@ -28,2 +32,5 @@ },

"./dist/index.d.ts"
],
"core": [
"./dist/core.d.ts"
]

@@ -33,2 +40,7 @@ }

"dependencies": {
"adm-zip": "^0.5.10",
"ansi-colors": "^4.1.3",
"axios": "^1.6.7",
"rambda": "^9.1.0",
"lodash.clonedeepwith": "4.5.0",
"chalk": "3.0.0",

@@ -41,5 +53,5 @@ "fs-extra": "9.1.0",

"ws": "8.5.0",
"lodash.clonedeepwith": "4.5.0",
"@module-federation/sdk": "0.0.0-next-20240409213838",
"@module-federation/native-federation-typescript": "0.0.0-next-20240409213838"
"@module-federation/sdk": "0.0.0-next-20240411081414",
"@module-federation/managers": "0.0.0-next-20240411081414",
"@module-federation/third-party-dts-extractor": "0.0.18"
},

@@ -46,0 +58,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