ocpp-ws-io 2.2.4 → 2.3.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 +3 -3
- package/dist/adapters/redis.d.mts +2 -2
- package/dist/adapters/redis.d.ts +2 -2
- package/dist/adapters/redis.js +1 -1
- package/dist/adapters/redis.mjs +1 -1
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/{context-B_y56LLS.d.ts → context-B4-L-O1-.d.ts} +1 -1
- package/dist/{context-BVYqFvfw.d.mts → context-BNELI5Ux.d.mts} +1 -1
- package/dist/express.d.mts +1 -1
- package/dist/express.d.ts +1 -1
- package/dist/fastify.d.mts +2 -2
- package/dist/fastify.d.ts +2 -2
- package/dist/hono.d.mts +2 -2
- package/dist/hono.d.ts +2 -2
- package/dist/{index-DrWsObRI.d.ts → index-CEMhGOxh.d.ts} +16 -6
- package/dist/{index-Dr8uXTWu.d.mts → index-Gz98XqQ7.d.mts} +16 -6
- package/dist/index.d.mts +9 -11
- package/dist/index.d.ts +9 -11
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/dist/nestjs.d.mts +1 -1
- package/dist/nestjs.d.ts +1 -1
- package/dist/nestjs.js +8 -8
- package/dist/nestjs.mjs +8 -8
- package/dist/parse-worker.cjs +91 -0
- package/dist/plugins.d.mts +12 -2
- package/dist/plugins.d.ts +12 -2
- package/dist/plugins.js +1 -1
- package/dist/plugins.mjs +1 -1
- package/dist/{types-BsoUgWtt.d.mts → types-tTYOr5Gm.d.mts} +110 -22
- package/dist/{types-BsoUgWtt.d.ts → types-tTYOr5Gm.d.ts} +110 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EventAdapterInterface, g as AuthCallback, L as LoggerLike, h as LoggingConfig, M as MiddlewareFunction, i as MiddlewareContext, j as OCPPPlugin, k as ConnectionMiddleware, V as Validator } from './types-
|
|
2
|
-
export { A as AllMethodNames, l as AnyOCPPProtocol, m as AuthAccept, n as AuthContext, o as CORSOptions, p as CallHandler, C as CallOptions, q as ClientEvents, r as ClientOptions, f as CloseOptions, s as CompressionOptions, t as ConnectionContext, u as ConnectionState, H as HandlerContext, v as HandshakeInfo, w as ListenOptions, x as MessageDirection, y as MessageEventContext, z as MessageEventPayload, B as MessageType, D as MiddlewareNext, F as MiddlewareStack, N as NOREPLY, G as OCPP16Methods, I as OCPP201Methods, J as OCPP21Methods, K as OCPPCall, P as OCPPCallError, Q as OCPPCallResult, R as OCPPClient, S as OCPPMessage, T as OCPPMethodMap, c as OCPPProtocol, U as OCPPProtocolKey, d as OCPPRequestType, e as OCPPResponseType, W as OCPPRouter, O as OCPPServer, a as OCPPServerClient, b as OCPPServerStats, X as RateLimitOptions, Y as RouterConfig, Z as SecurityEvent, _ as SecurityProfile, $ as ServerEvents, a0 as ServerOptions, a1 as SessionData, a2 as TLSOptions, a3 as TelemetryConfig, a4 as TypedEventEmitter, a5 as WildcardHandler, a6 as createRouter, a7 as createValidator } from './types-
|
|
3
|
-
import { R as RedisPubSubDriver, S as StreamEntry } from './index-
|
|
4
|
-
export { a as RedisAdapter } from './index-
|
|
1
|
+
import { E as EventAdapterInterface, g as AuthCallback, L as LoggerLike, h as LoggingConfig, M as MiddlewareFunction, i as MiddlewareContext, j as OCPPPlugin, k as ConnectionMiddleware, V as Validator } from './types-tTYOr5Gm.js';
|
|
2
|
+
export { A as AllMethodNames, l as AnyOCPPProtocol, m as AuthAccept, n as AuthContext, o as CORSOptions, p as CallHandler, C as CallOptions, q as ClientEvents, r as ClientOptions, f as CloseOptions, s as CompressionOptions, t as ConnectionContext, u as ConnectionState, H as HandlerContext, v as HandshakeInfo, w as ListenOptions, x as MessageDirection, y as MessageEventContext, z as MessageEventPayload, B as MessageType, D as MiddlewareNext, F as MiddlewareStack, N as NOREPLY, G as OCPP16Methods, I as OCPP201Methods, J as OCPP21Methods, K as OCPPCall, P as OCPPCallError, Q as OCPPCallResult, R as OCPPClient, S as OCPPMessage, T as OCPPMethodMap, c as OCPPProtocol, U as OCPPProtocolKey, d as OCPPRequestType, e as OCPPResponseType, W as OCPPRouter, O as OCPPServer, a as OCPPServerClient, b as OCPPServerStats, X as RateLimitOptions, Y as RouterConfig, Z as SecurityEvent, _ as SecurityProfile, $ as ServerEvents, a0 as ServerOptions, a1 as SessionData, a2 as TLSOptions, a3 as TelemetryConfig, a4 as TypedEventEmitter, a5 as WildcardHandler, a6 as createRouter, a7 as createValidator } from './types-tTYOr5Gm.js';
|
|
3
|
+
import { R as RedisPubSubDriver, S as StreamEntry } from './index-CEMhGOxh.js';
|
|
4
|
+
export { a as RedisAdapter } from './index-CEMhGOxh.js';
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
6
|
import 'ws';
|
|
7
7
|
import 'node:https';
|
|
@@ -74,22 +74,20 @@ interface ClusterDriverOptions {
|
|
|
74
74
|
* Redis Cluster driver that implements `RedisPubSubDriver`.
|
|
75
75
|
* Requires `ioredis` as a peer dependency.
|
|
76
76
|
*
|
|
77
|
-
* Hash-tag strategy:
|
|
78
|
-
* - Presence keys: `{identity}` → sharded by station identity
|
|
79
|
-
* - Stream keys: `{nodeId}` → sharded by server node ID
|
|
80
|
-
*
|
|
81
77
|
* @example
|
|
82
78
|
* ```ts
|
|
83
|
-
* const driver =
|
|
79
|
+
* const driver = new ClusterDriver({
|
|
84
80
|
* nodes: [{ host: '10.0.0.1', port: 6379 }, { host: '10.0.0.2', port: 6379 }],
|
|
85
81
|
* });
|
|
86
|
-
* const adapter = new RedisAdapter({
|
|
82
|
+
* const adapter = new RedisAdapter({ driver });
|
|
87
83
|
* ```
|
|
88
84
|
*/
|
|
89
85
|
declare class ClusterDriver implements RedisPubSubDriver {
|
|
90
86
|
private _cluster;
|
|
91
87
|
private _subscriber;
|
|
92
88
|
private _handlers;
|
|
89
|
+
/** Cluster connections share command pipelines — never issue blocking reads. */
|
|
90
|
+
readonly hasBlockingClient = false;
|
|
93
91
|
constructor(_options: ClusterDriverOptions);
|
|
94
92
|
publish(channel: string, message: string): Promise<void>;
|
|
95
93
|
subscribe(channel: string, handler: (message: string) => void): Promise<void>;
|
|
@@ -335,7 +333,7 @@ declare function createRPCError(code: string, message?: string, details?: Record
|
|
|
335
333
|
* If a property holds a non-serializable value (functions, symbols,
|
|
336
334
|
* circular references), it is silently skipped.
|
|
337
335
|
*/
|
|
338
|
-
declare function getErrorPlainObject(err: Error): Record<string, unknown>;
|
|
336
|
+
declare function getErrorPlainObject(err: Error, includeStack?: boolean): Record<string, unknown>;
|
|
339
337
|
/**
|
|
340
338
|
* Get the package identifier string used in HTTP headers and logging.
|
|
341
339
|
* Format: `ocpp-ws-io/1.0.0`
|