@ohbug/angular 2.0.1 → 2.0.4
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var E=(e,r)=>{for(var a in r)n(e,a,{get:r[a],enumerable:!0})},c=(e,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of d(r))!g.call(e,t)&&t!==a&&n(e,t,{get:()=>r[t],enumerable:!(o=p(r,t))||o.enumerable});return e};var m=e=>c(n({},"__esModule",{value:!0}),e);var
|
|
1
|
+
"use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var E=(e,r)=>{for(var a in r)n(e,a,{get:r[a],enumerable:!0})},c=(e,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of d(r))!g.call(e,t)&&t!==a&&n(e,t,{get:()=>r[t],enumerable:!(o=p(r,t))||o.enumerable});return e};var m=e=>c(n({},"__esModule",{value:!0}),e);var y={};E(y,{default:()=>s});module.exports=m(y);var l=require("@ohbug/core");function f(e,r){class a{handleError(t){let i={message:t.message,stack:t.stack},u=e.createEvent({category:"error",type:l.EventTypes.ANGULAR,detail:i});e.notify(u)}}return{provide:r,useClass:a}}var s=f;0&&(module.exports={});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EventTypes as
|
|
1
|
+
import{EventTypes as l}from"@ohbug/core";function s(r,t){class a{handleError(e){let o={message:e.message,stack:e.stack},n=r.createEvent({category:"error",type:l.ANGULAR,detail:o});r.notify(n)}}return{provide:t,useClass:a}}var i=s;export{i as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohbug/angular",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Ohbug SDK for Angular",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "chenyueban <jasonchan0527@gmail.com>",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@angular/core": "^13.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ohbug/core": "2.0.
|
|
34
|
-
"@ohbug/types": "2.0.
|
|
33
|
+
"@ohbug/core": "2.0.4",
|
|
34
|
+
"@ohbug/types": "2.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@angular/core": "^
|
|
37
|
+
"@angular/core": "^14.0.6"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
@@ -42,5 +42,6 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsup",
|
|
44
44
|
"dev": "tsup --watch"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"readme": "# `@ohbug/angular`\n\n[](https://www.npmjs.com/package/@ohbug/angular)\n[](https://bundlephobia.com/result?p=@ohbug/angular)\n\nEnglish | [简体中文](./README-zh_CN.md)\n\n## Installation\n\n```\npnpm instal @ohbug/browser @ohbug/angular\n```\n\n## Usage\n\n```jsx\n// app.module.ts\nimport Ohbug from '@ohbug/browser'\nimport { ErrorHandler } from '@angular/core'\nimport OhbugAngular from '@ohbug/angular'\n\nconst client = Ohbug.setup({ apiKey: 'YOUR_API_KEY' })\n\n@NgModule({\n // others\n providers: [OhbugAngular(client, ErrorHandler)],\n})\nexport class AppModule {}\n```\n"
|
|
46
47
|
}
|