@module-federation/sdk
Advanced tools
Comparing version 0.0.0-next-20241111073908 to 0.0.0-next-20241112032845
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104267