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

@module-federation/bridge-react

Package Overview
Dependencies
Maintainers
0
Versions
362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/bridge-react - npm Package Compare versions

Comparing version 0.0.0-next-20241117192957 to 0.0.0-next-20241118060105

9

CHANGELOG.md
# @module-federation/bridge-react
## 0.0.0-next-20241117192957
## 0.0.0-next-20241118060105
### Patch Changes
- 0309fb5: fix: wrap try catch with react-router-dom path resolve
- @module-federation/runtime@0.0.0-next-20241117192957
- @module-federation/sdk@0.0.0-next-20241117192957
- @module-federation/bridge-shared@0.0.0-next-20241117192957
- @module-federation/runtime@0.0.0-next-20241118060105
- @module-federation/sdk@0.0.0-next-20241118060105
- @module-federation/bridge-shared@0.0.0-next-20241118060105

@@ -12,0 +11,0 @@ ## 0.7.4

"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const React = require("react");
const ReactRouterDom$1 = require("react-router-dom/dist/index.js");
const ReactRouterDom = require("react-router-dom/dist/index.js");
const context = require("./context-BcJ-YlNr.cjs");
const ReactRouterDom = require("react-router-dom/dist/index.js");
function _interopNamespaceDefault(e) {

@@ -23,3 +22,3 @@ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });

}
const ReactRouterDom__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactRouterDom$1);
const ReactRouterDom__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactRouterDom);
function WraperRouter(props) {

@@ -26,0 +25,0 @@ const { basename, ...propsRes } = props;

@@ -9,4 +9,4 @@ import { default as default_2 } from 'react';

export * from "react-router-dom/";
export * from "react-router-dom/dist/index.js";
export { }
import React__default, { useContext } from "react";
import * as ReactRouterDom$1 from "react-router-dom/dist/index.js";
import * as ReactRouterDom from "react-router-dom/dist/index.js";
export * from "react-router-dom/dist/index.js";
import { R as RouterContext, L as LoggerInstance } from "./context-CUbFnlO5.js";
export * from "react-router-dom/dist/index.js";
function WraperRouter(props) {

@@ -15,3 +15,3 @@ const { basename, ...propsRes } = props;

return /* @__PURE__ */ React__default.createElement(
ReactRouterDom$1.MemoryRouter,
ReactRouterDom.MemoryRouter,
{

@@ -24,3 +24,3 @@ ...props,

return /* @__PURE__ */ React__default.createElement(
ReactRouterDom$1.BrowserRouter,
ReactRouterDom.BrowserRouter,
{

@@ -42,5 +42,5 @@ ...propsRes,

});
const RouterProvider = ReactRouterDom$1["RouterProvider"];
const createMemoryRouter = ReactRouterDom$1["createMemoryRouter"];
const createBrowserRouter = ReactRouterDom$1["createBrowserRouter"];
const RouterProvider = ReactRouterDom["RouterProvider"];
const createMemoryRouter = ReactRouterDom["createMemoryRouter"];
const createBrowserRouter = ReactRouterDom["createBrowserRouter"];
if (routerContextProps.memoryRoute) {

@@ -47,0 +47,0 @@ const MemeoryRouterInstance = createMemoryRouter(routers, {

{
"name": "@module-federation/bridge-react",
"version": "0.0.0-next-20241117192957",
"version": "0.0.0-next-20241118060105",
"publishConfig": {

@@ -44,5 +44,5 @@ "access": "public"

"react-error-boundary": "^4.0.13",
"@module-federation/bridge-shared": "0.0.0-next-20241117192957",
"@module-federation/sdk": "0.0.0-next-20241117192957",
"@module-federation/runtime": "0.0.0-next-20241117192957"
"@module-federation/bridge-shared": "0.0.0-next-20241118060105",
"@module-federation/sdk": "0.0.0-next-20241118060105",
"@module-federation/runtime": "0.0.0-next-20241118060105"
},

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

import React from 'react';
import { FederationHost } from '@module-federation/runtime';
import { createLogger } from '@module-federation/sdk';

@@ -3,0 +4,0 @@

import { defineConfig } from 'vite';
// import vue from '@vitejs/plugin-vue';
import vue from '@vitejs/plugin-vue';
import path from 'path';
import dts from 'vite-plugin-dts';
// import react from '@vitejs/plugin-react';
import react from '@vitejs/plugin-react';
import packageJson from './package.json';

@@ -47,9 +47,9 @@

const chunk = bundle[fileName];
if (fileName.includes('router-v6') && chunk.type === 'chunk') {
chunk.code = chunk.code.replace(
// Match 'react-router-dom/' followed by single quotes, double quotes, or backticks, replacing only 'react-router-dom/' to react-router-v6 dist file structure
/react-router-dom\/(?=[\'\"\`])/g,
'react-router-dom/dist/index.js',
);
}
// if (fileName.includes('router-v6') && chunk.type === 'chunk') {
// chunk.code = chunk.code.replace(
// // Match 'react-router-dom/' followed by single quotes, double quotes, or backticks, replacing only 'react-router-dom/' to react-router-v6 dist file structure
// /react-router-dom\/(?=[\'\"\`])/g,
// 'react-router-dom/dist/index.js',
// );
// }

@@ -56,0 +56,0 @@ if (fileName.includes('router-v5') && chunk.type === 'chunk') {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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