@lowerdeck/sentry 1.0.0 → 1.0.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.
@@ -1,11 +1,12 @@
1
1
 
2
2
  $ microbundle
3
- Build "@lowerdeck/redis" to dist:
4
- 12.8 kB: index.cjs.gz
5
- 11.2 kB: index.cjs.br
6
- 11.8 kB: index.module.js.gz
7
- 10.3 kB: index.module.js.br
8
- 12.8 kB: index.module.js.gz
9
- 11.2 kB: index.module.js.br
10
- 12.9 kB: index.umd.js.gz
11
- 11.3 kB: index.umd.js.br
3
+ No name was provided for external module '@sentry/core' in output.globals – guessing 'SentryBase'
4
+ Build "@lowerdeck/sentry" to dist:
5
+ 272 B: index.cjs.gz
6
+ 219 B: index.cjs.br
7
+ 117 B: index.module.js.gz
8
+ 95 B: index.module.js.br
9
+ 127 B: index.module.js.gz
10
+ 96 B: index.module.js.br
11
+ 366 B: index.umd.js.gz
12
+ 308 B: index.umd.js.br
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @lowerdeck/sentry
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - add readmes
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # `@lowerdeck/sentry`
2
+
3
+ Lightweight wrapper for managing Sentry instances across your application. Provides a global reference that can be configured and accessed throughout your codebase.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @lowerdeck/sentry
9
+ yarn add @lowerdeck/sentry
10
+ bun add @lowerdeck/sentry
11
+ pnpm add @lowerdeck/sentry
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```typescript
17
+ import { setSentry, getSentry } from '@lowerdeck/sentry';
18
+ import * as Sentry from '@sentry/node';
19
+
20
+ // Initialize Sentry in your application
21
+ Sentry.init({
22
+ dsn: 'your-dsn-here',
23
+ environment: 'production'
24
+ });
25
+
26
+ // Set the Sentry instance
27
+ setSentry(Sentry);
28
+
29
+ // Access Sentry from anywhere in your application
30
+ const sentry = getSentry();
31
+ sentry.captureException(new Error('Something went wrong'));
32
+
33
+ // In other modules
34
+ import { getSentry } from '@lowerdeck/sentry';
35
+
36
+ function logError(error: Error) {
37
+ const sentry = getSentry();
38
+ sentry.captureException(error);
39
+ }
40
+ ```
41
+
42
+ ## License
43
+
44
+ This project is licensed under the Apache License 2.0.
45
+
46
+ <div align="center">
47
+ <sub>Built with ❤️ by <a href="https://metorial.com">Metorial</a></sub>
48
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowerdeck/sentry",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },