This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git
commit 31b2da9c2adaa40fec0da61a99bec5c994d5e737 Author: Qiuxia Fan <[email protected]> AuthorDate: Sun Jan 5 16:54:10 2020 +0800 fix: address pr --- package.json | 2 +- src/errors/jsErrors.ts | 4 ++-- src/services/{trace.ts => base.ts} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0661817..8efbe41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "skywalking-client-js", - "version": "0.0.1", + "version": "0.1.0", "description": "js monitor", "main": "dist/index.js", "dependencies": { diff --git a/src/errors/jsErrors.ts b/src/errors/jsErrors.ts index d8b44c7..228b326 100644 --- a/src/errors/jsErrors.ts +++ b/src/errors/jsErrors.ts @@ -15,11 +15,11 @@ * limitations under the License. */ -import Trace from '../services/trace'; +import BaseMonitor from '../services/BaseMonitor'; import { GradeTypeEnum } from '../services/constant'; import { ErrorsCategory } from '../services/constant'; -class JSErrors extends Trace { +class JSErrors extends BaseMonitor { public handleErrors(options: {reportUrl: string}) { window.onerror = (message, url, line, col, error) => { this.logInfo = { diff --git a/src/services/trace.ts b/src/services/base.ts similarity index 98% rename from src/services/trace.ts rename to src/services/base.ts index 1478fc4..5437912 100644 --- a/src/services/trace.ts +++ b/src/services/base.ts @@ -18,7 +18,7 @@ import Task from './task'; import { ErrorsCategory, GradeTypeEnum } from './constant'; import { errorInfoFeilds } from './types'; -export default class Trace { +export default class BaseMonitor { public logInfo: errorInfoFeilds & {reportUrl: string} = { category: ErrorsCategory.UNKNOW_ERROR, grade: GradeTypeEnum.INFO,
