beeper-sdk 0.1.0 → 0.1.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.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# beeper-sdk
|
|
2
2
|
|
|
3
3
|
Server-side TypeScript SDK for Beeper notification APIs.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add
|
|
8
|
+
pnpm add beeper-sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import { BeeperClient } from "
|
|
14
|
+
import { BeeperClient } from "beeper-sdk";
|
|
15
15
|
|
|
16
16
|
const beeper = new BeeperClient({
|
|
17
17
|
baseUrl: process.env.BEEPER_BASE_URL!,
|
|
@@ -85,7 +85,7 @@ const pushStats = await beeper.getPushDeviceStats();
|
|
|
85
85
|
Failed requests throw `BeeperApiError`.
|
|
86
86
|
|
|
87
87
|
```ts
|
|
88
|
-
import { BeeperApiError } from "
|
|
88
|
+
import { BeeperApiError } from "beeper-sdk";
|
|
89
89
|
|
|
90
90
|
try {
|
|
91
91
|
await beeper.getUsage();
|
|
@@ -99,7 +99,7 @@ try {
|
|
|
99
99
|
## Release checklist
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
pnpm -F
|
|
103
|
-
pnpm -F
|
|
104
|
-
pnpm -F
|
|
102
|
+
pnpm -F beeper-sdk run clean
|
|
103
|
+
pnpm -F beeper-sdk run build
|
|
104
|
+
pnpm -F beeper-sdk run check-types
|
|
105
105
|
```
|