send-sls-logger 0.0.36 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -18,7 +18,7 @@ interface initConfig {
18
18
  defaultExclude?: string[];
19
19
  options?: Options;
20
20
  /** 最大字符长度,如果关键字里包含token,则不进行截断 */
21
- strMaxLength: number;
21
+ strMaxLength?: number;
22
22
  /** 对最终发送的日志进行兜底处理,只能在init中使用 */
23
23
  userFormatResult?: FormatResult;
24
24
  }
package/lib/mini.d.ts CHANGED
@@ -16,7 +16,7 @@ interface initConfig {
16
16
  defaultExclude?: string[];
17
17
  options?: Options;
18
18
  /** 最大字符长度,如果关键字里包含token,则不进行截断 */
19
- strMaxLength: number;
19
+ strMaxLength?: number;
20
20
  /** 对最终发送的日志进行兜底处理,只能在init中使用 */
21
21
  userFormatResult?: FormatResult;
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "send-sls-logger",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "阿里云sls的logger发送",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"