@ohbug/vue 1.0.10 → 1.0.14
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/install.d.ts.map +1 -1
- package/dist/ohbug-vue.es.js +15 -0
- package/dist/ohbug-vue.umd.js +15 -63
- package/package.json +16 -11
- package/dist/ohbug-vue.cjs.js +0 -57
- package/dist/ohbug-vue.esm.js +0 -55
- package/dist/ohbug-vue.esm.min.js +0 -1
- package/dist/ohbug-vue.umd.min.js +0 -1
package/dist/install.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAGzC,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5B;AAkBD,wBAAgB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,cAAc,QA6B/D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
var e=function(){return(e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function t(e){return"string"==typeof e}var r=function(e,t,r,n){this.type=r,this.timestamp=n||(new Date).toISOString(),this.message=e,this.data=t};!function(){function n(e,t){var r=e.apiKey,n=e.appVersion,o=e.appType,a=e.releaseStage,i=e.timestamp,s=e.category,p=e.type,c=e.sdk,u=e.detail,f=e.device,l=e.user,h=e.actions,E=e.metaData;this.apiKey=r,this.appVersion=n,this.appType=o,this.releaseStage=a,this.timestamp=i,this.category=s,this.type=p,this.sdk=c,this.detail=u,this.device=f,this.user=l,this.actions=h,this.metaData=E,this._client=t}Object.defineProperty(n.prototype,"_isOhbugEvent",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.addAction=function(e,n,o,a){var i,s,p=this.actions,c=t(e)?e:"",u=n||{},f=t(o)?o:"",l=new r(c,u,f,a);p.length>=(null!==(s=null===(i=this._client)||void 0===i?void 0:i._config.maxActions)&&void 0!==s?s:30)&&p.shift(),p.push(l)},n.prototype.getUser=function(){return this.user},n.prototype.setUser=function(t){var r;if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(t)&&Object.keys(t).length<=6)return this.user=e(e({},this.user),t),this.getUser();null===(r=this._client)||void 0===r||r._logger.warn(function(e,t){return new Error("Invalid data\n- "+e+", got "+JSON.stringify(t))}("setUser should be an object and have up to 6 attributes",t))},n.prototype.addMetaData=function(e,t){return function(e,t,r){t&&(e[t]=r)}(this.metaData,e,t)},n.prototype.getMetaData=function(e){return function(e,t){if(e[t])return e[t]}(this.metaData,e)},n.prototype.deleteMetaData=function(e){return function(e,t){if(e[t])return delete e[t]}(this.metaData,e)},n.prototype.toJSON=function(){var e=this;return{apiKey:e.apiKey,appVersion:e.appVersion,appType:e.appType,timestamp:e.timestamp,category:e.category,type:e.type,sdk:e.sdk,device:e.device,detail:e.detail,user:e.user,actions:e.actions,metaData:e.metaData,releaseStage:e.releaseStage}}}();Object.freeze({__proto__:null,UNCAUGHT_ERROR:"uncaughtError",RESOURCE_ERROR:"resourceError",UNHANDLEDREJECTION_ERROR:"unhandledrejectionError",AJAX_ERROR:"ajaxError",FETCH_ERROR:"fetchError",WEBSOCKET_ERROR:"websocketError",UNKNOWN_ERROR:"unknownError",MESSAGE:"message",FEEDBACK:"feedback",VIEW:"view",REACT:"react",VUE:"vue",ANGULAR:"angular",MINIAPP_ERROR:"miniappError",MINIAPP_UNHANDLEDREJECTION_ERROR:"miniappUnhandledrejectionError",MINIAPP_PAGENOTFOUND_ERROR:"miniappPagenotfoundError",MINIAPP_MEMORYWARNING_ERROR:"miniappMemorywarningError"});var n={name:"OhbugVue",init:function(e,t){if(!t)throw new Error("Ohbug @ohbug/vue reference to `Vue` was undefined");return function(e,t){var r=t.config.errorHandler;t.config.errorHandler=function(t,n,o){var a=function(e){if(e.$root===e)return{component:"Root"};var t=e.$options;return{component:t.name,file:t.__file}}(n),i=a.component,s=a.file,p={name:t.name,message:t.message,stack:t.stack,errorInfo:o,component:i,file:s,props:n?n.$options.propsData:void 0},c=e.createEvent({category:"error",type:"vue",detail:p});e.notify(c),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t),"function"==typeof r&&r(t,n,o)}}(e,t)}};export{n as default};
|
package/dist/ohbug-vue.umd.js
CHANGED
|
@@ -1,63 +1,15 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const options = vm.$options;
|
|
17
|
-
const component = options.name;
|
|
18
|
-
const file = options.__file;
|
|
19
|
-
return {
|
|
20
|
-
component,
|
|
21
|
-
file,
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
function install(client, Vue) {
|
|
25
|
-
const prev = Vue.config.errorHandler;
|
|
26
|
-
const handler = (error, vm, info) => {
|
|
27
|
-
const { component, file } = getComponent(vm);
|
|
28
|
-
const detail = {
|
|
29
|
-
name: error.name,
|
|
30
|
-
message: error.message,
|
|
31
|
-
stack: error.stack,
|
|
32
|
-
errorInfo: info,
|
|
33
|
-
component,
|
|
34
|
-
file,
|
|
35
|
-
props: vm ? vm.$options.propsData : undefined,
|
|
36
|
-
};
|
|
37
|
-
const event = client.createEvent({
|
|
38
|
-
category: 'error',
|
|
39
|
-
type: 'vue',
|
|
40
|
-
detail,
|
|
41
|
-
});
|
|
42
|
-
client.notify(event);
|
|
43
|
-
if (typeof console !== 'undefined' && typeof console.error === 'function')
|
|
44
|
-
console.error(error);
|
|
45
|
-
if (typeof prev === 'function')
|
|
46
|
-
prev(error, vm, info);
|
|
47
|
-
};
|
|
48
|
-
Vue.config.errorHandler = handler;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const extension = createExtension({
|
|
52
|
-
name: 'OhbugVue',
|
|
53
|
-
init: (client, Vue) => {
|
|
54
|
-
if (!Vue) {
|
|
55
|
-
throw new Error('Ohbug @ohbug/vue reference to `Vue` was undefined');
|
|
56
|
-
}
|
|
57
|
-
return install(client, Vue);
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
return extension;
|
|
62
|
-
|
|
63
|
-
})));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).OhbugVue=t()}(this,(function(){"use strict";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var e=function(){return(e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function t(e){return"string"==typeof e}var r=function(e,t,r,n){this.type=r,this.timestamp=n||(new Date).toISOString(),this.message=e,this.data=t};!function(){function n(e,t){var r=e.apiKey,n=e.appVersion,o=e.appType,i=e.releaseStage,a=e.timestamp,s=e.category,p=e.type,u=e.sdk,c=e.detail,f=e.device,l=e.user,d=e.actions,h=e.metaData;this.apiKey=r,this.appVersion=n,this.appType=o,this.releaseStage=i,this.timestamp=a,this.category=s,this.type=p,this.sdk=u,this.detail=c,this.device=f,this.user=l,this.actions=d,this.metaData=h,this._client=t}Object.defineProperty(n.prototype,"_isOhbugEvent",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.addAction=function(e,n,o,i){var a,s,p=this.actions,u=t(e)?e:"",c=n||{},f=t(o)?o:"",l=new r(u,c,f,i);p.length>=(null!==(s=null===(a=this._client)||void 0===a?void 0:a._config.maxActions)&&void 0!==s?s:30)&&p.shift(),p.push(l)},n.prototype.getUser=function(){return this.user},n.prototype.setUser=function(t){var r;if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(t)&&Object.keys(t).length<=6)return this.user=e(e({},this.user),t),this.getUser();null===(r=this._client)||void 0===r||r._logger.warn(function(e,t){return new Error("Invalid data\n- "+e+", got "+JSON.stringify(t))}("setUser should be an object and have up to 6 attributes",t))},n.prototype.addMetaData=function(e,t){return function(e,t,r){t&&(e[t]=r)}(this.metaData,e,t)},n.prototype.getMetaData=function(e){return function(e,t){if(e[t])return e[t]}(this.metaData,e)},n.prototype.deleteMetaData=function(e){return function(e,t){if(e[t])return delete e[t]}(this.metaData,e)},n.prototype.toJSON=function(){var e=this;return{apiKey:e.apiKey,appVersion:e.appVersion,appType:e.appType,timestamp:e.timestamp,category:e.category,type:e.type,sdk:e.sdk,device:e.device,detail:e.detail,user:e.user,actions:e.actions,metaData:e.metaData,releaseStage:e.releaseStage}}}();Object.freeze({__proto__:null,UNCAUGHT_ERROR:"uncaughtError",RESOURCE_ERROR:"resourceError",UNHANDLEDREJECTION_ERROR:"unhandledrejectionError",AJAX_ERROR:"ajaxError",FETCH_ERROR:"fetchError",WEBSOCKET_ERROR:"websocketError",UNKNOWN_ERROR:"unknownError",MESSAGE:"message",FEEDBACK:"feedback",VIEW:"view",REACT:"react",VUE:"vue",ANGULAR:"angular",MINIAPP_ERROR:"miniappError",MINIAPP_UNHANDLEDREJECTION_ERROR:"miniappUnhandledrejectionError",MINIAPP_PAGENOTFOUND_ERROR:"miniappPagenotfoundError",MINIAPP_MEMORYWARNING_ERROR:"miniappMemorywarningError"});return{name:"OhbugVue",init:function(e,t){if(!t)throw new Error("Ohbug @ohbug/vue reference to `Vue` was undefined");return function(e,t){var r=t.config.errorHandler;t.config.errorHandler=function(t,n,o){var i=function(e){if(e.$root===e)return{component:"Root"};var t=e.$options;return{component:t.name,file:t.__file}}(n),a=i.component,s=i.file,p={name:t.name,message:t.message,stack:t.stack,errorInfo:o,component:a,file:s,props:n?n.$options.propsData:void 0},u=e.createEvent({category:"error",type:"vue",detail:p});e.notify(u),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t),"function"==typeof r&&r(t,n,o)}}(e,t)}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohbug/vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Ohbug SDK for Vue",
|
|
5
5
|
"author": "chenyueban <jasonchan0527@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ohbug-org/ohbug",
|
|
@@ -12,16 +12,22 @@
|
|
|
12
12
|
"url": "https://github.com/ohbug-org/ohbug"
|
|
13
13
|
},
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
|
-
"main": "dist/ohbug-vue.
|
|
16
|
-
"module": "dist/ohbug-vue.
|
|
17
|
-
"unpkg": "dist/ohbug-vue.umd.js",
|
|
18
|
-
"jsdelivr": "dist/ohbug-vue.umd.js",
|
|
19
|
-
"types": "dist/index.d.ts",
|
|
15
|
+
"main": "./dist/ohbug-vue.umd.js",
|
|
16
|
+
"module": "./dist/ohbug-vue.es.js",
|
|
17
|
+
"unpkg": "./dist/ohbug-vue.umd.js",
|
|
18
|
+
"jsdelivr": "./dist/ohbug-vue.umd.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/ohbug-vue.es.js",
|
|
23
|
+
"require": "./dist/ohbug-vue.umd.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
20
26
|
"files": [
|
|
21
27
|
"dist"
|
|
22
28
|
],
|
|
23
29
|
"dependencies": {
|
|
24
|
-
"@ohbug/core": "^1.1.
|
|
30
|
+
"@ohbug/core": "^1.1.7"
|
|
25
31
|
},
|
|
26
32
|
"devDependencies": {
|
|
27
33
|
"vue": "^2.6.11"
|
|
@@ -32,14 +38,13 @@
|
|
|
32
38
|
"buildOptions": {
|
|
33
39
|
"name": "OhbugVue",
|
|
34
40
|
"formats": [
|
|
35
|
-
"
|
|
36
|
-
"umd"
|
|
37
|
-
"cjs"
|
|
41
|
+
"es",
|
|
42
|
+
"umd"
|
|
38
43
|
],
|
|
39
44
|
"order": 4
|
|
40
45
|
},
|
|
41
46
|
"publishConfig": {
|
|
42
47
|
"access": "public"
|
|
43
48
|
},
|
|
44
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "323e4755a0da5893748c19901f3f709e903b6dd2"
|
|
45
50
|
}
|
package/dist/ohbug-vue.cjs.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function createExtension(extension) {
|
|
4
|
-
return extension;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const getComponent = (vm) => {
|
|
8
|
-
if (vm.$root === vm)
|
|
9
|
-
return {
|
|
10
|
-
component: 'Root',
|
|
11
|
-
};
|
|
12
|
-
const options = vm.$options;
|
|
13
|
-
const component = options.name;
|
|
14
|
-
const file = options.__file;
|
|
15
|
-
return {
|
|
16
|
-
component,
|
|
17
|
-
file,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
function install(client, Vue) {
|
|
21
|
-
const prev = Vue.config.errorHandler;
|
|
22
|
-
const handler = (error, vm, info) => {
|
|
23
|
-
const { component, file } = getComponent(vm);
|
|
24
|
-
const detail = {
|
|
25
|
-
name: error.name,
|
|
26
|
-
message: error.message,
|
|
27
|
-
stack: error.stack,
|
|
28
|
-
errorInfo: info,
|
|
29
|
-
component,
|
|
30
|
-
file,
|
|
31
|
-
props: vm ? vm.$options.propsData : undefined,
|
|
32
|
-
};
|
|
33
|
-
const event = client.createEvent({
|
|
34
|
-
category: 'error',
|
|
35
|
-
type: 'vue',
|
|
36
|
-
detail,
|
|
37
|
-
});
|
|
38
|
-
client.notify(event);
|
|
39
|
-
if (typeof console !== 'undefined' && typeof console.error === 'function')
|
|
40
|
-
console.error(error);
|
|
41
|
-
if (typeof prev === 'function')
|
|
42
|
-
prev(error, vm, info);
|
|
43
|
-
};
|
|
44
|
-
Vue.config.errorHandler = handler;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const extension = createExtension({
|
|
48
|
-
name: 'OhbugVue',
|
|
49
|
-
init: (client, Vue) => {
|
|
50
|
-
if (!Vue) {
|
|
51
|
-
throw new Error('Ohbug @ohbug/vue reference to `Vue` was undefined');
|
|
52
|
-
}
|
|
53
|
-
return install(client, Vue);
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
module.exports = extension;
|
package/dist/ohbug-vue.esm.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function createExtension(extension) {
|
|
2
|
-
return extension;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
const getComponent = (vm) => {
|
|
6
|
-
if (vm.$root === vm)
|
|
7
|
-
return {
|
|
8
|
-
component: 'Root',
|
|
9
|
-
};
|
|
10
|
-
const options = vm.$options;
|
|
11
|
-
const component = options.name;
|
|
12
|
-
const file = options.__file;
|
|
13
|
-
return {
|
|
14
|
-
component,
|
|
15
|
-
file,
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
function install(client, Vue) {
|
|
19
|
-
const prev = Vue.config.errorHandler;
|
|
20
|
-
const handler = (error, vm, info) => {
|
|
21
|
-
const { component, file } = getComponent(vm);
|
|
22
|
-
const detail = {
|
|
23
|
-
name: error.name,
|
|
24
|
-
message: error.message,
|
|
25
|
-
stack: error.stack,
|
|
26
|
-
errorInfo: info,
|
|
27
|
-
component,
|
|
28
|
-
file,
|
|
29
|
-
props: vm ? vm.$options.propsData : undefined,
|
|
30
|
-
};
|
|
31
|
-
const event = client.createEvent({
|
|
32
|
-
category: 'error',
|
|
33
|
-
type: 'vue',
|
|
34
|
-
detail,
|
|
35
|
-
});
|
|
36
|
-
client.notify(event);
|
|
37
|
-
if (typeof console !== 'undefined' && typeof console.error === 'function')
|
|
38
|
-
console.error(error);
|
|
39
|
-
if (typeof prev === 'function')
|
|
40
|
-
prev(error, vm, info);
|
|
41
|
-
};
|
|
42
|
-
Vue.config.errorHandler = handler;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const extension = createExtension({
|
|
46
|
-
name: 'OhbugVue',
|
|
47
|
-
init: (client, Vue) => {
|
|
48
|
-
if (!Vue) {
|
|
49
|
-
throw new Error('Ohbug @ohbug/vue reference to `Vue` was undefined');
|
|
50
|
-
}
|
|
51
|
-
return install(client, Vue);
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export default extension;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"OhbugVue",init:(e,o)=>{if(!o)throw new Error("Ohbug @ohbug/vue reference to `Vue` was undefined");return function(e,o){const n=o.config.errorHandler;o.config.errorHandler=(o,r,t)=>{const{component:c,file:f}=(e=>{if(e.$root===e)return{component:"Root"};const o=e.$options;return{component:o.name,file:o.__file}})(r),i={name:o.name,message:o.message,stack:o.stack,errorInfo:t,component:c,file:f,props:r?r.$options.propsData:void 0},s=e.createEvent({category:"error",type:"vue",detail:i});e.notify(s),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(o),"function"==typeof n&&n(o,r,t)}}(e,o)}};export default e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).OhbugVue=o()}(this,(function(){"use strict";return{name:"OhbugVue",init:(e,o)=>{if(!o)throw new Error("Ohbug @ohbug/vue reference to `Vue` was undefined");return function(e,o){const n=o.config.errorHandler;o.config.errorHandler=(o,t,r)=>{const{component:f,file:i}=(e=>{if(e.$root===e)return{component:"Root"};const o=e.$options;return{component:o.name,file:o.__file}})(t),u={name:o.name,message:o.message,stack:o.stack,errorInfo:r,component:f,file:i,props:t?t.$options.propsData:void 0},c=e.createEvent({category:"error",type:"vue",detail:u});e.notify(c),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(o),"function"==typeof n&&n(o,t,r)}}(e,o)}}}));
|