@anomira/node-sdk 0.1.1 → 0.1.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.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,9 +11,9 @@ npm install @anomira/node-sdk
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import {
|
|
14
|
+
import { SentinelAPI } from "@anomira/node-sdk";
|
|
15
15
|
|
|
16
|
-
const sentinel = new
|
|
16
|
+
const sentinel = new SentinelAPI({
|
|
17
17
|
apiKey: process.env.ANOMIRA_API_KEY!,
|
|
18
18
|
appId: process.env.ANOMIRA_APP_ID!,
|
|
19
19
|
});
|
|
@@ -23,10 +23,10 @@ const sentinel = new SentinelClient({
|
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
import express from "express";
|
|
26
|
-
import {
|
|
26
|
+
import { SentinelAPI } from "@anomira/node-sdk";
|
|
27
27
|
|
|
28
28
|
const app = express();
|
|
29
|
-
const sentinel = new
|
|
29
|
+
const sentinel = new SentinelAPI({
|
|
30
30
|
apiKey: process.env.ANOMIRA_API_KEY!,
|
|
31
31
|
appId: process.env.ANOMIRA_APP_ID!,
|
|
32
32
|
});
|
|
@@ -41,10 +41,10 @@ app.listen(3000);
|
|
|
41
41
|
|
|
42
42
|
```ts
|
|
43
43
|
import Fastify from "fastify";
|
|
44
|
-
import {
|
|
44
|
+
import { SentinelAPI } from "@anomira/node-sdk";
|
|
45
45
|
|
|
46
46
|
const app = Fastify();
|
|
47
|
-
const sentinel = new
|
|
47
|
+
const sentinel = new SentinelAPI({
|
|
48
48
|
apiKey: process.env.ANOMIRA_API_KEY!,
|
|
49
49
|
appId: process.env.ANOMIRA_APP_ID!,
|
|
50
50
|
});
|