@deephaven/log
Advanced tools
Comparing version 0.4.0 to 0.4.1-dashboards.0
@@ -0,1 +1,2 @@ | ||
import 'custom-event-polyfill'; | ||
export declare enum LOG_PROXY_TYPE { | ||
@@ -2,0 +3,0 @@ DEBUG = "D", |
/* eslint-disable no-console */ | ||
// eslint-disable-next-line max-classes-per-file | ||
import { EventTarget } from 'event-target-shim'; | ||
import 'custom-event-polyfill'; | ||
import Log from './Log'; | ||
@@ -12,2 +14,7 @@ export var LOG_PROXY_TYPE; | ||
})(LOG_PROXY_TYPE || (LOG_PROXY_TYPE = {})); | ||
function makeEvent(type, detail) { | ||
return new CustomEvent(type, { | ||
detail: detail, | ||
}); | ||
} | ||
var LogProxy = /** @class */ (function () { | ||
@@ -25,5 +32,3 @@ function LogProxy() { | ||
} | ||
_this.eventTarget.dispatchEvent(new CustomEvent(LOG_PROXY_TYPE.UNCAUGHT_ERROR, { | ||
detail: messages, | ||
})); | ||
_this.eventTarget.dispatchEvent(makeEvent(LOG_PROXY_TYPE.UNCAUGHT_ERROR, messages)); | ||
}; | ||
@@ -46,3 +51,3 @@ this.debug = console.debug; | ||
} | ||
_this.eventTarget.dispatchEvent(new CustomEvent(LOG_PROXY_TYPE.DEBUG, { detail: args })); | ||
_this.eventTarget.dispatchEvent(makeEvent(LOG_PROXY_TYPE.DEBUG, args)); | ||
_this.debug.apply(console, args); | ||
@@ -55,3 +60,3 @@ }; | ||
} | ||
_this.eventTarget.dispatchEvent(new CustomEvent(LOG_PROXY_TYPE.LOG, { detail: args })); | ||
_this.eventTarget.dispatchEvent(makeEvent(LOG_PROXY_TYPE.LOG, args)); | ||
_this.log.apply(console, args); | ||
@@ -64,3 +69,3 @@ }; | ||
} | ||
_this.eventTarget.dispatchEvent(new CustomEvent(LOG_PROXY_TYPE.WARN, { detail: args })); | ||
_this.eventTarget.dispatchEvent(makeEvent(LOG_PROXY_TYPE.WARN, args)); | ||
_this.warn.apply(console, args); | ||
@@ -73,3 +78,3 @@ }; | ||
} | ||
_this.eventTarget.dispatchEvent(new CustomEvent(LOG_PROXY_TYPE.ERROR, { detail: args })); | ||
_this.eventTarget.dispatchEvent(makeEvent(LOG_PROXY_TYPE.ERROR, args)); | ||
_this.error.apply(console, args); | ||
@@ -76,0 +81,0 @@ }; |
{ | ||
"name": "@deephaven/log", | ||
"version": "0.4.0", | ||
"version": "0.4.1-dashboards.0+68167cf", | ||
"description": "Deephaven Logger", | ||
@@ -54,5 +54,6 @@ "author": "Deephaven Data Labs LLC", | ||
"dependencies": { | ||
"custom-event-polyfill": "^1.0.7", | ||
"event-target-shim": "^6.0.2" | ||
}, | ||
"gitHead": "9b983b76cc5bd3785efd737d36c4c0b301734868" | ||
"gitHead": "68167cf5a99251f03d70da0b6f410066c4e5a2eb" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
82086
471
2
1
+ Addedcustom-event-polyfill@^1.0.7
+ Addedcustom-event-polyfill@1.0.7(transitive)