@fullevent/node 0.0.1 → 1.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/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -1
- package/src/client.ts +3 -3
- package/src/middleware/hono.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -127,7 +127,7 @@ interface WideLoggerConfig {
|
|
|
127
127
|
/**
|
|
128
128
|
* Base URL for the FullEvent API.
|
|
129
129
|
*
|
|
130
|
-
* @defaultValue `'https://api.fullevent.
|
|
130
|
+
* @defaultValue `'https://api.fullevent.app'`
|
|
131
131
|
*
|
|
132
132
|
* @remarks
|
|
133
133
|
* Only override for self-hosted deployments or local development.
|
|
@@ -162,7 +162,7 @@ interface WideLoggerConfig {
|
|
|
162
162
|
* @example
|
|
163
163
|
* ```typescript
|
|
164
164
|
* import { Hono } from 'hono';
|
|
165
|
-
* import { wideLogger, WideEventVariables } from '@fullevent/node
|
|
165
|
+
* import { wideLogger, WideEventVariables } from '@fullevent/node';
|
|
166
166
|
*
|
|
167
167
|
* const app = new Hono<{ Variables: WideEventVariables }>();
|
|
168
168
|
*
|
|
@@ -208,7 +208,7 @@ type WideEventVariables = {
|
|
|
208
208
|
* @example Quick Start
|
|
209
209
|
* ```typescript
|
|
210
210
|
* import { Hono } from 'hono';
|
|
211
|
-
* import { wideLogger, WideEventVariables } from '@fullevent/node
|
|
211
|
+
* import { wideLogger, WideEventVariables } from '@fullevent/node';
|
|
212
212
|
*
|
|
213
213
|
* const app = new Hono<{ Variables: WideEventVariables }>();
|
|
214
214
|
*
|
|
@@ -304,7 +304,7 @@ declare global {
|
|
|
304
304
|
* @example Quick Start
|
|
305
305
|
* ```typescript
|
|
306
306
|
* import express from 'express';
|
|
307
|
-
* import { expressWideLogger } from '@fullevent/node
|
|
307
|
+
* import { expressWideLogger } from '@fullevent/node';
|
|
308
308
|
*
|
|
309
309
|
* const app = express();
|
|
310
310
|
*
|
|
@@ -368,7 +368,7 @@ declare function expressWideLogger(config: WideLoggerConfig): (req: Request, res
|
|
|
368
368
|
* ```typescript
|
|
369
369
|
* const client = new FullEvent({
|
|
370
370
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
371
|
-
* baseUrl: 'https://api.fullevent.
|
|
371
|
+
* baseUrl: 'https://api.fullevent.app', // optional
|
|
372
372
|
* ping: true, // send a test ping on initialization
|
|
373
373
|
* });
|
|
374
374
|
* ```
|
|
@@ -386,7 +386,7 @@ interface FullEventConfig {
|
|
|
386
386
|
/**
|
|
387
387
|
* Base URL for the FullEvent API.
|
|
388
388
|
*
|
|
389
|
-
* @defaultValue `'https://api.fullevent.
|
|
389
|
+
* @defaultValue `'https://api.fullevent.app'`
|
|
390
390
|
*
|
|
391
391
|
* @remarks
|
|
392
392
|
* Only override this for self-hosted deployments or local development.
|
|
@@ -474,7 +474,7 @@ interface HttpRequestProperties {
|
|
|
474
474
|
*
|
|
475
475
|
* @example Basic Usage
|
|
476
476
|
* ```typescript
|
|
477
|
-
* import { FullEvent } from '@fullevent/node
|
|
477
|
+
* import { FullEvent } from '@fullevent/node';
|
|
478
478
|
*
|
|
479
479
|
* const client = new FullEvent({
|
|
480
480
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
@@ -868,7 +868,7 @@ declare class WideEventBuilder {
|
|
|
868
868
|
* ## Installation
|
|
869
869
|
*
|
|
870
870
|
* ```bash
|
|
871
|
-
* npm install @fullevent/node
|
|
871
|
+
* npm install @fullevent/node
|
|
872
872
|
* ```
|
|
873
873
|
*
|
|
874
874
|
* ## Quick Start
|
|
@@ -876,7 +876,7 @@ declare class WideEventBuilder {
|
|
|
876
876
|
* ### Direct Event Ingestion
|
|
877
877
|
*
|
|
878
878
|
* ```typescript
|
|
879
|
-
* import { FullEvent } from '@fullevent/node
|
|
879
|
+
* import { FullEvent } from '@fullevent/node';
|
|
880
880
|
*
|
|
881
881
|
* const client = new FullEvent({
|
|
882
882
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
@@ -889,7 +889,7 @@ declare class WideEventBuilder {
|
|
|
889
889
|
*
|
|
890
890
|
* ```typescript
|
|
891
891
|
* import { Hono } from 'hono';
|
|
892
|
-
* import { wideLogger, WideEventVariables } from '@fullevent/node
|
|
892
|
+
* import { wideLogger, WideEventVariables } from '@fullevent/node';
|
|
893
893
|
*
|
|
894
894
|
* const app = new Hono<{ Variables: WideEventVariables }>();
|
|
895
895
|
*
|
|
@@ -906,7 +906,7 @@ declare class WideEventBuilder {
|
|
|
906
906
|
* });
|
|
907
907
|
* ```
|
|
908
908
|
*
|
|
909
|
-
* @module @fullevent/node
|
|
909
|
+
* @module @fullevent/node
|
|
910
910
|
*/
|
|
911
911
|
|
|
912
912
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ interface WideLoggerConfig {
|
|
|
127
127
|
/**
|
|
128
128
|
* Base URL for the FullEvent API.
|
|
129
129
|
*
|
|
130
|
-
* @defaultValue `'https://api.fullevent.
|
|
130
|
+
* @defaultValue `'https://api.fullevent.app'`
|
|
131
131
|
*
|
|
132
132
|
* @remarks
|
|
133
133
|
* Only override for self-hosted deployments or local development.
|
|
@@ -162,7 +162,7 @@ interface WideLoggerConfig {
|
|
|
162
162
|
* @example
|
|
163
163
|
* ```typescript
|
|
164
164
|
* import { Hono } from 'hono';
|
|
165
|
-
* import { wideLogger, WideEventVariables } from '@fullevent/node
|
|
165
|
+
* import { wideLogger, WideEventVariables } from '@fullevent/node';
|
|
166
166
|
*
|
|
167
167
|
* const app = new Hono<{ Variables: WideEventVariables }>();
|
|
168
168
|
*
|
|
@@ -208,7 +208,7 @@ type WideEventVariables = {
|
|
|
208
208
|
* @example Quick Start
|
|
209
209
|
* ```typescript
|
|
210
210
|
* import { Hono } from 'hono';
|
|
211
|
-
* import { wideLogger, WideEventVariables } from '@fullevent/node
|
|
211
|
+
* import { wideLogger, WideEventVariables } from '@fullevent/node';
|
|
212
212
|
*
|
|
213
213
|
* const app = new Hono<{ Variables: WideEventVariables }>();
|
|
214
214
|
*
|
|
@@ -304,7 +304,7 @@ declare global {
|
|
|
304
304
|
* @example Quick Start
|
|
305
305
|
* ```typescript
|
|
306
306
|
* import express from 'express';
|
|
307
|
-
* import { expressWideLogger } from '@fullevent/node
|
|
307
|
+
* import { expressWideLogger } from '@fullevent/node';
|
|
308
308
|
*
|
|
309
309
|
* const app = express();
|
|
310
310
|
*
|
|
@@ -368,7 +368,7 @@ declare function expressWideLogger(config: WideLoggerConfig): (req: Request, res
|
|
|
368
368
|
* ```typescript
|
|
369
369
|
* const client = new FullEvent({
|
|
370
370
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
371
|
-
* baseUrl: 'https://api.fullevent.
|
|
371
|
+
* baseUrl: 'https://api.fullevent.app', // optional
|
|
372
372
|
* ping: true, // send a test ping on initialization
|
|
373
373
|
* });
|
|
374
374
|
* ```
|
|
@@ -386,7 +386,7 @@ interface FullEventConfig {
|
|
|
386
386
|
/**
|
|
387
387
|
* Base URL for the FullEvent API.
|
|
388
388
|
*
|
|
389
|
-
* @defaultValue `'https://api.fullevent.
|
|
389
|
+
* @defaultValue `'https://api.fullevent.app'`
|
|
390
390
|
*
|
|
391
391
|
* @remarks
|
|
392
392
|
* Only override this for self-hosted deployments or local development.
|
|
@@ -474,7 +474,7 @@ interface HttpRequestProperties {
|
|
|
474
474
|
*
|
|
475
475
|
* @example Basic Usage
|
|
476
476
|
* ```typescript
|
|
477
|
-
* import { FullEvent } from '@fullevent/node
|
|
477
|
+
* import { FullEvent } from '@fullevent/node';
|
|
478
478
|
*
|
|
479
479
|
* const client = new FullEvent({
|
|
480
480
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
@@ -868,7 +868,7 @@ declare class WideEventBuilder {
|
|
|
868
868
|
* ## Installation
|
|
869
869
|
*
|
|
870
870
|
* ```bash
|
|
871
|
-
* npm install @fullevent/node
|
|
871
|
+
* npm install @fullevent/node
|
|
872
872
|
* ```
|
|
873
873
|
*
|
|
874
874
|
* ## Quick Start
|
|
@@ -876,7 +876,7 @@ declare class WideEventBuilder {
|
|
|
876
876
|
* ### Direct Event Ingestion
|
|
877
877
|
*
|
|
878
878
|
* ```typescript
|
|
879
|
-
* import { FullEvent } from '@fullevent/node
|
|
879
|
+
* import { FullEvent } from '@fullevent/node';
|
|
880
880
|
*
|
|
881
881
|
* const client = new FullEvent({
|
|
882
882
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
@@ -889,7 +889,7 @@ declare class WideEventBuilder {
|
|
|
889
889
|
*
|
|
890
890
|
* ```typescript
|
|
891
891
|
* import { Hono } from 'hono';
|
|
892
|
-
* import { wideLogger, WideEventVariables } from '@fullevent/node
|
|
892
|
+
* import { wideLogger, WideEventVariables } from '@fullevent/node';
|
|
893
893
|
*
|
|
894
894
|
* const app = new Hono<{ Variables: WideEventVariables }>();
|
|
895
895
|
*
|
|
@@ -906,7 +906,7 @@ declare class WideEventBuilder {
|
|
|
906
906
|
* });
|
|
907
907
|
* ```
|
|
908
908
|
*
|
|
909
|
-
* @module @fullevent/node
|
|
909
|
+
* @module @fullevent/node
|
|
910
910
|
*/
|
|
911
911
|
|
|
912
912
|
/**
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var FullEvent = class {
|
|
|
36
36
|
*/
|
|
37
37
|
constructor(config) {
|
|
38
38
|
this.apiKey = config.apiKey;
|
|
39
|
-
this.baseUrl = config.baseUrl || "https://api.fullevent.
|
|
39
|
+
this.baseUrl = config.baseUrl || "https://api.fullevent.app";
|
|
40
40
|
if (config.ping) {
|
|
41
41
|
this.ping().catch((err) => {
|
|
42
42
|
console.error("[FullEvent SDK] Auto-ping failed:", err);
|
|
@@ -162,7 +162,7 @@ var FullEvent = class {
|
|
|
162
162
|
duration_ms: 0,
|
|
163
163
|
// Will be updated after
|
|
164
164
|
// SDK info
|
|
165
|
-
sdk: "@fullevent/node
|
|
165
|
+
sdk: "@fullevent/node",
|
|
166
166
|
sdk_version: "1.0.0",
|
|
167
167
|
// Runtime info
|
|
168
168
|
runtime: typeof process !== "undefined" ? "node" : "browser",
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var FullEvent = class {
|
|
|
7
7
|
*/
|
|
8
8
|
constructor(config) {
|
|
9
9
|
this.apiKey = config.apiKey;
|
|
10
|
-
this.baseUrl = config.baseUrl || "https://api.fullevent.
|
|
10
|
+
this.baseUrl = config.baseUrl || "https://api.fullevent.app";
|
|
11
11
|
if (config.ping) {
|
|
12
12
|
this.ping().catch((err) => {
|
|
13
13
|
console.error("[FullEvent SDK] Auto-ping failed:", err);
|
|
@@ -133,7 +133,7 @@ var FullEvent = class {
|
|
|
133
133
|
duration_ms: 0,
|
|
134
134
|
// Will be updated after
|
|
135
135
|
// SDK info
|
|
136
|
-
sdk: "@fullevent/node
|
|
136
|
+
sdk: "@fullevent/node",
|
|
137
137
|
sdk_version: "1.0.0",
|
|
138
138
|
// Runtime info
|
|
139
139
|
runtime: typeof process !== "undefined" ? "node" : "browser",
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { WideEvent } from './index';
|
|
|
7
7
|
* ```typescript
|
|
8
8
|
* const client = new FullEvent({
|
|
9
9
|
* apiKey: process.env.FULLEVENT_API_KEY!,
|
|
10
|
-
* baseUrl: 'https://api.fullevent.
|
|
10
|
+
* baseUrl: 'https://api.fullevent.app', // optional
|
|
11
11
|
* ping: true, // send a test ping on initialization
|
|
12
12
|
* });
|
|
13
13
|
* ```
|
|
@@ -26,7 +26,7 @@ export interface FullEventConfig {
|
|
|
26
26
|
/**
|
|
27
27
|
* Base URL for the FullEvent API.
|
|
28
28
|
*
|
|
29
|
-
* @defaultValue `'https://api.fullevent.
|
|
29
|
+
* @defaultValue `'https://api.fullevent.app'`
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Only override this for self-hosted deployments or local development.
|
|
@@ -155,7 +155,7 @@ export class FullEvent {
|
|
|
155
155
|
*/
|
|
156
156
|
constructor(config: FullEventConfig) {
|
|
157
157
|
this.apiKey = config.apiKey;
|
|
158
|
-
this.baseUrl = config.baseUrl || 'https://api.fullevent.
|
|
158
|
+
this.baseUrl = config.baseUrl || 'https://api.fullevent.app';
|
|
159
159
|
|
|
160
160
|
// Auto-ping if enabled
|
|
161
161
|
if (config.ping) {
|
package/src/middleware/hono.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface WideLoggerConfig {
|
|
|
135
135
|
/**
|
|
136
136
|
* Base URL for the FullEvent API.
|
|
137
137
|
*
|
|
138
|
-
* @defaultValue `'https://api.fullevent.
|
|
138
|
+
* @defaultValue `'https://api.fullevent.app'`
|
|
139
139
|
*
|
|
140
140
|
* @remarks
|
|
141
141
|
* Only override for self-hosted deployments or local development.
|