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

@module-federation/sdk

Package Overview
Dependencies
Maintainers
8
Versions
612
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/sdk - npm Package Compare versions

Comparing version 0.0.0-next-20240909073915 to 0.0.0-next-20240909083238

33

dist/index.cjs.js

@@ -5,4 +5,2 @@ 'use strict';

var polyfills = require('./polyfills.cjs.js');
const FederationModuleManifest = 'federation-manifest.json';

@@ -37,9 +35,2 @@ const MANIFEST_EXT = '.json';

const TEMP_DIR = '.federation';
const MFPrefetchCommon = {
identifier: 'MFDataPrefetch',
globalKey: '__PREFETCH__',
library: 'mf-data-prefetch',
exportsKey: '__PREFETCH_EXPORTS__',
fileName: 'bootstrap.js'
};

@@ -262,2 +253,13 @@ var ContainerPlugin = /*#__PURE__*/Object.freeze({

function _extends() {
_extends = Object.assign || function assign(target) {
for(var i = 1; i < arguments.length; i++){
var source = arguments[i];
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
}
return target;
};
return _extends.apply(this, arguments);
}
const simpleJoinRemoteEntry = (rPath, rName)=>{

@@ -366,3 +368,3 @@ if (!rPath) {

const prefetchInterface = manifest.metaData.prefetchInterface;
basicRemoteSnapshot = polyfills._extends({}, basicRemoteSnapshot, {
basicRemoteSnapshot = _extends({}, basicRemoteSnapshot, {
prefetchInterface

@@ -373,3 +375,3 @@ });

const { path, name, type } = manifest.metaData.prefetchEntry;
basicRemoteSnapshot = polyfills._extends({}, basicRemoteSnapshot, {
basicRemoteSnapshot = _extends({}, basicRemoteSnapshot, {
prefetchEntry: simpleJoinRemoteEntry(path, name),

@@ -380,7 +382,7 @@ prefetchEntryType: type

if ('publicPath' in manifest.metaData) {
remoteSnapshot = polyfills._extends({}, basicRemoteSnapshot, {
remoteSnapshot = _extends({}, basicRemoteSnapshot, {
publicPath: getPublicPath()
});
} else {
remoteSnapshot = polyfills._extends({}, basicRemoteSnapshot, {
remoteSnapshot = _extends({}, basicRemoteSnapshot, {
getPublicPath: getPublicPath()

@@ -578,3 +580,3 @@ });

cb: resolve,
attrs: polyfills._extends({
attrs: _extends({
fetchpriority: 'high'

@@ -715,3 +717,3 @@ }, attrs),

if (options && typeof options === 'object') {
return polyfills._extends({}, defaultOptions, options);
return _extends({}, defaultOptions, options);
}

@@ -730,3 +732,2 @@ throw new Error(`Unexpected type for \`${key}\`, expect boolean/undefined/object, got: ${typeof options}`);

exports.MFModuleType = MFModuleType;
exports.MFPrefetchCommon = MFPrefetchCommon;
exports.MODULE_DEVTOOL_IDENTIFIER = MODULE_DEVTOOL_IDENTIFIER;

@@ -733,0 +734,0 @@ exports.ManifestFileName = ManifestFileName;

@@ -1,3 +0,1 @@

import { _ as _extends } from './polyfills.esm.js';
const FederationModuleManifest = 'federation-manifest.json';

@@ -32,9 +30,2 @@ const MANIFEST_EXT = '.json';

const TEMP_DIR = '.federation';
const MFPrefetchCommon = {
identifier: 'MFDataPrefetch',
globalKey: '__PREFETCH__',
library: 'mf-data-prefetch',
exportsKey: '__PREFETCH_EXPORTS__',
fileName: 'bootstrap.js'
};

@@ -257,2 +248,13 @@ var ContainerPlugin = /*#__PURE__*/Object.freeze({

function _extends() {
_extends = Object.assign || function assign(target) {
for(var i = 1; i < arguments.length; i++){
var source = arguments[i];
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
}
return target;
};
return _extends.apply(this, arguments);
}
const simpleJoinRemoteEntry = (rPath, rName)=>{

@@ -712,2 +714,2 @@ if (!rPath) {

export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MFPrefetchCommon, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, TEMP_DIR, assert, composeKeyWithSeparator, ContainerPlugin as containerPlugin, ContainerReferencePlugin as containerReferencePlugin, createLink, createScript, createScriptNode, decodeName, encodeName, error, generateExposeFilename, generateShareFilename, generateSnapshotFromManifest, getProcessEnv, getResourceUrl, inferAutoPublicPath, isBrowserEnv, isDebugMode, isManifestProvider, isStaticResourcesEqual, loadScript, loadScriptNode, logger, ModuleFederationPlugin as moduleFederationPlugin, normalizeOptions, parseEntry, safeToString, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, TEMP_DIR, assert, composeKeyWithSeparator, ContainerPlugin as containerPlugin, ContainerReferencePlugin as containerReferencePlugin, createLink, createScript, createScriptNode, decodeName, encodeName, error, generateExposeFilename, generateShareFilename, generateSnapshotFromManifest, getProcessEnv, getResourceUrl, inferAutoPublicPath, isBrowserEnv, isDebugMode, isManifestProvider, isStaticResourcesEqual, loadScript, loadScriptNode, logger, ModuleFederationPlugin as moduleFederationPlugin, normalizeOptions, parseEntry, safeToString, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
{
"name": "@module-federation/sdk",
"version": "0.6.1",
"version": "0.6.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A sdk for support module federation",

@@ -26,8 +26,1 @@ export declare const FederationModuleManifest = "federation-manifest.json";

export declare const TEMP_DIR = ".federation";
export declare const MFPrefetchCommon: {
identifier: string;
globalKey: string;
library: string;
exportsKey: string;
fileName: string;
};

@@ -68,6 +68,2 @@ import type webpack from 'webpack';

export type SharedItem = string;
/**
* Enable Data Prefetch
*/
export type DataPrefetch = boolean;
export interface AdditionalDataOptions {

@@ -182,7 +178,3 @@ stats: Stats;

async?: boolean | AsyncBoundaryOptions;
dataPrefetch?: DataPrefetch;
virtualRuntimeEntry?: boolean;
experiments?: {
federationRuntime?: false | 'hoisted';
};
}

@@ -189,0 +181,0 @@ /**

{
"name": "@module-federation/sdk",
"version": "0.0.0-next-20240909073915",
"version": "0.0.0-next-20240909083238",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A sdk for support module federation",

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