@zxhy-npm/send-sls-logger 1.1.16 → 1.1.17

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.
Files changed (2) hide show
  1. package/lib/init.js +3 -3
  2. package/package.json +3 -2
package/lib/init.js CHANGED
@@ -139,9 +139,6 @@ class DefaultLog {
139
139
  if (getType(userFormatResult) === 'function') {
140
140
  formatResultObj = userFormatResult?.(formatResultObj) || formatResultObj;
141
141
  }
142
- if (getType(activeFormatResult) === 'function') {
143
- formatResultObj = activeFormatResult?.(formatResultObj) || formatResultObj;
144
- }
145
142
  if (isExcludeMsg) {
146
143
  debug && console.log(`该日志已被忽略:`, formatResultObj);
147
144
  return;
@@ -166,6 +163,9 @@ class DefaultLog {
166
163
  });
167
164
  Object.assign(formatResultObj, { ext });
168
165
  }
166
+ if (getType(activeFormatResult) === 'function') {
167
+ formatResultObj = activeFormatResult?.(formatResultObj) || formatResultObj;
168
+ }
169
169
  tracker.send({
170
170
  ...formatResultObj,
171
171
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zxhy-npm/send-sls-logger",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "阿里云sls的logger发送",
5
5
  "scripts": {
6
6
  "build": "rm -rf lib && tsc"
@@ -26,5 +26,6 @@
26
26
  "dependencies": {
27
27
  "@aliyun-sls/web-track-browser": "^0.0.3",
28
28
  "@aliyun-sls/web-track-mini": "^0.0.2"
29
- }
29
+ },
30
+ "repository": "git@gitee.com:howlove/send-sls-logger.git"
30
31
  }