@runbandit/sdk 1.0.0 → 2.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.
- package/README.md +3 -1
- package/dist/index.d.ts +814 -5
- package/dist/index.js +844 -30
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install @runbandit/sdk
|
|
|
14
14
|
import { BanditsClient } from '@runbandit/sdk'
|
|
15
15
|
|
|
16
16
|
const client = new BanditsClient({
|
|
17
|
-
apiUrl: 'https://
|
|
17
|
+
apiUrl: 'https://runbandit.com',
|
|
18
18
|
apiKey: 'your-api-key',
|
|
19
19
|
})
|
|
20
20
|
|
|
@@ -29,4 +29,6 @@ client.trackNamedEvent({
|
|
|
29
29
|
})
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
**Note:** The SDK automatically adds `/api` to your `apiUrl`, so use the base domain (e.g., `https://runbandit.com`) without the `/api` path. If your `apiUrl` already ends with `/api`, the SDK won't double-prefix it.
|
|
33
|
+
|
|
32
34
|
See the [SDK docs](https://runbandit.com/docs/sdk) for the full API.
|