mongodb-livedata-server 0.0.3 → 0.0.4

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 { MethodInvocation } from "./method-invocation";
2
2
  import { StreamServer, StreamServerSocket } from "./stream_server";
3
- import { DDPSession } from "./session";
3
+ import { DDPSession, SessionConnectionHandle } from "./session";
4
4
  import { Server } from "http";
5
5
  import { parseDDP, stringifyDDP, SUPPORTED_DDP_VERSIONS } from "./utils";
6
6
  import { makeRpcSeed } from "./random-stream";
@@ -172,7 +172,7 @@ export class DDPServer {
172
172
  * @memberOf Meteor
173
173
  * @importFromPackage meteor
174
174
  */
175
- onConnection(fn) {
175
+ onConnection(fn: (conn: SessionConnectionHandle) => void) {
176
176
  var self = this;
177
177
  return self.onConnectionHook.register(fn);
178
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongodb-livedata-server",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "MongoDB live data server, extracted from Meteor, Fibers removed and converted to TypeScript",
5
5
  "main": "dist/livedata_server.js",
6
6
  "types": "livedata_server.ts",
@@ -11,17 +11,14 @@
11
11
  "author": "Andrei Markeev",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
+ "@types/node": "^18.11.9",
15
+ "@types/sockjs": "^0.3.33",
16
+ "@types/double-ended-queue": "^2.1.1",
14
17
  "double-ended-queue": "^2.1.0-0",
15
18
  "mongodb": "^4.11.0",
16
19
  "permessage-deflate": "^0.1.7",
17
20
  "sockjs": "^0.3.24"
18
21
  },
19
- "devDependencies": {
20
- "@types/connect": "^3.4.35",
21
- "@types/double-ended-queue": "^2.1.1",
22
- "@types/node": "^18.11.9",
23
- "@types/sockjs": "^0.3.33"
24
- },
25
22
  "repository": {
26
23
  "type": "git",
27
24
  "url": "git://github.com/andrei-markeev/mongodb-livedata-server.git"