@nightx.co/pulsar 1.0.15 → 1.0.17
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/LICENSE +207 -0
- package/README.md +83 -10
- package/dist/chunk-cpn1qh4e.js.map +2 -2
- package/dist/helpers/computeConfigDelta.d.ts.map +1 -1
- package/dist/helpers/generateShaHash.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +8 -8
- package/dist/network/abstract/BaseNetworkDriver.d.ts +1 -1
- package/dist/network/abstract/BaseNetworkDriver.d.ts.map +1 -1
- package/dist/network/drivers/HttpNetworkDriver.d.ts +1 -1
- package/dist/network/drivers/HttpNetworkDriver.d.ts.map +1 -1
- package/dist/network/drivers/WebSocketNetworkDriver.d.ts +1 -1
- package/dist/network/drivers/WebSocketNetworkDriver.d.ts.map +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/index.js.map +4 -4
- package/dist/subsys/LoggerService.d.ts.map +1 -1
- package/dist/types/consumer.types.d.ts +36 -0
- package/dist/types/consumer.types.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerService.d.ts","sourceRoot":"","sources":["../../src/subsys/LoggerService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,GAAG,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;IAC9C,IAAI,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;IAC/C,KAAK,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;IAChD,KAAK,CAAC,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;CACpD;AASD,qBAAa,aAAc,YAAW,OAAO;IACzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAiC;IAEjD,WAAW,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"LoggerService.d.ts","sourceRoot":"","sources":["../../src/subsys/LoggerService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,GAAG,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;IAC9C,IAAI,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;IAC/C,KAAK,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;IAChD,KAAK,CAAC,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE,GAAI,IAAI,CAAC;CACpD;AASD,qBAAa,aAAc,YAAW,OAAO;IACzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAiC;IAEjD,WAAW,CAAC,YAAY,EAAG,OAAO;IAIlC,GAAG,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE;IAIrC,IAAI,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE;IAItC,KAAK,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE;IAIvC,KAAK,CAAC,OAAO,EAAG,MAAM,EAAE,GAAG,IAAI,EAAG,GAAG,EAAE;CAKjD"}
|
|
@@ -25,12 +25,48 @@ export type EngineConsumerConfig = {
|
|
|
25
25
|
url: string;
|
|
26
26
|
headers?: Record<string, string>;
|
|
27
27
|
timeoutMs?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Enables MessagePack payload optimization, reducing payload size by up to 30%
|
|
30
|
+
* or more to conserve bandwidth.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* This optimization is incompatible with AWS Lambda or other FaaS environments
|
|
34
|
+
* that intercept, read, or modify the raw request bytes before the handler executes.
|
|
35
|
+
*
|
|
36
|
+
* @default
|
|
37
|
+
* true
|
|
38
|
+
*/
|
|
39
|
+
optimizePayload?: boolean;
|
|
28
40
|
} | {
|
|
29
41
|
type: "socket";
|
|
30
42
|
queue: string;
|
|
43
|
+
/**
|
|
44
|
+
* Enables MessagePack payload optimization, reducing payload size by up to 30%
|
|
45
|
+
* or more to conserve bandwidth.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* This optimization is incompatible with AWS Lambda or other FaaS environments
|
|
49
|
+
* that intercept, read, or modify the raw request bytes before the handler executes.
|
|
50
|
+
*
|
|
51
|
+
* @default
|
|
52
|
+
* true
|
|
53
|
+
*/
|
|
54
|
+
optimizePayload?: boolean;
|
|
31
55
|
} | {
|
|
32
56
|
type: "callback";
|
|
33
57
|
queue: string;
|
|
34
58
|
handler(job: JobContext): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Enables MessagePack payload optimization, reducing payload size by up to 30%
|
|
61
|
+
* or more to conserve bandwidth.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This optimization is incompatible with AWS Lambda or other FaaS environments
|
|
65
|
+
* that intercept, read, or modify the raw request bytes before the handler executes.
|
|
66
|
+
*
|
|
67
|
+
* @default
|
|
68
|
+
* true
|
|
69
|
+
*/
|
|
70
|
+
optimizePayload?: boolean;
|
|
35
71
|
};
|
|
36
72
|
//# sourceMappingURL=consumer.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumer.types.d.ts","sourceRoot":"","sources":["../../src/types/consumer.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,GAAG,IAAI;IAC9B;;;;QAII;IACJ,QAAQ,EAAG,MAAM,CAAC;IAElB;;QAEI;IACJ,KAAK,EAAG,MAAM,CAAC;IAEf;;QAEI;IACJ,OAAO,EAAG,CAAC,CAAC;IAEZ;;QAEI;IACJ,QAAQ,EAAG,MAAM,CAAC;IAClB,SAAS,EAAG,MAAM,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"consumer.types.d.ts","sourceRoot":"","sources":["../../src/types/consumer.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,GAAG,IAAI;IAC9B;;;;QAII;IACJ,QAAQ,EAAG,MAAM,CAAC;IAElB;;QAEI;IACJ,KAAK,EAAG,MAAM,CAAC;IAEf;;QAEI;IACJ,OAAO,EAAG,CAAC,CAAC;IAEZ;;QAEI;IACJ,QAAQ,EAAG,MAAM,CAAC;IAClB,SAAS,EAAG,MAAM,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAC1B;IACM,IAAI,EAAG,MAAM,CAAC;IACd,KAAK,EAAG,MAAM,CAAC;IACf,GAAG,EAAG,MAAM,CAAC;IACb,OAAO,CAAC,EAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,SAAS,CAAC,EAAG,MAAM,CAAC;IAEpB;;;;;;;;;;MAUE;IACF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,GAED;IACI,IAAI,EAAG,QAAQ,CAAC;IAChB,KAAK,EAAG,MAAM,CAAC;IACf;;;;;;;;;;MAUE;IACF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,GAEL;IACI,IAAI,EAAG,UAAU,CAAC;IAClB,KAAK,EAAG,MAAM,CAAC;IACf,OAAO,CAAC,GAAG,EAAG,UAAU,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C;;;;;;;;;;MAUE;IACF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nightx.co/pulsar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "index.ts",
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
|
-
"dist"
|
|
50
|
+
"dist",
|
|
51
|
+
"LICENSE",
|
|
52
|
+
"README.md"
|
|
51
53
|
],
|
|
52
54
|
"scripts": {
|
|
53
55
|
"build": "bun run build.ts;",
|