@ohbug/react 2.0.1 → 2.0.2

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.
Files changed (1) hide show
  1. package/package.json +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohbug/react",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Ohbug SDK for React",
5
5
  "license": "Apache-2.0",
6
6
  "author": "chenyueban <jasonchan0527@gmail.com>",
@@ -30,11 +30,11 @@
30
30
  "react": "^16.8.6"
31
31
  },
32
32
  "dependencies": {
33
- "@ohbug/core": "2.0.1",
34
- "@ohbug/types": "2.0.1"
33
+ "@ohbug/core": "2.0.2",
34
+ "@ohbug/types": "2.0.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@ohbug/browser": "2.0.1",
37
+ "@ohbug/browser": "2.0.2",
38
38
  "@types/react": "^18.0.9"
39
39
  },
40
40
  "publishConfig": {
@@ -43,5 +43,6 @@
43
43
  "scripts": {
44
44
  "build": "tsup",
45
45
  "dev": "tsup --watch"
46
- }
46
+ },
47
+ "readme": "# `@ohbug/react`\n\n[![npm](https://img.shields.io/npm/v/@ohbug/react.svg?style=flat-square)](https://www.npmjs.com/package/@ohbug/react)\n[![npm bundle size](https://img.shields.io/bundlephobia/min/@ohbug/react?style=flat-square)](https://bundlephobia.com/result?p=@ohbug/react)\n\nEnglish | [简体中文](./README-zh_CN.md)\n\n## Installation\n\n```\npnpm instal @ohbug/browser @ohbug/react\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport Ohbug from '@ohbug/browser'\nimport { OhbugErrorBoundary } from '@ohbug/react'\n\nconst client = Ohbug.setup({ apiKey: 'YOUR_API_KEY' })\n\nfunction App() {\n return (\n <div className=\"App\">\n <OhbugErrorBoundary client={client}>\n <HelloWorld />\n </OhbugErrorBoundary>\n </div>\n )\n}\n```\n"
47
48
  }