@loopback/socketio 0.6.4 → 0.6.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.
@@ -1,6 +1,6 @@
1
1
  import { Constructor, Context, DecoratorType, MetadataAccessor, MetadataMap } from '@loopback/core';
2
2
  import { Socket } from 'socket.io';
3
- declare type SocketIoEventMatcherInfo = {
3
+ type SocketIoEventMatcherInfo = {
4
4
  matcher: string | RegExp;
5
5
  methodNames: string[];
6
6
  };
@@ -2,7 +2,7 @@ import { Application, Binding, BindingFilter, Constructor, Context } from '@loop
2
2
  import cors from 'cors';
3
3
  import { Server, ServerOptions, Socket } from 'socket.io';
4
4
  import { SocketIoMetadata } from './decorators';
5
- export declare type SockIOMiddleware = (socket: Socket, fn: (err?: any) => void) => void;
5
+ export type SockIOMiddleware = (socket: Socket, fn: (err?: any) => void) => void;
6
6
  export declare const getNamespaceKeyForName: (name: string) => string;
7
7
  /**
8
8
  * A binding filter to match socket.io controllers
package/dist/types.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Context, ControllerClass } from '@loopback/core';
2
2
  import { HttpServerOptions } from '@loopback/http-server';
3
- export declare type SocketIoOptions = HttpServerOptions;
3
+ export type SocketIoOptions = HttpServerOptions;
4
4
  export interface SocketIoSequence {
5
5
  handle(methodName: string, args: unknown[], done: Function): Promise<void>;
6
6
  }
7
- export declare type SocketIoDoneFunction = (response: unknown) => Promise<void>;
8
- export declare type SocketIoInvokeMethod = (context: Context, controller: ControllerClass, methodName: string, args: unknown[]) => unknown;
9
- export declare type SocketIoSendMethod = (done: Function, result: unknown) => unknown;
10
- export declare type SocketIoRejectMethod = (done: Function, error: Error) => unknown;
7
+ export type SocketIoDoneFunction = (response: unknown) => Promise<void>;
8
+ export type SocketIoInvokeMethod = (context: Context, controller: ControllerClass, methodName: string, args: unknown[]) => unknown;
9
+ export type SocketIoSendMethod = (done: Function, result: unknown) => unknown;
10
+ export type SocketIoRejectMethod = (done: Function, error: Error) => unknown;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopback/socketio",
3
3
  "description": "LoopBack's WebSocket server based on socket.io",
4
- "version": "0.6.4",
4
+ "version": "0.6.6",
5
5
  "keywords": [
6
6
  "LoopBack",
7
7
  "Socket.IO",
@@ -42,27 +42,27 @@
42
42
  "!*/__tests__"
43
43
  ],
44
44
  "peerDependencies": {
45
- "@loopback/boot": "^5.0.4",
46
- "@loopback/core": "^4.0.4"
45
+ "@loopback/boot": "^5.0.6",
46
+ "@loopback/core": "^4.0.6"
47
47
  },
48
48
  "dependencies": {
49
- "@loopback/http-server": "^4.0.4",
50
- "@types/cors": "^2.8.12",
51
- "@types/lodash": "^4.14.186",
49
+ "@loopback/http-server": "^4.0.6",
50
+ "@types/cors": "^2.8.13",
51
+ "@types/lodash": "^4.14.191",
52
52
  "cors": "^2.8.5",
53
53
  "debug": "^4.3.4",
54
54
  "lodash": "^4.17.21",
55
- "socket.io": "^4.5.2"
55
+ "socket.io": "^4.5.4"
56
56
  },
57
57
  "devDependencies": {
58
- "@loopback/boot": "^5.0.4",
59
- "@loopback/build": "^9.0.4",
60
- "@loopback/core": "^4.0.4",
61
- "@loopback/eslint-config": "^13.0.4",
62
- "@loopback/testlab": "^5.0.4",
58
+ "@loopback/boot": "^5.0.6",
59
+ "@loopback/build": "^9.0.6",
60
+ "@loopback/core": "^4.0.6",
61
+ "@loopback/eslint-config": "^13.0.6",
62
+ "@loopback/testlab": "^5.0.6",
63
63
  "@types/debug": "^4.1.7",
64
64
  "p-event": "^4.2.0",
65
- "socket.io-client": "^4.5.2"
65
+ "socket.io-client": "^4.5.4"
66
66
  },
67
- "gitHead": "947500110c84ba77b2197b759b559c195cfce260"
67
+ "gitHead": "709a5ecd1ffddeb02262cecabf7b663c7b4d7e47"
68
68
  }