You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/01/05 12:24:51 UTC

[skywalking-client-js] 18/23: fix: update params

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 0c3748f02615be3f3a84890106515ebabcd1d588
Author: Qiuxia Fan <fi...@outlook.com>
AuthorDate: Sun Jan 5 14:23:29 2020 +0800

    fix: update params
---
 .gitignore             | 4 +++-
 package.json           | 2 +-
 src/errors/jsErrors.ts | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 4bfea38..4382f5c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,11 @@
 # dependencies
 /node_modules
 
+# production
+/dist
+
 # misc
 .DS_Store
-.vscode/*
 
 .idea
 *.iml
diff --git a/package.json b/package.json
index e003d86..0661817 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
   "name": "skywalking-client-js",
   "version": "0.0.1",
   "description": "js monitor",
-  "main": "index.js",
+  "main": "dist/index.js",
   "dependencies": {
     "clean-webpack-plugin": "3.0.0",
     "express": "^4.17.1",
diff --git a/src/errors/jsErrors.ts b/src/errors/jsErrors.ts
index 2d1a391..d8b44c7 100644
--- a/src/errors/jsErrors.ts
+++ b/src/errors/jsErrors.ts
@@ -25,7 +25,7 @@ class JSErrors extends Trace {
       this.logInfo = {
         reportUrl: options.reportUrl,
         category: ErrorsCategory.JS_ERROR,
-        grade: GradeTypeEnum.WARNING,
+        grade: GradeTypeEnum.ERROR,
         errorUrl: url,
         line,
         col,