@superset-ui/core
Advanced tools
Comparing version 0.14.20 to 0.14.21
@@ -24,18 +24,19 @@ "use strict"; | ||
*/ | ||
const logger = window.console || { | ||
debug() {}, | ||
const console = window.console || {}; | ||
log() {}, | ||
const log = console.log || (() => {}); | ||
info() {}, | ||
warn() {}, | ||
error() {}, | ||
trace() {} | ||
const logger = { | ||
log, | ||
debug: console.debug || log, | ||
info: console.info || log, | ||
warn: console.warn || log, | ||
error: console.error || log, | ||
trace: console.trace || log, | ||
table: console.table || log | ||
}; | ||
/** | ||
* Superset frontend logger, currently just an alias to console. | ||
* This may be extended to support numerous console operations safely | ||
* i.e.: https://developer.mozilla.org/en-US/docs/Web/API/Console | ||
*/ | ||
@@ -42,0 +43,0 @@ |
@@ -19,7 +19,38 @@ /** | ||
*/ | ||
declare const logger: Console; | ||
declare const logger: { | ||
log: { | ||
(...data: any[]): void; | ||
(message?: any, ...optionalParams: any[]): void; | ||
}; | ||
debug: { | ||
(...data: any[]): void; | ||
(message?: any, ...optionalParams: any[]): void; | ||
}; | ||
info: { | ||
(...data: any[]): void; | ||
(message?: any, ...optionalParams: any[]): void; | ||
}; | ||
warn: { | ||
(...data: any[]): void; | ||
(message?: any, ...optionalParams: any[]): void; | ||
}; | ||
error: { | ||
(...data: any[]): void; | ||
(message?: any, ...optionalParams: any[]): void; | ||
}; | ||
trace: { | ||
(...data: any[]): void; | ||
(message?: any, ...optionalParams: any[]): void; | ||
}; | ||
table: { | ||
(tabularData?: any, properties?: string[] | undefined): void; | ||
(tabularData: any, properties?: string[] | undefined): void; | ||
}; | ||
}; | ||
/** | ||
* Superset frontend logger, currently just an alias to console. | ||
* This may be extended to support numerous console operations safely | ||
* i.e.: https://developer.mozilla.org/en-US/docs/Web/API/Console | ||
*/ | ||
export default logger; | ||
//# sourceMappingURL=logging.d.ts.map |
@@ -24,18 +24,19 @@ "use strict"; | ||
*/ | ||
const logger = window.console || { | ||
debug() {}, | ||
const console = window.console || {}; | ||
log() {}, | ||
const log = console.log || (() => {}); | ||
info() {}, | ||
warn() {}, | ||
error() {}, | ||
trace() {} | ||
const logger = { | ||
log, | ||
debug: console.debug || log, | ||
info: console.info || log, | ||
warn: console.warn || log, | ||
error: console.error || log, | ||
trace: console.trace || log, | ||
table: console.table || log | ||
}; | ||
/** | ||
* Superset frontend logger, currently just an alias to console. | ||
* This may be extended to support numerous console operations safely | ||
* i.e.: https://developer.mozilla.org/en-US/docs/Web/API/Console | ||
*/ | ||
@@ -42,0 +43,0 @@ |
{ | ||
"name": "@superset-ui/core", | ||
"version": "0.14.20", | ||
"version": "0.14.21", | ||
"description": "Superset UI core", | ||
@@ -35,3 +35,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "59f81e6c9ddee2a1a039b95b22954dca963db608" | ||
"gitHead": "b952584fc6f52aba65c86af878c07bb6f43ee303" | ||
} |
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
54893
1016