@inso_web/els-react 0.5.0 → 0.5.1

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 (2) hide show
  1. package/README.md +2 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -68,7 +68,6 @@ import { ELSProvider } from '@inso_web/els-react';
68
68
  import { App } from './App';
69
69
 
70
70
  const client = new ELSClient({
71
- endpoint: import.meta.env.VITE_ELS_URL,
72
71
  apiKey: import.meta.env.VITE_ELS_API_KEY,
73
72
  appSlug: 'my-react-app',
74
73
  serviceName: 'web',
@@ -173,7 +172,6 @@ userLog.info('viewed profile');
173
172
 
174
173
  | Option | Description |
175
174
  |---|---|
176
- | `endpoint` | ELS URL (required) |
177
175
  | `apiKey` | API key (required) |
178
176
  | `appSlug` | App slug (required) |
179
177
  | `serviceName` | Service / module name |
@@ -223,7 +221,6 @@ import { ELSClient } from '@inso_web/els-client';
223
221
  import { ELSProvider, ELSErrorBoundary, useELS } from '@inso_web/els-react';
224
222
 
225
223
  const client = new ELSClient({
226
- endpoint: import.meta.env.VITE_ELS_URL,
227
224
  apiKey: import.meta.env.VITE_ELS_API_KEY,
228
225
  appSlug: 'my-react-app',
229
226
  deploymentEnv: import.meta.env.PROD ? 'PRODUCTION' : 'DEV',
@@ -251,7 +248,7 @@ function MyButton() {
251
248
 
252
249
  | Sentry | ELS | Notes |
253
250
  |---|---|---|
254
- | `Sentry.init({ dsn })` | `new ELSClient({ endpoint, apiKey, appSlug })` | Three explicit fields |
251
+ | `Sentry.init({ dsn })` | `new ELSClient({ apiKey, appSlug })` | Three explicit fields |
255
252
  | `<Sentry.ErrorBoundary>` | `<ELSErrorBoundary>` | Same role, same API |
256
253
  | `Sentry.captureException(err)` | `log.error(err)` | Via `useELS()` |
257
254
  | `Sentry.captureMessage(msg, level)` | `log.<level>(msg)` | |
@@ -291,7 +288,6 @@ import { ELSClient } from '@inso_web/els-client';
291
288
  import { ELSProvider, ELSErrorBoundary, useELS } from '@inso_web/els-react';
292
289
 
293
290
  const client = new ELSClient({
294
- endpoint: import.meta.env.VITE_ELS_URL,
295
291
  apiKey: import.meta.env.VITE_ELS_API_KEY,
296
292
  appSlug: 'my-react-app',
297
293
  });
@@ -304,7 +300,7 @@ log.error(new Error('boom'));
304
300
 
305
301
  | LogRocket | ELS | Notes |
306
302
  |---|---|---|
307
- | `LogRocket.init('app/123')` | `new ELSClient({ endpoint, apiKey, appSlug })` | Three explicit fields |
303
+ | `LogRocket.init('app/123')` | `new ELSClient({ apiKey, appSlug })` | Three explicit fields |
308
304
  | `LogRocket.identify(id, meta)` | `log.child({ user: { id, ...meta } })` | Bindings travel with the logger |
309
305
  | `LogRocket.captureException(err)` | `log.error(err)` | |
310
306
  | `LogRocket.log/info/warn/error` | `log.<level>(...)` | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inso_web/els-react",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "React‑обёртка для Error Logs Service (ELS): Provider, hooks, ErrorBoundary и HOC для автоматического репорта ошибок компонентов.",
5
5
  "homepage": "https://api.insoweb.ru/els",
6
6
  "author": "INSOWEB",