@module-federation/dev-server
Advanced tools
Comparing version 0.0.0-next-20240321124455 to 0.0.0-next-20240321142841
@@ -109,2 +109,3 @@ 'use strict'; | ||
const WEB_CLIENT_OPTIONS_IDENTIFIER = '__WEB_CLIENT_OPTIONS__'; | ||
const DEFAULT_TAR_NAME = 'mf-types.tar.gz'; | ||
@@ -787,2 +788,3 @@ function log(msg) { | ||
exports.Broker = Broker; | ||
exports.DEFAULT_TAR_NAME = DEFAULT_TAR_NAME; | ||
exports.DEFAULT_WEB_SOCKET_PORT = DEFAULT_WEB_SOCKET_PORT; | ||
@@ -789,0 +791,0 @@ exports.MF_SERVER_IDENTIFIER = MF_SERVER_IDENTIFIER; |
@@ -81,2 +81,3 @@ import { createServer } from 'http'; | ||
const WEB_CLIENT_OPTIONS_IDENTIFIER = '__WEB_CLIENT_OPTIONS__'; | ||
const DEFAULT_TAR_NAME = 'mf-types.tar.gz'; | ||
@@ -757,2 +758,2 @@ function log(msg) { | ||
export { Action as A, Broker as B, DEFAULT_WEB_SOCKET_PORT as D, LogKind as L, MF_SERVER_IDENTIFIER as M, Publisher as P, UpdateMode as U, WEB_SOCKET_CONNECT_MAGIC_ID as W, ActionKind as a, fib as b, APIKind as c, UpdateKind as d, getFreePort as e, fileLog as f, getIdentifier as g, WEB_CLIENT_OPTIONS_IDENTIFIER as h, error as i, log as l }; | ||
export { Action as A, Broker as B, DEFAULT_TAR_NAME as D, LogKind as L, MF_SERVER_IDENTIFIER as M, Publisher as P, UpdateMode as U, WEB_SOCKET_CONNECT_MAGIC_ID as W, ActionKind as a, fib as b, APIKind as c, UpdateKind as d, getFreePort as e, fileLog as f, getIdentifier as g, DEFAULT_WEB_SOCKET_PORT as h, WEB_CLIENT_OPTIONS_IDENTIFIER as i, error as j, log as l }; |
@@ -424,3 +424,3 @@ 'use strict'; | ||
app.use(async (ctx, next)=>{ | ||
if (ctx.path === '/types.tar.gz') { | ||
if (ctx.path === `/${Broker.DEFAULT_TAR_NAME}`) { | ||
ctx.status = 200; | ||
@@ -440,2 +440,3 @@ ctx.body = fs__default["default"].createReadStream(typeTarPath); | ||
exports.DEFAULT_TAR_NAME = Broker.DEFAULT_TAR_NAME; | ||
exports.DEFAULT_WEB_SOCKET_PORT = Broker.DEFAULT_WEB_SOCKET_PORT; | ||
@@ -442,0 +443,0 @@ exports.MF_SERVER_IDENTIFIER = Broker.MF_SERVER_IDENTIFIER; |
@@ -1,3 +0,3 @@ | ||
import { A as Action, a as ActionKind, f as fileLog, M as MF_SERVER_IDENTIFIER, B as Broker, L as LogKind, b as fib, c as APIKind, U as UpdateMode, d as UpdateKind, g as getIdentifier, e as getFreePort } from './Broker.esm.js'; | ||
export { D as DEFAULT_WEB_SOCKET_PORT, M as MF_SERVER_IDENTIFIER, P as Publisher, d as UpdateKind, U as UpdateMode, h as WEB_CLIENT_OPTIONS_IDENTIFIER, W as WEB_SOCKET_CONNECT_MAGIC_ID, i as error, f as fileLog, l as log } from './Broker.esm.js'; | ||
import { A as Action, a as ActionKind, f as fileLog, M as MF_SERVER_IDENTIFIER, B as Broker, L as LogKind, b as fib, c as APIKind, U as UpdateMode, d as UpdateKind, g as getIdentifier, e as getFreePort, D as DEFAULT_TAR_NAME } from './Broker.esm.js'; | ||
export { D as DEFAULT_TAR_NAME, h as DEFAULT_WEB_SOCKET_PORT, M as MF_SERVER_IDENTIFIER, P as Publisher, d as UpdateKind, U as UpdateMode, i as WEB_CLIENT_OPTIONS_IDENTIFIER, W as WEB_SOCKET_CONNECT_MAGIC_ID, j as error, f as fileLog, l as log } from './Broker.esm.js'; | ||
import WebSocket from 'isomorphic-ws'; | ||
@@ -413,3 +413,3 @@ import { fork } from 'child_process'; | ||
app.use(async (ctx, next)=>{ | ||
if (ctx.path === '/types.tar.gz') { | ||
if (ctx.path === `/${DEFAULT_TAR_NAME}`) { | ||
ctx.status = 200; | ||
@@ -416,0 +416,0 @@ ctx.body = fs.createReadStream(typeTarPath); |
@@ -5,1 +5,2 @@ export declare const DEFAULT_WEB_SOCKET_PORT = 16322; | ||
export declare const WEB_CLIENT_OPTIONS_IDENTIFIER = "__WEB_CLIENT_OPTIONS__"; | ||
export declare const DEFAULT_TAR_NAME = "mf-types.tar.gz"; |
{ | ||
"name": "@module-federation/dev-server", | ||
"version": "0.0.0-next-20240321124455", | ||
"version": "0.0.0-next-20240321142841", | ||
"author": "hanric <hanric.zhang@gmail.com>", | ||
@@ -46,3 +46,3 @@ "main": "./dist/index.cjs", | ||
"ws": "8.5.0", | ||
"@module-federation/sdk": "0.0.0-next-20240321124455" | ||
"@module-federation/sdk": "0.0.0-next-20240321142841" | ||
}, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137655
2933
+ Added@module-federation/sdk@0.0.0-next-20240321142841(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240321124455(transitive)