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

@module-federation/runtime

Package Overview
Dependencies
Maintainers
8
Versions
697
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/runtime - npm Package Compare versions

Comparing version 0.0.0-next-20240115042410 to 0.0.0-next-20240115064607

11

dist/share.cjs.js

@@ -686,6 +686,9 @@ 'use strict';

};
const isLoaded = (shared)=>{
return Boolean(shared.loaded) || typeof shared.lib === 'function';
};
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) {
const versions = shareScopeMap[scope][pkgName];
const callback = function(prev, cur) {
return !versions[prev].loaded && versionLt(prev, cur);
return !isLoaded(versions[prev]) && versionLt(prev, cur);
};

@@ -697,4 +700,4 @@ return findVersion(shareScopeMap, scope, pkgName, callback);

const callback = function(prev, cur) {
if (versions[cur].loaded) {
if (versions[prev].loaded) {
if (isLoaded(versions[cur])) {
if (isLoaded(versions[prev])) {
return Boolean(versionLt(prev, cur));

@@ -705,3 +708,3 @@ } else {

}
if (versions[prev].loaded) {
if (isLoaded(versions[prev])) {
return false;

@@ -708,0 +711,0 @@ }

@@ -684,6 +684,9 @@ function getBuilderId() {

};
const isLoaded = (shared)=>{
return Boolean(shared.loaded) || typeof shared.lib === 'function';
};
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) {
const versions = shareScopeMap[scope][pkgName];
const callback = function(prev, cur) {
return !versions[prev].loaded && versionLt(prev, cur);
return !isLoaded(versions[prev]) && versionLt(prev, cur);
};

@@ -695,4 +698,4 @@ return findVersion(shareScopeMap, scope, pkgName, callback);

const callback = function(prev, cur) {
if (versions[cur].loaded) {
if (versions[prev].loaded) {
if (isLoaded(versions[cur])) {
if (isLoaded(versions[prev])) {
return Boolean(versionLt(prev, cur));

@@ -703,3 +706,3 @@ } else {

}
if (versions[prev].loaded) {
if (isLoaded(versions[prev])) {
return false;

@@ -706,0 +709,0 @@ }

{
"name": "@module-federation/runtime",
"version": "0.0.0-next-20240115042410",
"version": "0.0.0-next-20240115064607",
"author": "zhouxiao <codingzx@gmail.com>",

@@ -48,4 +48,4 @@ "main": "./dist/index.cjs",

"dependencies": {
"@module-federation/sdk": "0.0.0-next-20240115042410"
"@module-federation/sdk": "0.0.0-next-20240115064607"
}
}
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