@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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. 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 { SentinelClient } from "@anomira/node-sdk";
14
+ import { SentinelAPI } from "@anomira/node-sdk";
15
15
 
16
- const sentinel = new SentinelClient({
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 { SentinelClient } from "@anomira/node-sdk";
26
+ import { SentinelAPI } from "@anomira/node-sdk";
27
27
 
28
28
  const app = express();
29
- const sentinel = new SentinelClient({
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 { SentinelClient } from "@anomira/node-sdk";
44
+ import { SentinelAPI } from "@anomira/node-sdk";
45
45
 
46
46
  const app = Fastify();
47
- const sentinel = new SentinelClient({
47
+ const sentinel = new SentinelAPI({
48
48
  apiKey: process.env.ANOMIRA_API_KEY!,
49
49
  appId: process.env.ANOMIRA_APP_ID!,
50
50
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anomira/node-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Anomira Node.js SDK — drop-in API security monitoring for Express and Fastify",
5
5
  "author": "Anomira <sdk@anomira.io>",
6
6
  "license": "MIT",