taba-client 0.0.0-stage → 0.1.0
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 +81 -2
- package/index.d.ts +268 -0
- package/index.js +7 -0
- package/package.json +28 -4
- package/src/client.js +537 -0
- package/src/errors.js +37 -0
- package/src/json.js +188 -0
- package/src/models.js +230 -0
- package/src/transport.js +273 -0
package/README.md
CHANGED
|
@@ -1,3 +1,82 @@
|
|
|
1
|
-
#
|
|
1
|
+
# taba-client (Node.js)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Node.js client of [Taba](https://github.com/rafaelpontani/taba): the nine operations of the client API, `subscribe`, consuming with a handler (with automatic renewal of the invisibility) and the call retries of the common contract. **No dependencies** (only `node:http`/`node:https`); types included.
|
|
4
|
+
|
|
5
|
+
> Other languages: [Português (Brasil)](https://github.com/rafaelpontani/taba/blob/main/doc/pt-BR/21-conectores.md) · [all languages](https://github.com/rafaelpontani/taba/blob/main/doc/README.md)
|
|
6
|
+
|
|
7
|
+
- **Node.js 18 or later.** CommonJS (works with `require` and `import`).
|
|
8
|
+
- **Everything is asynchronous** (`Promise`): Node has no synchronous HTTP, so there is no `...Sync` twin.
|
|
9
|
+
- Safe for any number of concurrent calls on one `TabaClient`.
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
const { TabaClient } = require('taba-client');
|
|
13
|
+
|
|
14
|
+
const client = new TabaClient({ baseUrl: 'http://localhost:8080', token: process.env.TABA_TOKEN });
|
|
15
|
+
|
|
16
|
+
await client.createTopic({ name: 'orders', type: 'queue' });
|
|
17
|
+
await client.publishJson('orders', { order: 9001 });
|
|
18
|
+
|
|
19
|
+
// Consume with a handler: the message is deleted if the handler does not throw.
|
|
20
|
+
await client.consumeWith('orders', { waitTime: 20 }, async ({ message }) => {
|
|
21
|
+
console.log(message.bodyText);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Or the whole loop, until the signal is aborted.
|
|
25
|
+
const controller = new AbortController();
|
|
26
|
+
await client.subscribe('orders', undefined, async (message) => {
|
|
27
|
+
console.log(message.json());
|
|
28
|
+
}, { signal: controller.signal, onError: (message, error) => console.error(message.id, error) });
|
|
29
|
+
|
|
30
|
+
client.close();
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Installing (not in a registry yet)
|
|
34
|
+
|
|
35
|
+
Not in a registry yet (the identifiers are still open). Until then, each [Release](https://github.com/rafaelpontani/taba/releases) has the installable file, with its checksum in `SHA256SUMS` and its provenance (`gh attestation verify <file> -R rafaelpontani/taba`). `<release>` below is the version of the Release; the version in the file name is the connector's own.
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
npm install https://github.com/rafaelpontani/taba/releases/download/v<release>/taba-client-0.1.0.tgz
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
(npm cannot install a folder of a Git repository; with pnpm, `pnpm add "github:rafaelpontani/taba#path:/connectors/node"` also works.)
|
|
42
|
+
|
|
43
|
+
## Declaring a topic
|
|
44
|
+
|
|
45
|
+
`createOrUpdateTopic(request, { recreate })` (`PUT /topics/{topic}`) creates the topic or brings it to the declared state, and resolves `{ topic, outcome }` (`created`, `updated` or `recreated`). What is left out goes back to the server default (a full replacement, unlike the update); another type, `fifo` or `volatile` is the error `409 topic.immutable-mismatch` unless `recreate` is `if-empty` (only when the queue and its dead-letter are empty, `409 topic.not-empty` otherwise) or `always` (drops the messages; new `id`). After a `503` the call is repeated like the others. `deleteTopic(name, { ifEmpty: true })` only removes a queue with no message. `createTopic` does not change (`409` when it exists). Details: [Create or update a topic](https://github.com/rafaelpontani/taba/blob/main/doc/en-US/16-client-api.md#create-or-update-a-topic-put-topicstopic).
|
|
46
|
+
|
|
47
|
+
## Batches
|
|
48
|
+
|
|
49
|
+
Many messages in one request, next to the single calls (optional): `publishBatch(topic, [{ body, contentType, groupId, deduplicationId }])`, `ackBatch(topic, messages)` and `changeVisibilityBatch(topic, messages, seconds)` resolve one result per item (`ok`, `status`, `id`, `errorCode`). Each item is answered as its single call, in order, and an item that failed comes back with its `status` and error code instead of throwing. The bodies go in base64, so any type fits. Details: [Messages in batch](https://github.com/rafaelpontani/taba/blob/main/doc/en-US/16-client-api.md#messages-in-batch-post-messagesbatch-ack-and-visibility).
|
|
50
|
+
|
|
51
|
+
## Configuration
|
|
52
|
+
|
|
53
|
+
One object (the client does not read environment variables: `TABA_*` belongs to the server).
|
|
54
|
+
|
|
55
|
+
| Field | Default | |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| `baseUrl` | required | `http://host:port` or `https://...` |
|
|
58
|
+
| `token` | none | `Authorization: Bearer` |
|
|
59
|
+
| `connectTimeout` | `5000` | milliseconds |
|
|
60
|
+
| `requestTimeout` | `30000` | milliseconds; `consume` uses `waitTime + 10 s` |
|
|
61
|
+
| `maxAttempts` | `3` | counting the first |
|
|
62
|
+
| `userAgent` | `taba-node/<version>` | |
|
|
63
|
+
| `serializer` | `JSON` | `{ stringify, parse }` for `publishJson` and `consumeJson` |
|
|
64
|
+
| `agent` | own keep-alive agent | an `http.Agent`/`https.Agent` (a proxy, for example) |
|
|
65
|
+
|
|
66
|
+
## What differs from the other connectors
|
|
67
|
+
|
|
68
|
+
- Names are `camelCase` and options are objects; cancellation is an `AbortSignal` (`{ signal }` in the last argument, or inside the options).
|
|
69
|
+
- `ack(topic, message)` and `changeVisibility(topic, message, seconds)` take the `Message` you received (or any `{ id, receiptToken }`).
|
|
70
|
+
- A `PATCH` field is sent when set; `undefined` leaves it out and `null` goes back to the server default.
|
|
71
|
+
- `consumeJson` is the `consume<T>` of the other languages: `context.body` is the parsed body; a body that is not JSON gives `client.invalid-response` and the message is not deleted.
|
|
72
|
+
- Errors are always a `TabaError` with `status`, `code`, `message`, `requestId`, `retryAfter`, `details`. Test the `code` (`client.network`, `client.timeout`, `topic.not-found`...), never the `message`. Cancelling with a signal rejects with the signal's `AbortError`, not a `TabaError`.
|
|
73
|
+
- TLS is Node's own, with `minVersion` TLS 1.2; the certificate is always verified.
|
|
74
|
+
|
|
75
|
+
## Tests
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
cd connectors/node
|
|
79
|
+
npm test
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The tests start a local HTTP server that records every request and answers from a script (the equivalent of the C# `ScriptedHandler`). The **contract tests** run the same scenario against a real Taba (one node in Docker), on the oldest supported version: `contract/run.sh` (`../contract/run.sh` for all the connectors; [how it works](https://github.com/rafaelpontani/taba/blob/main/connectors/contract/README.md)).
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
export const VERSION: string;
|
|
4
|
+
export const CONTRACT_VERSION: string;
|
|
5
|
+
|
|
6
|
+
export interface TabaConfig {
|
|
7
|
+
/** Address of the client API load balancer (`http://host:port` or `https://...`). Required. */
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
/** Goes in `Authorization: Bearer`. */
|
|
10
|
+
token?: string;
|
|
11
|
+
/** Milliseconds to open the connection (5000). */
|
|
12
|
+
connectTimeout?: number;
|
|
13
|
+
/** Milliseconds of an ordinary call (30000). `consume` uses `waitTime + 10 s`. */
|
|
14
|
+
requestTimeout?: number;
|
|
15
|
+
/** Attempts, counting the first (3). */
|
|
16
|
+
maxAttempts?: number;
|
|
17
|
+
/** Goes in `User-Agent` (`taba-node/<version>`). */
|
|
18
|
+
userAgent?: string;
|
|
19
|
+
/** Who serializes `publishJson` and parses `consumeJson`. Default: `JSON`. */
|
|
20
|
+
serializer?: { stringify(value: unknown): string; parse(text: string): unknown };
|
|
21
|
+
/** An own `http.Agent` / `https.Agent` (a proxy, for example). The client does not destroy it. */
|
|
22
|
+
agent?: import('node:http').Agent;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface CallOptions {
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface Topic {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
/** `queue` or `distributor`. */
|
|
33
|
+
type: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
fifo: boolean | null;
|
|
36
|
+
volatile: boolean | null;
|
|
37
|
+
/** The topic JSON, as the server returned it. */
|
|
38
|
+
raw: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface Page<T> {
|
|
42
|
+
items: T[];
|
|
43
|
+
nextCursor: string | null;
|
|
44
|
+
raw: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface TopicRequest {
|
|
48
|
+
name: string;
|
|
49
|
+
type: 'queue' | 'distributor' | string;
|
|
50
|
+
tags?: Record<string, string>;
|
|
51
|
+
prefixes?: string[];
|
|
52
|
+
volatile?: boolean;
|
|
53
|
+
idleTimeout?: number;
|
|
54
|
+
fifo?: boolean;
|
|
55
|
+
maxMessageBytes?: number;
|
|
56
|
+
ttl?: number;
|
|
57
|
+
maxDeliveries?: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* What `createOrUpdateTopic` does when the topic exists with another `type`, `fifo` or `volatile`: `'if-empty'`
|
|
62
|
+
* recreates it only if it holds no message (`409 topic.not-empty` otherwise), `'always'` removes it with its
|
|
63
|
+
* messages and creates it again. Left out, it is refused with `409 topic.immutable-mismatch`.
|
|
64
|
+
*/
|
|
65
|
+
export type Recreate = 'if-empty' | 'always';
|
|
66
|
+
|
|
67
|
+
/** What `PUT /topics/{topic}` did: created (`201`), updated or already as declared (`200`), recreated with a new `id`. */
|
|
68
|
+
export type TopicOutcome = 'created' | 'updated' | 'recreated';
|
|
69
|
+
|
|
70
|
+
export interface TopicPut {
|
|
71
|
+
topic: Topic;
|
|
72
|
+
outcome: TopicOutcome;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** `undefined` leaves the field out; `null` (where allowed) goes back to the server default. */
|
|
76
|
+
export interface TopicUpdate {
|
|
77
|
+
tags?: Record<string, string>;
|
|
78
|
+
prefixes?: string[];
|
|
79
|
+
idleTimeout?: number;
|
|
80
|
+
maxMessageBytes?: number | null;
|
|
81
|
+
ttl?: number | null;
|
|
82
|
+
maxDeliveries?: number | null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface PublishOptions extends CallOptions {
|
|
86
|
+
/** Default `application/json`. */
|
|
87
|
+
contentType?: string;
|
|
88
|
+
groupId?: string;
|
|
89
|
+
/** FIFO queue only. */
|
|
90
|
+
deduplicationId?: string;
|
|
91
|
+
requestId?: string;
|
|
92
|
+
/** `traceparent` header (W3C Trace Context). */
|
|
93
|
+
traceparent?: string;
|
|
94
|
+
/** Set it when the topic is a FIFO queue: only there can a 502/504 be repeated. */
|
|
95
|
+
fifo?: boolean;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface DistributorDelivery {
|
|
99
|
+
topic: string;
|
|
100
|
+
id: string | null;
|
|
101
|
+
errorCode: string | null;
|
|
102
|
+
errorMessage: string | null;
|
|
103
|
+
succeeded: boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface PublishResponse {
|
|
107
|
+
/** The message id (queue). `null` in a distributor's response. */
|
|
108
|
+
id: string | null;
|
|
109
|
+
/** FIFO queue only. */
|
|
110
|
+
duplicate: boolean | null;
|
|
111
|
+
/** Distributor only: how many queues matched. */
|
|
112
|
+
matched: number | null;
|
|
113
|
+
deliveries: DistributorDelivery[];
|
|
114
|
+
raw: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface ConsumeOptions extends CallOptions {
|
|
118
|
+
maxMessages?: number;
|
|
119
|
+
/** Seconds of invisibility for the delivered messages. */
|
|
120
|
+
visibilityTimeout?: number;
|
|
121
|
+
/** Seconds of long polling. */
|
|
122
|
+
waitTime?: number;
|
|
123
|
+
autoCreate?: boolean;
|
|
124
|
+
/** The next four only apply with `autoCreate`. */
|
|
125
|
+
volatile?: boolean;
|
|
126
|
+
idleTimeout?: number;
|
|
127
|
+
fifo?: boolean;
|
|
128
|
+
tags?: Record<string, string>;
|
|
129
|
+
requestId?: string;
|
|
130
|
+
traceparent?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface MessageRef {
|
|
134
|
+
id: string;
|
|
135
|
+
receiptToken: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export class Message implements MessageRef {
|
|
139
|
+
id: string;
|
|
140
|
+
/** JSON: the JSON text as it came. `text/*`: the UTF-8 text. base64: the bytes already decoded. */
|
|
141
|
+
body: Buffer;
|
|
142
|
+
contentType: string;
|
|
143
|
+
receiptToken: string;
|
|
144
|
+
deliveryCount: number;
|
|
145
|
+
publishedAt: string;
|
|
146
|
+
invisibleUntil: string;
|
|
147
|
+
groupId: string | null;
|
|
148
|
+
deduplicationId: string | null;
|
|
149
|
+
deadLetteredAt: string | null;
|
|
150
|
+
deadLetterReason: string | null;
|
|
151
|
+
/** The message JSON, as the server returned it. */
|
|
152
|
+
raw: string;
|
|
153
|
+
/** The `body` as UTF-8 text. */
|
|
154
|
+
readonly bodyText: string;
|
|
155
|
+
/** The `body` read as JSON. */
|
|
156
|
+
json(): unknown;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export class MessageContext<T = undefined> {
|
|
160
|
+
readonly message: Message;
|
|
161
|
+
/** `consumeJson` only: the parsed body. */
|
|
162
|
+
body: T;
|
|
163
|
+
/** `true` (the default): the message is deleted when the handler finishes without throwing. */
|
|
164
|
+
delete: boolean;
|
|
165
|
+
readonly signal: AbortSignal | undefined;
|
|
166
|
+
readonly leaseSeconds: number;
|
|
167
|
+
/** `true` when the server refused the renewal (the message already went back to the queue or was deleted). */
|
|
168
|
+
readonly leaseLost: boolean;
|
|
169
|
+
changeVisibility(seconds: number): Promise<void>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface VisibilityResponse {
|
|
173
|
+
id: string;
|
|
174
|
+
invisibleUntil: string;
|
|
175
|
+
raw: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** One message of `publishBatch`: the same fields as `publish`. The bytes travel in base64. */
|
|
179
|
+
export interface BatchMessage {
|
|
180
|
+
body: Buffer | Uint8Array | string;
|
|
181
|
+
/** Default `application/json`. */
|
|
182
|
+
contentType?: string;
|
|
183
|
+
groupId?: string;
|
|
184
|
+
deduplicationId?: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/** The result of one item of a batch, in the order of the request. An item that failed does not reject. */
|
|
188
|
+
export interface BatchResult {
|
|
189
|
+
/** `201` published, `200` a FIFO duplicate, a distributor or a new invisibility, `204` acked, or the error's. */
|
|
190
|
+
status: number;
|
|
191
|
+
/** The item was applied. */
|
|
192
|
+
ok: boolean;
|
|
193
|
+
id: string | null;
|
|
194
|
+
duplicate: boolean | null;
|
|
195
|
+
matched: number | null;
|
|
196
|
+
invisibleUntil: string | null;
|
|
197
|
+
errorCode: string | null;
|
|
198
|
+
errorMessage: string | null;
|
|
199
|
+
raw: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The only kind of error: the API `ErrorResponse`, or a failure of the client itself (`status` 0 and
|
|
204
|
+
* `code` `client.network`, `client.timeout`, `client.invalid-config`, `client.invalid-response` or
|
|
205
|
+
* `client.invalid-request`). Test the `code`, never the `message`.
|
|
206
|
+
*/
|
|
207
|
+
export class TabaError extends Error {
|
|
208
|
+
/** The HTTP status, or zero on a failure of the client itself. */
|
|
209
|
+
readonly status: number;
|
|
210
|
+
readonly code: string;
|
|
211
|
+
readonly requestId: string | undefined;
|
|
212
|
+
/** Seconds of the `Retry-After`. */
|
|
213
|
+
readonly retryAfter: number | undefined;
|
|
214
|
+
/** The `details` of the `ErrorResponse`, as JSON text. */
|
|
215
|
+
readonly details: string | undefined;
|
|
216
|
+
readonly body: Buffer;
|
|
217
|
+
readonly isClientSide: boolean;
|
|
218
|
+
constructor(status: number, code: string, message: string, extra?: object);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface SubscribeOptions extends CallOptions {
|
|
222
|
+
onError?: (message: Message, error: unknown) => void;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export class TabaClient {
|
|
226
|
+
constructor(config: TabaConfig);
|
|
227
|
+
close(): void;
|
|
228
|
+
|
|
229
|
+
createTopic(request: TopicRequest, options?: CallOptions): Promise<Topic>;
|
|
230
|
+
getTopic(name: string, options?: CallOptions): Promise<Topic>;
|
|
231
|
+
listTopics(options?: { limit?: number; cursor?: string | null; name?: string } & CallOptions): Promise<Page<Topic>>;
|
|
232
|
+
listAllTopics(options?: { name?: string } & CallOptions): Promise<Topic[]>;
|
|
233
|
+
updateTopic(name: string, update: TopicUpdate, options?: CallOptions): Promise<Topic>;
|
|
234
|
+
/** `PUT /topics/{topic}`: the declared state (what is left out goes back to the default); `request.name` is the path. */
|
|
235
|
+
createOrUpdateTopic(request: TopicRequest, options?: { recreate?: Recreate } & CallOptions): Promise<TopicPut>;
|
|
236
|
+
/** With `ifEmpty: true`, only removes a queue that holds no message (`409 topic.not-empty` otherwise). */
|
|
237
|
+
deleteTopic(name: string, options?: { ifEmpty?: boolean } & CallOptions): Promise<void>;
|
|
238
|
+
|
|
239
|
+
publish(topic: string, body: Buffer | Uint8Array | string, options?: PublishOptions): Promise<PublishResponse>;
|
|
240
|
+
publishJson(topic: string, value: unknown, options?: PublishOptions): Promise<PublishResponse>;
|
|
241
|
+
publishRawJson(topic: string, json: string, options?: PublishOptions): Promise<PublishResponse>;
|
|
242
|
+
publishText(topic: string, text: string, options?: PublishOptions): Promise<PublishResponse>;
|
|
243
|
+
publishBatch(topic: string, messages: BatchMessage[], options?: CallOptions): Promise<BatchResult[]>;
|
|
244
|
+
|
|
245
|
+
consume(topic: string, options?: ConsumeOptions): Promise<Message[]>;
|
|
246
|
+
consumeWith(
|
|
247
|
+
topic: string,
|
|
248
|
+
options: ConsumeOptions | undefined,
|
|
249
|
+
handler: (context: MessageContext) => Promise<void> | void,
|
|
250
|
+
): Promise<number>;
|
|
251
|
+
consumeJson<T = unknown>(
|
|
252
|
+
topic: string,
|
|
253
|
+
options: ConsumeOptions | undefined,
|
|
254
|
+
handler: (context: MessageContext<T>) => Promise<void> | void,
|
|
255
|
+
): Promise<number>;
|
|
256
|
+
|
|
257
|
+
ack(topic: string, message: MessageRef, options?: CallOptions): Promise<void>;
|
|
258
|
+
changeVisibility(topic: string, message: MessageRef, seconds: number, options?: CallOptions): Promise<VisibilityResponse>;
|
|
259
|
+
ackBatch(topic: string, messages: MessageRef[], options?: CallOptions): Promise<BatchResult[]>;
|
|
260
|
+
changeVisibilityBatch(topic: string, messages: MessageRef[], seconds: number, options?: CallOptions): Promise<BatchResult[]>;
|
|
261
|
+
|
|
262
|
+
subscribe(
|
|
263
|
+
topic: string,
|
|
264
|
+
options: ConsumeOptions | undefined,
|
|
265
|
+
handler: (message: Message) => Promise<void> | void,
|
|
266
|
+
subscribeOptions?: SubscribeOptions,
|
|
267
|
+
): Promise<void>;
|
|
268
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { TabaClient, VERSION, CONTRACT_VERSION } = require('./src/client');
|
|
4
|
+
const { TabaError } = require('./src/errors');
|
|
5
|
+
const { Message, MessageContext } = require('./src/models');
|
|
6
|
+
|
|
7
|
+
module.exports = { TabaClient, TabaError, Message, MessageContext, VERSION, CONTRACT_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taba-client",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Taba messaging system client: the nine operations, subscribe, call retries. No dependencies.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"index.js",
|
|
10
|
+
"index.d.ts",
|
|
11
|
+
"src/"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "node --test"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/rafaelpontani/taba.git",
|
|
22
|
+
"directory": "connectors/node"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"taba",
|
|
26
|
+
"queue",
|
|
27
|
+
"messaging",
|
|
28
|
+
"client"
|
|
29
|
+
]
|
|
30
|
+
}
|