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

@softarc/native-federation

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@softarc/native-federation - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "@softarc/native-federation",
"version": "1.0.0",
"version": "1.0.1",
"type": "commonjs",

@@ -8,3 +8,3 @@ "dependencies": {

"npmlog": "^6.0.2",
"@softarc/native-federation-runtime": "1.0.0"
"@softarc/native-federation-runtime": "1.0.1"
},

@@ -11,0 +11,0 @@ "main": "./src/index.js",

@@ -23,2 +23,4 @@ # @softarc/native-federation

> Please find the [vite plugin here](https://www.npmjs.com/package/@gioboa/vite-module-federation).
Also, other higher level abstractions on top of this core library are possible.

@@ -41,2 +43,6 @@

- [React example](https://github.com/manfredsteyer/native-federation-react-example)
- This example also shows the **watch mode** for compiling a federated application
- [Vite + Svelte example](https://github.com/gioboa/svelte-microfrontend-demo)
- [Vite + Angular example powered by AnalogJS](https://github.com/manfredsteyer/native-federation-vite-angular-demo)
- **Your Example:** If you have an example with aspects not covered here, let us know. We are happy to link it here.

@@ -53,2 +59,3 @@ ## Credits

- The Angular CLI-Team, esp. [Alan Agius](https://twitter.com/AlanAgius4) and [Charles Lyding](https://twitter.com/charleslyding), for working on the experimental esbuild builder for Angular
- [Giorgio Boa](https://twitter.com/giorgio_boa) for implementing the awesome vite plugin for module federation.

@@ -55,0 +62,0 @@ ## Using this Library

@@ -9,3 +9,3 @@ "use strict";

function getPackageInfo(packageName, workspaceRoot) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
const projectRoot = workspaceRoot;

@@ -37,3 +37,12 @@ const mainPkgName = getPkgFolder(packageName);

}
let cand = (_b = (_a = mainPkgJson === null || mainPkgJson === void 0 ? void 0 : mainPkgJson.exports) === null || _a === void 0 ? void 0 : _a[relSecondaryPath]) === null || _b === void 0 ? void 0 : _b.import;
let cand = (_a = mainPkgJson === null || mainPkgJson === void 0 ? void 0 : mainPkgJson.exports) === null || _a === void 0 ? void 0 : _a[relSecondaryPath];
if (typeof cand === 'string') {
return {
entryPoint: path.join(mainPkgPath, cand),
packageName,
version,
esm,
};
}
cand = (_c = (_b = mainPkgJson === null || mainPkgJson === void 0 ? void 0 : mainPkgJson.exports) === null || _b === void 0 ? void 0 : _b[relSecondaryPath]) === null || _c === void 0 ? void 0 : _c.import;
if (typeof cand === 'object') {

@@ -58,3 +67,3 @@ if (cand.module) {

}
cand = (_d = (_c = mainPkgJson === null || mainPkgJson === void 0 ? void 0 : mainPkgJson.exports) === null || _c === void 0 ? void 0 : _c[relSecondaryPath]) === null || _d === void 0 ? void 0 : _d.default;
cand = (_e = (_d = mainPkgJson === null || mainPkgJson === void 0 ? void 0 : mainPkgJson.exports) === null || _d === void 0 ? void 0 : _d[relSecondaryPath]) === null || _e === void 0 ? void 0 : _e.default;
if (cand) {

@@ -61,0 +70,0 @@ return {

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