mongodb-livedata-server 0.0.11 → 0.0.12

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,7 +1,7 @@
1
1
  import { AsyncFunction } from "../types";
2
2
  import { DDPSession, SessionConnectionHandle } from "./session";
3
- export declare type SubscriptionHandle = `N${string}` | `U${string}`;
4
- export declare type SubscriptionCallbacks = Pick<Subscription, "added" | "changed" | "removed">;
3
+ export type SubscriptionHandle = `N${string}` | `U${string}`;
4
+ export type SubscriptionCallbacks = Pick<Subscription, "added" | "changed" | "removed">;
5
5
  /**
6
6
  * @summary The server's side of a subscription
7
7
  * @class Subscription
@@ -12,7 +12,7 @@ const ejson_1 = require("../ejson/ejson");
12
12
  const live_connection_1 = require("./live_connection");
13
13
  const live_cursor_1 = require("./live_cursor");
14
14
  exports.OPLOG_COLLECTION = 'oplog.rs';
15
- var TOO_FAR_BEHIND = process.env.METEOR_OPLOG_TOO_FAR_BEHIND || 2000;
15
+ var TOO_FAR_BEHIND = +process.env.METEOR_OPLOG_TOO_FAR_BEHIND || 2000;
16
16
  var TAIL_TIMEOUT = +process.env.METEOR_OPLOG_TAIL_TIMEOUT || 30000;
17
17
  var showTS = function (ts) {
18
18
  return "Timestamp(" + ts.getHighBits() + ", " + ts.getLowBits() + ")";
@@ -338,7 +338,7 @@ class OplogHandle {
338
338
  TOO_FAR_BEHIND = value;
339
339
  }
340
340
  _resetTooFarBehind() {
341
- TOO_FAR_BEHIND = process.env.METEOR_OPLOG_TOO_FAR_BEHIND || 2000;
341
+ TOO_FAR_BEHIND = +process.env.METEOR_OPLOG_TOO_FAR_BEHIND || 2000;
342
342
  }
343
343
  }
344
344
  exports.OplogHandle = OplogHandle;
@@ -1 +1 @@
1
- export declare type AsyncFunction = (...args: any[]) => Promise<any>;
1
+ export type AsyncFunction = (...args: any[]) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongodb-livedata-server",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
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": "dist/livedata_server.d.ts",
@@ -11,11 +11,11 @@
11
11
  "author": "Andrei Markeev",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
+ "@types/double-ended-queue": "^2.1.1",
14
15
  "@types/node": "^18.11.9",
15
16
  "@types/sockjs": "^0.3.33",
16
- "@types/double-ended-queue": "^2.1.1",
17
17
  "double-ended-queue": "^2.1.0-0",
18
- "mongodb": "^4.11.0",
18
+ "mongodb": "^5.4.0",
19
19
  "permessage-deflate": "^0.1.7",
20
20
  "sockjs": "^0.3.24"
21
21
  },