@egym/mwa-logger
Advanced tools
Comparing version 0.2.20 to 0.2.22
@@ -5,2 +5,3 @@ 'use strict'; | ||
let id = 1; | ||
let messages = []; | ||
@@ -18,3 +19,3 @@ let listeners = []; | ||
type: 'http', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -29,3 +30,3 @@ method, | ||
type: 'http', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -40,3 +41,3 @@ method, | ||
type: 'debug', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -48,3 +49,3 @@ text, | ||
type: 'portals', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -57,3 +58,3 @@ text: topic, | ||
type: 'portals', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -66,3 +67,3 @@ text: topic, | ||
type: 'webVitals', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -74,3 +75,3 @@ text: metric.name, | ||
type: 'wsod', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -287,3 +288,3 @@ text: 'WSOD', | ||
return (React.createElement("div", { style: wrapperStyle }, (Array.isArray(data) || typeof data === 'object') | ||
? (React.createElement("pre", { style: Object.assign({ fontFamily: 'HelveticaNeue' }, preStyle) }, JSON.stringify(data, null, 2))) : data)); | ||
? (React.createElement("pre", { style: Object.assign({ fontFamily: 'HelveticaNeue' }, preStyle) }, JSON.stringify(data, null, 2))) : String(data))); | ||
}; | ||
@@ -290,0 +291,0 @@ |
import React, { useState, useCallback, useMemo, useSyncExternalStore, useEffect } from 'react'; | ||
let id = 1; | ||
let messages = []; | ||
@@ -15,3 +16,3 @@ let listeners = []; | ||
type: 'http', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -26,3 +27,3 @@ method, | ||
type: 'http', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -37,3 +38,3 @@ method, | ||
type: 'debug', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -45,3 +46,3 @@ text, | ||
type: 'portals', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -54,3 +55,3 @@ text: topic, | ||
type: 'portals', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -63,3 +64,3 @@ text: topic, | ||
type: 'webVitals', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -71,3 +72,3 @@ text: metric.name, | ||
type: 'wsod', | ||
id: Date.now(), | ||
id: id + 1, | ||
dateTime: new Date(), | ||
@@ -284,3 +285,3 @@ text: 'WSOD', | ||
return (React.createElement("div", { style: wrapperStyle }, (Array.isArray(data) || typeof data === 'object') | ||
? (React.createElement("pre", { style: Object.assign({ fontFamily: 'HelveticaNeue' }, preStyle) }, JSON.stringify(data, null, 2))) : data)); | ||
? (React.createElement("pre", { style: Object.assign({ fontFamily: 'HelveticaNeue' }, preStyle) }, JSON.stringify(data, null, 2))) : String(data))); | ||
}; | ||
@@ -287,0 +288,0 @@ |
{ | ||
"name": "@egym/mwa-logger", | ||
"version": "0.2.20", | ||
"version": "0.2.22", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "EGYM", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1742
209222