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
670
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-20241111073908 to 0.0.0-next-20241112032845

2

dist/package.json
{
"name": "@module-federation/sdk",
"version": "0.7.0",
"version": "0.7.2",
"license": "MIT",

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

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

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

@@ -14,3 +14,3 @@ # `@module-federation/sdk` Documentation

// Additionally, it provides a function to generate a snapshot from a manifest and environment detection utilities.
import { parseEntry, encodeName, decodeName, generateExposeFilename, generateShareFilename, Logger, isBrowserEnv, isDebugMode, getProcessEnv, generateSnapshotFromManifest } from '@module-federation/sdk';
import { parseEntry, encodeName, decodeName, generateExposeFilename, generateShareFilename, createLogger, isBrowserEnv, isDebugMode, getProcessEnv, generateSnapshotFromManifest } from '@module-federation/sdk';

@@ -32,4 +32,4 @@ // Parse an entry string into a RemoteEntryInfo object

// Create a new logger
const logger = new Logger('identifier');
// Create a logger
const logger = createLogger('identifier');

@@ -51,3 +51,3 @@ // Check if the current environment is a browser

- Type: `parseEntry(str: string, devVerOrUrl?: string)`
- Type: `parseEntry(str: string, devVerOrUrl?: string, separator?: string) `
- Parses a string into a RemoteEntryInfo object.

@@ -57,3 +57,3 @@

- Type: `encodeName(name: string, prefix = '', withExt = false)`
- Type: `encodeName(name: string, prefix?: string, withExt?: boolean)`
- Encodes a name with a prefix and optional extension.

@@ -76,6 +76,6 @@

### Logger
### createLogger
- Type: `new Logger(identifier?: string)`
- Creates a new logger for debugging.
- Type: `createLogger(prefix: string)`
- Creates a logger for debugging.

@@ -99,3 +99,3 @@ ### isBrowserEnv

- Type: `generateSnapshotFromManifest(manifest: Manifest, options: IOptions = {})`
- Type: `generateSnapshotFromManifest(manifest: Manifest, options?: IOptions)`
- Generates a snapshot from a manifest.

@@ -102,0 +102,0 @@

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