@tourmind-frontend/monitor-plugin-nuxt 1.4.2 → 1.5.0

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/dist/index.cjs CHANGED
@@ -147,7 +147,7 @@ function MonitorModule(options) {
147
147
  clientKey: options.clientKey
148
148
  }
149
149
  });
150
- const ssrReportUrl = `${options.url.replace(/\/+$/, "")}/api/ssr-report`;
150
+ const serverReportUrl = `${options.url.replace(/\/+$/, "")}/api/server-report`;
151
151
  const clientKey = options.clientKey;
152
152
  const commit = options.commit;
153
153
  const publicUrlBase = (options.publicUrl || "").replace(/\/+$/, "") || null;
@@ -181,7 +181,7 @@ function MonitorModule(options) {
181
181
  }
182
182
  }
183
183
  postJson(
184
- ssrReportUrl,
184
+ serverReportUrl,
185
185
  JSON.stringify({
186
186
  token: clientKey,
187
187
  stack: refinedStack,
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export interface MonitorModuleOptions {
3
3
  clientKey: string;
4
4
  /** monitor 项目 auth token(前缀 `fm_at_`),仅供构建机上传 sourcemap 使用。 */
5
5
  authToken: string;
6
- /** monitor 服务的 base URL,例如 `https://monitor.example.com`。`/api/report`、`/api/upload` 由下游 tracking / plugin-webpack 内部拼接。 */
6
+ /** monitor 服务的 base URL,例如 `https://monitor.example.com`。`/api/report`、`/api/upload` 由下游 tracking / plugin-webpack 内部拼接,`/api/server-report` 由本模块拼接。 */
7
7
  url: string;
8
8
  /** Commit hash,由调用方自行解析(如 `git rev-parse HEAD`)。 */
9
9
  commit: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tourmind-frontend/monitor-plugin-nuxt",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "Nuxt 2 module that captures runtime errors and uploads sourcemaps to a frontend-monitor server.",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",