🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@nx/react

Package Overview
Dependencies
Maintainers
4
Versions
1187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/react - npm Package Compare versions

Comparing version

to
0.0.0-pr-31313-d972df3

12

mf/dynamic-federation.js

@@ -7,2 +7,3 @@ "use strict";

exports.loadRemoteModule = loadRemoteModule;
const node_path_1 = require("node:path");
let remoteUrlDefinitions = {};

@@ -135,6 +136,11 @@ let resolveRemoteUrl;

: await resolveRemoteUrl(remoteName);
let containerUrl = remoteUrl;
if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {
containerUrl = `${remoteUrl}${remoteUrl.endsWith('/') ? '' : '/'}remoteEntry.js`;
const url = new URL(remoteUrl);
const ext = (0, node_path_1.extname)(url.pathname);
const needsRemoteEntry = !['.js', '.mjs', '.json'].includes(ext);
if (needsRemoteEntry) {
url.pathname = url.pathname.endsWith('/')
? `${url.pathname}remoteEntry.mjs`
: `${url.pathname}/remoteEntry.mjs`;
}
const containerUrl = url.href;
const container = await fetchRemoteModule(containerUrl, remoteName);

@@ -141,0 +147,0 @@ await container.init(__webpack_share_scopes__.default);

{
"name": "@nx/react",
"version": "0.0.0-pr-31313-a7b74d2",
"version": "0.0.0-pr-31313-d972df3",
"private": false,

@@ -41,7 +41,7 @@ "description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",

"tslib": "^2.3.0",
"@nx/devkit": "0.0.0-pr-31313-a7b74d2",
"@nx/js": "0.0.0-pr-31313-a7b74d2",
"@nx/eslint": "0.0.0-pr-31313-a7b74d2",
"@nx/web": "0.0.0-pr-31313-a7b74d2",
"@nx/module-federation": "0.0.0-pr-31313-a7b74d2",
"@nx/devkit": "0.0.0-pr-31313-d972df3",
"@nx/js": "0.0.0-pr-31313-d972df3",
"@nx/eslint": "0.0.0-pr-31313-d972df3",
"@nx/web": "0.0.0-pr-31313-d972df3",
"@nx/module-federation": "0.0.0-pr-31313-d972df3",
"express": "^4.21.2",

@@ -48,0 +48,0 @@ "http-proxy-middleware": "^3.0.3",

@@ -190,2 +190,3 @@ "use strict";

js: options.js,
name: options.name,
inSourceTests: options.inSourceTests,

@@ -192,0 +193,0 @@ skipFormat: true,