Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Chryseis committed Dec 17, 2021
2 parents ac95256 + b4e951e commit 424231a
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.1.47",
"version": "2.1.48",
"private": true,
"license": "MIT",
"author": "cjinhuo",
Expand Down
10 changes: 5 additions & 5 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-browser",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK For Monitoring Browser Errors",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,10 +11,10 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-utils": "2.1.47",
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47",
"@zyf2e/monitor-types": "2.1.47"
"@zyf2e/monitor-utils": "2.1.48",
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48",
"@zyf2e/monitor-types": "2.1.48"
},
"buildOptions": {
"formats": [
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-core",
"version": "2.1.47",
"version": "2.1.48",
"description": "@zyf2e/monitor-core",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,9 +11,9 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-types": "2.1.47",
"@zyf2e/monitor-utils": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47"
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-types": "2.1.48",
"@zyf2e/monitor-utils": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48"
}
}
7 changes: 4 additions & 3 deletions packages/core/src/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface LogTypes {
tag?: TNumStrObj
level?: Severity
ex?: Error | any
type?: string
}

/**
Expand All @@ -26,13 +27,13 @@ interface LogTypes {
* @export
* @param {LogTypes} { message = 'emptyMsg', tag = '', level = Severity.Critical, ex = '' }
*/
export function log({ message = 'emptyMsg', tag = '', level = Severity.Critical, ex = '' }: LogTypes): void {
export function log({ message = 'emptyMsg', tag = '', level = Severity.Critical, ex = '', type = ERRORTYPES.LOG_ERROR }: LogTypes): void {
let errorInfo = {}
if (isError(ex)) {
errorInfo = extractErrorStack(ex, level)
}
const error = {
type: ERRORTYPES.LOG_ERROR,
type,
level,
message: unknownToString(message),
name: 'MITO.log',
Expand All @@ -47,5 +48,5 @@ export function log({ message = 'emptyMsg', tag = '', level = Severity.Critical,
data: message,
level: Severity.fromString(level.toString())
})
transportData.send(error)
transportData.send(error);
}
8 changes: 4 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-react",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK For Report React ErrorBoundary",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,8 +11,8 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-utils": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47"
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-utils": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48"
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-shared",
"version": "2.1.47",
"version": "2.1.48",
"description": "@zyf2e/monitor-shared",
"author": "cjinhuo",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-types",
"version": "2.1.47",
"version": "2.1.48",
"description": "@zyf2e/monitor-types",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,9 +11,9 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-utils": "2.1.47",
"@zyf2e/monitor-browser": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47"
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-utils": "2.1.48",
"@zyf2e/monitor-browser": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48"
}
}
2 changes: 1 addition & 1 deletion packages/types/src/transportData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface ICommonDataType {
}

export interface ReportDataType extends ICommonDataType {
type?: ERRORTYPES
type?: string
message?: string
url: string
name?: string
Expand Down
10 changes: 5 additions & 5 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-utils",
"version": "2.1.47",
"version": "2.1.48",
"description": "@zyf2e/monitor-utils",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,9 +11,9 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-browser": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47",
"@zyf2e/monitor-types": "2.1.47"
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-browser": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48",
"@zyf2e/monitor-types": "2.1.48"
}
}
10 changes: 5 additions & 5 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-vue",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK for monitoring Vue errors",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,9 +11,9 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-utils": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47",
"@zyf2e/monitor-types": "2.1.47"
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-utils": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48",
"@zyf2e/monitor-types": "2.1.48"
}
}
2 changes: 1 addition & 1 deletion packages/web-performance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-web-performance",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK For Report Web Performance",
"author": "allen(https://github.com/Chryseis)",
"license": "MIT",
Expand Down
8 changes: 4 additions & 4 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-web",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK For Monitoring Web(React、Vue) Errors",
"author": "cjinhuo(https://github.com/cjinhuo)",
"license": "MIT",
Expand All @@ -11,8 +11,8 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-browser": "2.1.47",
"@zyf2e/monitor-react": "2.1.47",
"@zyf2e/monitor-vue": "2.1.47"
"@zyf2e/monitor-browser": "2.1.48",
"@zyf2e/monitor-react": "2.1.48",
"@zyf2e/monitor-vue": "2.1.48"
}
}
2 changes: 1 addition & 1 deletion packages/wx-mini-performance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-wx-mini-performance",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK For Report Wx Mini Performance",
"main": "dist/wx-mini-performance.js",
"module": "dist/wx-mini-performance.js",
Expand Down
10 changes: 5 additions & 5 deletions packages/wx-mini/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zyf2e/monitor-wx-mini",
"version": "2.1.47",
"version": "2.1.48",
"description": "A SDK For Monitoring wx-mini Errors",
"author": "cjinhuo",
"license": "MIT",
Expand All @@ -11,10 +11,10 @@
"dist"
],
"dependencies": {
"@zyf2e/monitor-core": "2.1.47",
"@zyf2e/monitor-utils": "2.1.47",
"@zyf2e/monitor-shared": "2.1.47",
"@zyf2e/monitor-types": "2.1.47",
"@zyf2e/monitor-core": "2.1.48",
"@zyf2e/monitor-utils": "2.1.48",
"@zyf2e/monitor-shared": "2.1.48",
"@zyf2e/monitor-types": "2.1.48",
"@types/wechat-miniprogram": "^3.1.0"
}
}

0 comments on commit 424231a

Please sign in to comment.