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
687
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-20240129035206 to 0.0.0-next-20240131231251

12

dist/index.cjs.js

@@ -111,2 +111,12 @@ 'use strict';

var DEBUG_LOG = "[ FEDERATION DEBUG ]";
function safeGetLocalStorageItem() {
try {
if (typeof window !== "undefined" && window.localStorage) {
return localStorage.getItem(BROWSER_LOG_KEY) === BROWSER_LOG_VALUE;
}
} catch (error) {
return typeof typeof document !== "undefined";
}
return false;
}
var Logger = /*#__PURE__*/ function() {

@@ -118,3 +128,3 @@ function Logger(identifier) {

this.identifier = identifier || DEBUG_LOG;
if (isBrowserEnv() && localStorage.getItem(BROWSER_LOG_KEY) === BROWSER_LOG_VALUE) {
if (isBrowserEnv() && safeGetLocalStorageItem()) {
this.enable = true;

@@ -121,0 +131,0 @@ } else if (isDebugMode()) {

@@ -107,2 +107,12 @@ function _define_property$2(obj, key, value) {

var DEBUG_LOG = "[ FEDERATION DEBUG ]";
function safeGetLocalStorageItem() {
try {
if (typeof window !== "undefined" && window.localStorage) {
return localStorage.getItem(BROWSER_LOG_KEY) === BROWSER_LOG_VALUE;
}
} catch (error) {
return typeof typeof document !== "undefined";
}
return false;
}
var Logger = /*#__PURE__*/ function() {

@@ -114,3 +124,3 @@ function Logger(identifier) {

this.identifier = identifier || DEBUG_LOG;
if (isBrowserEnv() && localStorage.getItem(BROWSER_LOG_KEY) === BROWSER_LOG_VALUE) {
if (isBrowserEnv() && safeGetLocalStorageItem()) {
this.enable = true;

@@ -117,0 +127,0 @@ } else if (isDebugMode()) {

2

package.json
{
"name": "@module-federation/sdk",
"version": "0.0.0-next-20240129035206",
"version": "0.0.0-next-20240131231251",
"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