@iobroker/socket-classes 2.0.5 → 2.0.6

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 CHANGED
@@ -1008,7 +1008,7 @@ Unsubscribe from file changes in ioBroker DB
1008
1008
  -->
1009
1009
 
1010
1010
  ## Changelog
1011
- ### 2.0.5 (2025-02-07)
1011
+ ### 2.0.6 (2025-02-07)
1012
1012
  * (@GermanBluefox) Code migrated to TypeScript
1013
1013
 
1014
1014
  ### 1.6.2 (2024-12-01)
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { type SocketSubscribeTypes } from './types';
3
3
  import cookieParser from 'cookie-parser';
4
4
  export { SocketCommandsAdmin } from './lib/socketCommandsAdmin';
5
5
  export { SocketCommands, type SupportedFeature } from './lib/socketCommands';
6
- export { SocketCommon, type Server, type SocketSettings, type SocketIoOptions } from './lib/socketCommon';
6
+ export { SocketCommon, type Server, type SocketSettings, type SocketIoOptions, type WhiteListSettings, } from './lib/socketCommon';
7
7
  export { SocketAdmin } from './lib/socketAdmin';
8
8
  import { authorize as passportSocket, type PassportHttpRequest, type Store } from './lib/passportSocket';
9
9
  export { passport, cookieParser, passportSocket, type PassportHttpRequest, type Store };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAgC;AAQvB,mBARF,kBAAQ,CAQE;AANjB,kEAAyC;AAMtB,uBANZ,uBAAY,CAMY;AAL/B,iEAAgE;AAAvD,0HAAA,mBAAmB,OAAA;AAC5B,uDAA6E;AAApE,gHAAA,cAAc,OAAA;AACvB,mDAA0G;AAAjG,4GAAA,YAAY,OAAA;AACrB,iDAAgD;AAAvC,0GAAA,WAAW,OAAA;AACpB,yDAAyG;AACxE,+FADX,0BAAc,OACW"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAgC;AAcvB,mBAdF,kBAAQ,CAcE;AAZjB,kEAAyC;AAYtB,uBAZZ,uBAAY,CAYY;AAX/B,iEAAgE;AAAvD,0HAAA,mBAAmB,OAAA;AAC5B,uDAA6E;AAApE,gHAAA,cAAc,OAAA;AACvB,mDAM4B;AALxB,4GAAA,YAAY,OAAA;AAMhB,iDAAgD;AAAvC,0GAAA,WAAW,OAAA;AACpB,yDAAyG;AACxE,+FADX,0BAAc,OACW"}
@@ -13,7 +13,7 @@ import type { Store } from './passportSocket';
13
13
  import type { PermissionCommands, SocketSubscribeTypes } from '../types';
14
14
  import type { AddressInfo } from 'node:net';
15
15
  import type { SocketCommandsAdmin } from './socketCommandsAdmin';
16
- interface WhiteListSettings {
16
+ export interface WhiteListSettings {
17
17
  /** Like "admin" or "user". No "system.user." prefix */
18
18
  user: string;
19
19
  object: {
@@ -133,4 +133,3 @@ export declare class SocketCommon {
133
133
  publishInstanceMessageAll(sourceInstance: string, messageType: string, sid: string, data: any): void;
134
134
  close(): void;
135
135
  }
136
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",