@tourmind-frontend/monitor-plugin-nuxt 1.2.1 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tourmind-frontend/monitor-plugin-nuxt",
3
- "version": "1.2.1",
3
+ "version": "1.3.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",
@@ -22,7 +22,7 @@
22
22
  "peerDependencies": {
23
23
  "nuxt": "^2.4.0",
24
24
  "vue": "^2.5.0",
25
- "@tourmind-frontend/monitor-tracking": "^1.2.0"
25
+ "@tourmind-frontend/monitor-tracking": "^1.3.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^20.0.0",
@@ -7,7 +7,7 @@ export default function () {
7
7
  url: "<%= options.url %>",
8
8
  token: "<%= options.token %>",
9
9
  // 桥接 Vue 2 的 errorHandler,链式调用既有 handler,不覆盖。
10
- callback: function (handler) {
10
+ listener: function (handler) {
11
11
  var existing = Vue.config.errorHandler;
12
12
  Vue.config.errorHandler = function (err, vm, info) {
13
13
  try {