@algolia/logger-console
Advanced tools
Comparing version 5.10.0 to 5.10.1
@@ -1,25 +0,5 @@ | ||
import { LogLevelEnum } from '@algolia/client-common'; | ||
import { LogLevelType, Logger } from '@algolia/client-common'; | ||
// src/logger.ts | ||
function createConsoleLogger(logLevel) { | ||
return { | ||
debug(message, args) { | ||
if (LogLevelEnum.Debug >= logLevel) { | ||
console.debug(message, args); | ||
} | ||
return Promise.resolve(); | ||
}, | ||
info(message, args) { | ||
if (LogLevelEnum.Info >= logLevel) { | ||
console.info(message, args); | ||
} | ||
return Promise.resolve(); | ||
}, | ||
error(message, args) { | ||
console.error(message, args); | ||
return Promise.resolve(); | ||
} | ||
}; | ||
} | ||
declare function createConsoleLogger(logLevel: LogLevelType): Logger; | ||
export { createConsoleLogger }; |
{ | ||
"name": "@algolia/logger-console", | ||
"version": "5.10.0", | ||
"version": "5.10.1", | ||
"description": "Promise-based log library using console log.", | ||
@@ -47,3 +47,3 @@ "repository": { | ||
"dependencies": { | ||
"@algolia/client-common": "5.10.0" | ||
"@algolia/client-common": "5.10.1" | ||
}, | ||
@@ -50,0 +50,0 @@ "engines": { |
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
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
6487
79
+ Added@algolia/client-common@5.10.1(transitive)
- Removed@algolia/client-common@5.10.0(transitive)