@logscopeai/logscope 0.1.0-beta.3 → 0.1.0-beta.4
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 +145 -182
- package/dist/client/create-logscope-client.js.map +1 -1
- package/dist/winston/transport.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,81 +1,58 @@
|
|
|
1
1
|
# @logscopeai/logscope
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Supported beta for the Logscope ingestion SDK.
|
|
4
4
|
>
|
|
5
|
-
>
|
|
6
|
-
>
|
|
7
|
-
>
|
|
5
|
+
> `@logscopeai/logscope` is the official Node.js SDK for sending application logs to the Logscope
|
|
6
|
+
> Ingestion API. The package is pre-GA, but its documented public behavior is treated as
|
|
7
|
+
> compatibility-sensitive and is maintained with a conservative, fail-safe posture.
|
|
8
8
|
|
|
9
|
-
`@logscopeai/logscope`
|
|
9
|
+
`@logscopeai/logscope` lets Node.js applications capture logs, normalize them to the ingestion
|
|
10
|
+
schema, apply optional client-side filtering, batch delivery asynchronously, and forward logs to
|
|
11
|
+
Logscope without throwing into user code.
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Supported Beta Posture
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
- Supported beta means the SDK is intended for real integrations, not only disposable local demos.
|
|
16
|
+
- Supported beta does not mean GA:
|
|
17
|
+
- internal implementation may still evolve;
|
|
18
|
+
- future beta releases may add or refine surface area;
|
|
19
|
+
- users should still pin versions deliberately and validate upgrades.
|
|
20
|
+
- Public behavior that is documented for consumers is treated as compatibility-sensitive.
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## Early Development Mode
|
|
18
|
-
|
|
19
|
-
During early development phases, `@logscopeai/logscope` is expected to be executed locally using:
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
npm link
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
This allows the SDK to be developed and tested inside a consuming service before being published to npm.
|
|
26
|
-
|
|
27
|
-
The intended import pattern is:
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
import { Logscope } from '@logscopeai/logscope';
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Compatibility with `npm link` is a design requirement.
|
|
34
|
-
|
|
35
|
-
---
|
|
22
|
+
See `docs/supported-beta-policy.md` for the support and deprecation policy, and
|
|
23
|
+
`docs/compatibility-contract.md` for the supported-beta compatibility baseline.
|
|
36
24
|
|
|
37
25
|
## What This Package Does
|
|
38
26
|
|
|
39
27
|
- Captures logs from:
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- Never throws into user code
|
|
50
|
-
|
|
51
|
-
---
|
|
28
|
+
- the manual SDK API;
|
|
29
|
+
- optional console capture;
|
|
30
|
+
- pino via `@logscopeai/logscope/pino`;
|
|
31
|
+
- winston via `@logscopeai/logscope/winston`.
|
|
32
|
+
- Normalizes logs to the ingestion schema.
|
|
33
|
+
- Applies optional level-based filtering before batching.
|
|
34
|
+
- Batches logs in memory and sends them asynchronously.
|
|
35
|
+
- Retries retriable delivery failures with backoff.
|
|
36
|
+
- Avoids throwing into user code.
|
|
52
37
|
|
|
53
38
|
## What This Package Does Not Do
|
|
54
39
|
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
- Replace structured logging frameworks
|
|
61
|
-
|
|
62
|
-
---
|
|
40
|
+
- Validate API keys semantically against server-side policy.
|
|
41
|
+
- Persist logs to disk.
|
|
42
|
+
- Provide storage, analytics, dashboarding, or querying.
|
|
43
|
+
- Replace structured logging frameworks.
|
|
44
|
+
- Offer GA/SLA guarantees.
|
|
63
45
|
|
|
64
46
|
## Installation
|
|
65
47
|
|
|
66
|
-
```
|
|
48
|
+
```bash
|
|
67
49
|
npm install @logscopeai/logscope
|
|
68
50
|
```
|
|
69
51
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
npm link @logscopeai/logscope
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
---
|
|
52
|
+
For workspace development and local package iteration, `npm link` remains supported. See
|
|
53
|
+
`docs/local-development.md` for the canonical SDK-side local link and endpoint guidance.
|
|
77
54
|
|
|
78
|
-
##
|
|
55
|
+
## Quick Start (`Logscope`)
|
|
79
56
|
|
|
80
57
|
```ts
|
|
81
58
|
import { Logscope } from '@logscopeai/logscope';
|
|
@@ -94,7 +71,7 @@ logscope.error('Payment failed', { orderId: 123 });
|
|
|
94
71
|
https://ingestion.logscopeai.com
|
|
95
72
|
```
|
|
96
73
|
|
|
97
|
-
For
|
|
74
|
+
For local or test environments, override `ingestionBaseUrl` explicitly:
|
|
98
75
|
|
|
99
76
|
```ts
|
|
100
77
|
const logscope = new Logscope({
|
|
@@ -103,7 +80,9 @@ const logscope = new Logscope({
|
|
|
103
80
|
});
|
|
104
81
|
```
|
|
105
82
|
|
|
106
|
-
Compatibility
|
|
83
|
+
## Compatibility Factory (`createLogscopeClient`)
|
|
84
|
+
|
|
85
|
+
The compatibility entrypoint remains available:
|
|
107
86
|
|
|
108
87
|
```ts
|
|
109
88
|
import { createLogscopeClient } from '@logscopeai/logscope';
|
|
@@ -127,39 +106,73 @@ const logscope = createLogscopeClient({
|
|
|
127
106
|
});
|
|
128
107
|
```
|
|
129
108
|
|
|
130
|
-
|
|
109
|
+
`createLogscopeClient` and `Logscope` expose the same manual log methods:
|
|
110
|
+
|
|
111
|
+
- `trace`
|
|
112
|
+
- `debug`
|
|
113
|
+
- `info`
|
|
114
|
+
- `warn`
|
|
115
|
+
- `error`
|
|
116
|
+
- `fatal`
|
|
117
|
+
|
|
118
|
+
## Client Configuration
|
|
131
119
|
|
|
132
|
-
|
|
120
|
+
Client config highlights:
|
|
133
121
|
|
|
134
|
-
|
|
122
|
+
- `apiKey` is required.
|
|
123
|
+
- `ingestionBaseUrl` is the canonical client override for local/dev/test routing.
|
|
124
|
+
- `endpoint` is still accepted on the root client as a deprecated compatibility alias.
|
|
125
|
+
- `captureConsole` is opt-in and disabled by default.
|
|
126
|
+
- `context.source` is optional and deprecated as required caller input; omitted values fall back to
|
|
127
|
+
deterministic source `unknown`.
|
|
128
|
+
- `runtime` controls batching and retry quantities through validated safe defaults.
|
|
129
|
+
|
|
130
|
+
Runtime delivery knobs:
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
runtime: {
|
|
134
|
+
maxBatchSize?: number; // default: 50, bounded to ingestion contract max
|
|
135
|
+
flushIntervalMs?: number; // default: 2000
|
|
136
|
+
maxRetries?: number; // default: 3
|
|
137
|
+
retryBaseDelayMs?: number; // default: 250
|
|
138
|
+
retryMaxDelayMs?: number; // default: 2000
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Invalid runtime overrides are ignored safely and fallback to defaults without throwing.
|
|
143
|
+
|
|
144
|
+
## Validation And Safety Guarantees
|
|
135
145
|
|
|
136
146
|
Runtime guards are applied before delivery:
|
|
137
147
|
|
|
138
|
-
- Required config fields are validated
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
- Winston transport: `apiKey`, `endpoint`, `source`
|
|
142
|
-
- Invalid required config triggers a single safe warning and switches to a no-op fallback pipeline.
|
|
148
|
+
- Required config fields are validated before pipeline creation.
|
|
149
|
+
- Invalid required config triggers a safe warning and switches the client/transport into no-op
|
|
150
|
+
fallback behavior.
|
|
143
151
|
- Warning diagnostics never include secret values such as API keys.
|
|
144
|
-
- `ingestionBaseUrl` is optional
|
|
145
|
-
|
|
146
|
-
- The SDK does not expose
|
|
152
|
+
- `ingestionBaseUrl` is optional on the root client and falls back to the production default when
|
|
153
|
+
omitted or invalid.
|
|
154
|
+
- The SDK does not expose a client-owned `environment` routing field.
|
|
147
155
|
|
|
148
156
|
Normalization enforces ingestion constraints:
|
|
149
157
|
|
|
150
158
|
- `message` is deterministically truncated to `<= 2048` characters.
|
|
151
159
|
- `metadata` is normalized to JSON-safe content and dropped if serialized size is `> 2048` bytes.
|
|
152
160
|
|
|
153
|
-
|
|
161
|
+
Fail-safe expectations:
|
|
154
162
|
|
|
155
|
-
|
|
163
|
+
- The SDK must never throw into user code.
|
|
164
|
+
- Filtering happens before batching.
|
|
165
|
+
- `401` results warn once.
|
|
166
|
+
- `429` and `500` results retry with backoff.
|
|
167
|
+
- Batches are dropped after max retries are exhausted.
|
|
156
168
|
|
|
157
|
-
## Public Types
|
|
169
|
+
## Public Types And Utilities
|
|
158
170
|
|
|
159
|
-
The root entrypoint
|
|
171
|
+
The root entrypoint exports the class API, compatibility factory, shared types, constants, and
|
|
172
|
+
normalization utility:
|
|
160
173
|
|
|
161
174
|
```ts
|
|
162
|
-
import { Logscope, normalizeLog } from '@logscopeai/logscope';
|
|
175
|
+
import { Logscope, createLogscopeClient, normalizeLog } from '@logscopeai/logscope';
|
|
163
176
|
import type {
|
|
164
177
|
IngestionLogEntry,
|
|
165
178
|
LogLevel,
|
|
@@ -169,64 +182,48 @@ import type {
|
|
|
169
182
|
} from '@logscopeai/logscope';
|
|
170
183
|
```
|
|
171
184
|
|
|
172
|
-
`normalizeLog` converts SDK log input into ingestion-safe entries using
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
## Filtering Logs
|
|
177
|
-
|
|
178
|
-
Users may restrict which logs are sent to Logscope:
|
|
185
|
+
`normalizeLog` converts SDK log input into ingestion-safe entries using:
|
|
179
186
|
|
|
180
187
|
```ts
|
|
181
|
-
|
|
182
|
-
|
|
188
|
+
{
|
|
189
|
+
source,
|
|
190
|
+
level,
|
|
191
|
+
timestamp,
|
|
192
|
+
message,
|
|
193
|
+
metadata?,
|
|
183
194
|
}
|
|
184
195
|
```
|
|
185
196
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
If `logFilter.levels` is configured as an empty array (`[]`), all logs are filtered out.
|
|
189
|
-
|
|
190
|
-
---
|
|
191
|
-
|
|
192
|
-
## Runtime Delivery Configuration
|
|
197
|
+
## Filtering Logs
|
|
193
198
|
|
|
194
|
-
|
|
199
|
+
`logFilter.levels` restricts which levels enter the delivery pipeline:
|
|
195
200
|
|
|
196
201
|
```ts
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
flushIntervalMs?: number; // default: 2000
|
|
200
|
-
maxRetries?: number; // default: 3
|
|
201
|
-
retryBaseDelayMs?: number; // default: 250
|
|
202
|
-
retryMaxDelayMs?: number; // default: 2000
|
|
202
|
+
logFilter: {
|
|
203
|
+
levels: ['warn', 'error'],
|
|
203
204
|
}
|
|
204
205
|
```
|
|
205
206
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
---
|
|
207
|
+
- If no filter is configured, all logs are sent.
|
|
208
|
+
- If `logFilter.levels` is an empty array, all logs are filtered out.
|
|
209
209
|
|
|
210
210
|
## Console Capture
|
|
211
211
|
|
|
212
212
|
`captureConsole` is disabled by default.
|
|
213
213
|
|
|
214
|
-
When
|
|
215
|
-
|
|
216
|
-
- `console.log` (mapped to `info`)
|
|
217
|
-
- `console.info` (mapped to `info`)
|
|
218
|
-
- `console.warn` (mapped to `warn`)
|
|
219
|
-
- `console.error` (mapped to `error`)
|
|
220
|
-
|
|
221
|
-
Wrapped methods keep original console output and arguments, and captured entries are forwarded through the same filtering and batching pipeline used by the manual client API.
|
|
214
|
+
When enabled, the SDK wraps:
|
|
222
215
|
|
|
223
|
-
|
|
216
|
+
- `console.log` -> `info`
|
|
217
|
+
- `console.info` -> `info`
|
|
218
|
+
- `console.warn` -> `warn`
|
|
219
|
+
- `console.error` -> `error`
|
|
224
220
|
|
|
225
|
-
|
|
221
|
+
Original console behavior is preserved, and captured entries flow through the same filtering and
|
|
222
|
+
batching pipeline used by the manual client API.
|
|
226
223
|
|
|
227
|
-
|
|
224
|
+
## Pino Integration
|
|
228
225
|
|
|
229
|
-
|
|
226
|
+
Logscope does not intercept pino automatically. Use the explicit transport subpath:
|
|
230
227
|
|
|
231
228
|
```ts
|
|
232
229
|
import pino from 'pino';
|
|
@@ -247,15 +244,17 @@ const logger = pino({
|
|
|
247
244
|
});
|
|
248
245
|
```
|
|
249
246
|
|
|
250
|
-
|
|
247
|
+
Pino transport notes:
|
|
251
248
|
|
|
252
|
-
|
|
249
|
+
- transport option name remains `endpoint`;
|
|
250
|
+
- `source` is required on the transport surface;
|
|
251
|
+
- pino levels `10/20/30/40/50/60` map to Logscope levels
|
|
252
|
+
`trace/debug/info/warn/error/fatal`;
|
|
253
|
+
- filtering still happens before batching.
|
|
253
254
|
|
|
254
|
-
##
|
|
255
|
+
## Winston Integration
|
|
255
256
|
|
|
256
|
-
Logscope does not patch
|
|
257
|
-
|
|
258
|
-
Instead, it provides an explicit transport:
|
|
257
|
+
Logscope does not patch winston globally. Use the explicit transport subpath:
|
|
259
258
|
|
|
260
259
|
```ts
|
|
261
260
|
import { createLogger, format } from 'winston';
|
|
@@ -277,97 +276,61 @@ const logger = createLogger({
|
|
|
277
276
|
});
|
|
278
277
|
```
|
|
279
278
|
|
|
280
|
-
|
|
279
|
+
Winston transport notes:
|
|
281
280
|
|
|
282
|
-
|
|
281
|
+
- transport option name remains `endpoint`;
|
|
282
|
+
- `source` is required on the transport surface;
|
|
283
|
+
- default npm levels map to Logscope levels
|
|
284
|
+
`error/warn/info/info/debug/debug/trace`;
|
|
285
|
+
- filtering still happens before batching.
|
|
283
286
|
|
|
284
|
-
##
|
|
287
|
+
## Ingestion Contract Summary
|
|
285
288
|
|
|
286
|
-
|
|
289
|
+
The SDK sends logs to:
|
|
287
290
|
|
|
288
|
-
```
|
|
291
|
+
```text
|
|
289
292
|
POST /api/logs/ingest
|
|
290
293
|
```
|
|
291
294
|
|
|
292
295
|
Using header:
|
|
293
296
|
|
|
294
|
-
```
|
|
297
|
+
```text
|
|
295
298
|
x-api-key: <LOGSCOPE_API_KEY>
|
|
296
299
|
```
|
|
297
300
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
Transport status handling is classified as:
|
|
301
|
+
Response handling:
|
|
301
302
|
|
|
302
303
|
- `202` -> success
|
|
303
|
-
- `400` / `413` -> drop
|
|
304
|
+
- `400` / `413` -> drop batch
|
|
304
305
|
- `401` -> unauthorized warning path
|
|
305
306
|
- `429` / `500` -> retry with backoff
|
|
306
307
|
- retriable batches are dropped after max retries
|
|
307
308
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
## Status
|
|
311
|
-
|
|
312
|
-
This SDK is currently:
|
|
309
|
+
## Current Limits And Non-Goals
|
|
313
310
|
|
|
314
|
-
-
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
311
|
+
- Supported beta, not GA.
|
|
312
|
+
- No disk persistence or local buffering.
|
|
313
|
+
- No sampling, tracing, or OpenTelemetry surface.
|
|
314
|
+
- No hidden global patching of pino or winston.
|
|
315
|
+
- No synchronous I/O.
|
|
318
316
|
|
|
319
|
-
|
|
317
|
+
## Testing And Build
|
|
320
318
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
Unit tests must be co-located with the files they validate.
|
|
324
|
-
|
|
325
|
-
Use either `.test.ts` or `.spec.ts` next to the implementation file, for example:
|
|
326
|
-
|
|
327
|
-
```text
|
|
328
|
-
src/
|
|
329
|
-
dirA/
|
|
330
|
-
file.ts
|
|
331
|
-
file.spec.ts
|
|
332
|
-
dirB/
|
|
333
|
-
otherFile.ts
|
|
334
|
-
otherFile.test.ts
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
Run tests with:
|
|
319
|
+
Run the standard verification flow from a clean checkout:
|
|
338
320
|
|
|
339
321
|
```bash
|
|
322
|
+
npm ci
|
|
340
323
|
npm test
|
|
324
|
+
npm run build
|
|
341
325
|
```
|
|
342
326
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
```bash
|
|
346
|
-
npm run test:coverage
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
---
|
|
327
|
+
Unit tests are co-located with the files they validate and coverage is enforced through Vitest.
|
|
350
328
|
|
|
351
329
|
## Additional Documentation
|
|
352
330
|
|
|
331
|
+
- Support and deprecation policy: `docs/supported-beta-policy.md`
|
|
332
|
+
- SDK compatibility contract: `docs/compatibility-contract.md`
|
|
333
|
+
- Local development and `npm link` guidance: `docs/local-development.md`
|
|
334
|
+
- Release verification checklist: `docs/release-verification.md`
|
|
353
335
|
- Hardening and coverage matrix: `docs/hardening-and-testing.md`
|
|
354
336
|
- Formatting and lint workflow: `docs/linting.md`
|
|
355
|
-
|
|
356
|
-
## Local usage with `npm link`
|
|
357
|
-
|
|
358
|
-
To run the package locally in other repositories, use `npm link`:
|
|
359
|
-
|
|
360
|
-
Steps:
|
|
361
|
-
|
|
362
|
-
1. In this repository:
|
|
363
|
-
|
|
364
|
-
```
|
|
365
|
-
npm link
|
|
366
|
-
npm run build -- --watch
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
2. In the consuming repository:
|
|
370
|
-
|
|
371
|
-
```
|
|
372
|
-
npm link @logscopeai/logscope
|
|
373
|
-
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-logscope-client.js","sourceRoot":"","sources":["../../src/client/create-logscope-client.ts"],"names":[],"mappings":";;;AAAA,gEAAqF;AAErF,2DAGiC;AACjC,mDAAqF;AACrF,mEAAqE;AACrE,gFAA2E;AAM3E,+CAAiD;AAEjD,MAAM,4BAA4B,GAChC,mFAAmF,CAAC;AACtF,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"create-logscope-client.js","sourceRoot":"","sources":["../../src/client/create-logscope-client.ts"],"names":[],"mappings":";;;AAAA,gEAAqF;AAErF,2DAGiC;AACjC,mDAAqF;AACrF,mEAAqE;AACrE,gFAA2E;AAM3E,+CAAiD;AAEjD,MAAM,4BAA4B,GAChC,mFAAmF,CAAC;AACtF,MAAM,+BAA+B,GAAG,yDAAyD,CAAC;AAqBlG,MAAM,kBAAkB,G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Aa,CAAC,MAAM;QAC5B,SAAS,EAAE,aAAa,CAAC,SAAS;QAClC,GAAG,EAAE,YAAY,CAAC,GAAG;QACrB,QAAQ;KACT,CAAC,CAAC;IAEH,MAAM,WAAW,GAAuB,CACtC,KAAe,EACf,OAAe,EACf,QAAkB,EAClB,EAAE;QACF,OAAO,CAAC,QAAQ,CAAC;YACf,KAAK;YACL,OAAO;YACP,QAAQ;SACT,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,IACE,aAAa,CAAC,cAAc,KAAK,IAAI;QACrC,aAAa,CAAC,OAAO;QACrB,YAAY,CAAC,mBAAmB,KAAK,SAAS,EAC9C,CAAC;QACD,IAAI,CAAC;YACH,YAAY,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAChD,CAAC;QAAC,MAAM,CAAC;YACP,8BAA8B;QAChC,CAAC;IACH,CAAC;IAED,OAAO,IAAA,8BAAgB,EAAC,WAAW,CAAC,CAAC;AACvC,CAAC,CAAC;AA1EW,QAAA,4BAA4B,gCA0EvC;AAEK,MAAM,oBAAoB,GAAG,CAAC,MAAsB,EAAkB,EAAE;IAC7E,OAAO,IAAA,oCAA4B,EAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAC3E,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/winston/transport.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/winston/transport.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAgD;AAChD,2DAGiC;AAEjC,mDAI8B;AAC9B,mEAAqE;AACrE,gFAA2E;AAM3E,2DAAsD;AAEtD,MAAM,4BAA4B,GAChC,qGAAqG,CAAC;AACxG,MAAM,+BAA+B,GACnC,0EAA0E,CAAC;AAC7E,MAAM,YAAY,GAAG,MAAM,CAAC,GA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O,IAAI,CAAC,WAAW,CAAC;QAC1B,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;CACF;AAEM,MAAM,8BAA8B,GAAG,CAC5C,OAAwC,EACxC,YAA0C,EACzB,EAAE;IACnB,OAAO,IAAI,8BAA8B,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AACnE,CAAC,CAAC;AALW,QAAA,8BAA8B,kCAKzC;AAEK,MAAM,sBAAsB,GAAG,CACpC,OAAwC,EACvB,EAAE;IACnB,OAAO,IAAA,sCAA8B,EAAC,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAC9E,CAAC,CAAC;AAJW,QAAA,sBAAsB,0BAIjC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logscopeai/logscope",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
|
+
"description": "Supported-beta Node.js SDK for sending application logs to the Logscope ingestion API.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|