Socket
Socket
Sign inDemoInstall

qcloud-iotexplorer-logger

Package Overview
Dependencies
1
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-alpha.20230505b002 to 3.0.0-alpha.20230507b003

2

dist/cjs/constants.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LEVEL = void 0;
exports.LEVEL = Symbol('level');
exports.LEVEL = '__LEVEL__';
//# sourceMappingURL=constants.js.map

@@ -49,3 +49,3 @@ "use strict";

catch (err) {
this.curRetryTime++;
this.curRetryTime += 1;
debuggerLogger.error(`exec customRequest fail, curRetryTime: ${this.curRetryTime}`, err);

@@ -52,0 +52,0 @@ if (this.curRetryTime >= this.maxRetryTime) {

@@ -37,4 +37,7 @@ "use strict";

}
add(transport) {
if (transport instanceof LoggerTransport_1.LoggerTransport) {
add(transport, options = {
force: false,
}) {
if ((transport instanceof LoggerTransport_1.LoggerTransport || options.force)
&& !this.transports.includes(transport)) {
transport.load(this);

@@ -41,0 +44,0 @@ this.transports.push(transport);

@@ -1,2 +0,2 @@

export const LEVEL = Symbol('level');
export const LEVEL = '__LEVEL__';
//# sourceMappingURL=constants.js.map

@@ -46,3 +46,3 @@ import { __rest } from "tslib";

catch (err) {
this.curRetryTime++;
this.curRetryTime += 1;
debuggerLogger.error(`exec customRequest fail, curRetryTime: ${this.curRetryTime}`, err);

@@ -49,0 +49,0 @@ if (this.curRetryTime >= this.maxRetryTime) {

@@ -33,4 +33,7 @@ import createDebuggerLogger from '../lib/debugLogger';

}
add(transport) {
if (transport instanceof LoggerTransport) {
add(transport, options = {
force: false,
}) {
if ((transport instanceof LoggerTransport || options.force)
&& !this.transports.includes(transport)) {
transport.load(this);

@@ -37,0 +40,0 @@ this.transports.push(transport);

@@ -1,2 +0,2 @@

export declare const LEVEL: unique symbol;
export declare const LEVEL = "__LEVEL__";
export type Callback = (err?: unknown) => void;

@@ -30,3 +30,5 @@ import { Format } from './logger-format';

constructor({ format, level, transports, }?: LoggerOptions);
add(transport: any): void;
add(transport: any, options?: {
force: boolean;
}): void;
remove(transport: any): void;

@@ -33,0 +35,0 @@ updateFormat(format: Format): void;

{
"name": "qcloud-iotexplorer-logger",
"version": "3.0.0-alpha.20230505b002",
"version": "3.0.0-alpha.20230507b003",
"description": "",

@@ -28,3 +28,3 @@ "license": "MIT",

},
"gitHead": "a54d63b377619a8268b858492d031705831969ec"
"gitHead": "b64540d610a6b02a5400cb1e6e404949d378e5eb"
}

@@ -1,3 +0,3 @@

export const LEVEL = Symbol('level');
export const LEVEL = '__LEVEL__';
export type Callback = (err?: unknown) => void;

@@ -84,3 +84,3 @@ import { LoggerTransport, LoggerTransportOptions } from '../../logger';

} catch (err) {
this.curRetryTime++;
this.curRetryTime += 1;
debuggerLogger.error(`exec customRequest fail, curRetryTime: ${this.curRetryTime}`, err);

@@ -87,0 +87,0 @@

@@ -23,2 +23,3 @@ import createDebuggerLogger from '../lib/debugLogger';

[LEVEL]: LogType;
[key: string]: unknown;

@@ -72,4 +73,9 @@ }

add(transport) {
if (transport instanceof LoggerTransport) {
add(transport, options = {
force: false,
}) {
if (
(transport instanceof LoggerTransport || options.force)
&& !this.transports.includes(transport)
) {
transport.load(this);

@@ -76,0 +82,0 @@ this.transports.push(transport);

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc