mongodb-livedata-server 0.1.2 → 0.1.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.
Files changed (91) hide show
  1. package/dist/livedata_server.d.ts +4 -4
  2. package/dist/livedata_server.js +11 -11
  3. package/dist/meteor/binary-heap/max_heap.d.ts +31 -31
  4. package/dist/meteor/binary-heap/max_heap.js +186 -186
  5. package/dist/meteor/binary-heap/min_heap.d.ts +6 -6
  6. package/dist/meteor/binary-heap/min_heap.js +17 -17
  7. package/dist/meteor/binary-heap/min_max_heap.d.ts +11 -11
  8. package/dist/meteor/binary-heap/min_max_heap.js +48 -48
  9. package/dist/meteor/callback-hook/hook.d.ts +11 -11
  10. package/dist/meteor/callback-hook/hook.js +78 -78
  11. package/dist/meteor/ddp/crossbar.d.ts +15 -15
  12. package/dist/meteor/ddp/crossbar.js +136 -136
  13. package/dist/meteor/ddp/heartbeat.d.ts +19 -19
  14. package/dist/meteor/ddp/heartbeat.js +77 -77
  15. package/dist/meteor/ddp/livedata_server.d.ts +141 -142
  16. package/dist/meteor/ddp/livedata_server.js +403 -403
  17. package/dist/meteor/ddp/method-invocation.d.ts +35 -35
  18. package/dist/meteor/ddp/method-invocation.js +72 -72
  19. package/dist/meteor/ddp/random-stream.d.ts +8 -8
  20. package/dist/meteor/ddp/random-stream.js +100 -100
  21. package/dist/meteor/ddp/session-collection-view.d.ts +20 -20
  22. package/dist/meteor/ddp/session-collection-view.js +106 -106
  23. package/dist/meteor/ddp/session-document-view.d.ts +8 -8
  24. package/dist/meteor/ddp/session-document-view.js +82 -82
  25. package/dist/meteor/ddp/session.d.ts +75 -74
  26. package/dist/meteor/ddp/session.js +590 -589
  27. package/dist/meteor/ddp/stream_server.d.ts +20 -21
  28. package/dist/meteor/ddp/stream_server.js +181 -181
  29. package/dist/meteor/ddp/subscription.d.ts +94 -94
  30. package/dist/meteor/ddp/subscription.js +370 -370
  31. package/dist/meteor/ddp/utils.d.ts +8 -8
  32. package/dist/meteor/ddp/utils.js +104 -104
  33. package/dist/meteor/ddp/writefence.d.ts +20 -20
  34. package/dist/meteor/ddp/writefence.js +111 -111
  35. package/dist/meteor/diff-sequence/diff.d.ts +17 -17
  36. package/dist/meteor/diff-sequence/diff.js +257 -257
  37. package/dist/meteor/ejson/ejson.d.ts +82 -82
  38. package/dist/meteor/ejson/ejson.js +568 -569
  39. package/dist/meteor/ejson/stringify.d.ts +2 -2
  40. package/dist/meteor/ejson/stringify.js +119 -119
  41. package/dist/meteor/ejson/utils.d.ts +12 -12
  42. package/dist/meteor/ejson/utils.js +42 -42
  43. package/dist/meteor/mongo/caching_change_observer.d.ts +16 -16
  44. package/dist/meteor/mongo/caching_change_observer.js +63 -63
  45. package/dist/meteor/mongo/doc_fetcher.d.ts +7 -7
  46. package/dist/meteor/mongo/doc_fetcher.js +53 -53
  47. package/dist/meteor/mongo/geojson_utils.d.ts +3 -3
  48. package/dist/meteor/mongo/geojson_utils.js +40 -41
  49. package/dist/meteor/mongo/live_connection.d.ts +28 -28
  50. package/dist/meteor/mongo/live_connection.js +264 -264
  51. package/dist/meteor/mongo/live_cursor.d.ts +25 -25
  52. package/dist/meteor/mongo/live_cursor.js +60 -60
  53. package/dist/meteor/mongo/minimongo_common.d.ts +84 -84
  54. package/dist/meteor/mongo/minimongo_common.js +1998 -2002
  55. package/dist/meteor/mongo/minimongo_matcher.d.ts +23 -23
  56. package/dist/meteor/mongo/minimongo_matcher.js +283 -283
  57. package/dist/meteor/mongo/minimongo_sorter.d.ts +16 -16
  58. package/dist/meteor/mongo/minimongo_sorter.js +268 -268
  59. package/dist/meteor/mongo/observe_driver_utils.d.ts +9 -9
  60. package/dist/meteor/mongo/observe_driver_utils.js +72 -73
  61. package/dist/meteor/mongo/observe_multiplexer.d.ts +46 -46
  62. package/dist/meteor/mongo/observe_multiplexer.js +203 -203
  63. package/dist/meteor/mongo/oplog-observe-driver.d.ts +68 -68
  64. package/dist/meteor/mongo/oplog-observe-driver.js +918 -918
  65. package/dist/meteor/mongo/oplog_tailing.d.ts +35 -35
  66. package/dist/meteor/mongo/oplog_tailing.js +352 -352
  67. package/dist/meteor/mongo/oplog_v2_converter.d.ts +1 -1
  68. package/dist/meteor/mongo/oplog_v2_converter.js +125 -126
  69. package/dist/meteor/mongo/polling_observe_driver.d.ts +30 -30
  70. package/dist/meteor/mongo/polling_observe_driver.js +216 -221
  71. package/dist/meteor/mongo/synchronous-cursor.d.ts +17 -17
  72. package/dist/meteor/mongo/synchronous-cursor.js +261 -261
  73. package/dist/meteor/mongo/synchronous-queue.d.ts +13 -13
  74. package/dist/meteor/mongo/synchronous-queue.js +110 -110
  75. package/dist/meteor/ordered-dict/ordered_dict.d.ts +31 -31
  76. package/dist/meteor/ordered-dict/ordered_dict.js +198 -198
  77. package/dist/meteor/random/AbstractRandomGenerator.d.ts +42 -42
  78. package/dist/meteor/random/AbstractRandomGenerator.js +92 -92
  79. package/dist/meteor/random/AleaRandomGenerator.d.ts +13 -13
  80. package/dist/meteor/random/AleaRandomGenerator.js +90 -90
  81. package/dist/meteor/random/NodeRandomGenerator.d.ts +16 -16
  82. package/dist/meteor/random/NodeRandomGenerator.js +42 -42
  83. package/dist/meteor/random/createAleaGenerator.d.ts +2 -2
  84. package/dist/meteor/random/createAleaGenerator.js +32 -32
  85. package/dist/meteor/random/createRandom.d.ts +1 -1
  86. package/dist/meteor/random/createRandom.js +22 -22
  87. package/dist/meteor/random/main.d.ts +1 -1
  88. package/dist/meteor/random/main.js +12 -12
  89. package/dist/meteor/types.d.ts +1 -1
  90. package/dist/meteor/types.js +2 -2
  91. package/package.json +6 -5
@@ -1,82 +1,82 @@
1
- /**
2
- * @summary Add a custom datatype to EJSON.
3
- * @locus Anywhere
4
- * @param {String} name A tag for your custom type; must be unique among
5
- * custom data types defined in your project, and must
6
- * match the result of your type's `typeName` method.
7
- * @param {Function} factory A function that deserializes a JSON-compatible
8
- * value into an instance of your type. This should
9
- * match the serialization performed by your
10
- * type's `toJSONValue` method.
11
- */
12
- export declare function addType(name: any, factory: any): void;
13
- export declare function _isCustomType(obj: any): boolean;
14
- export declare function _getTypes(isOriginal?: boolean): unknown;
15
- export declare function _getConverters(): any;
16
- export declare function _adjustTypesToJSONValue(obj: any): any;
17
- /**
18
- * @summary Serialize an EJSON-compatible value into its plain JSON
19
- * representation.
20
- * @locus Anywhere
21
- * @param {EJSON} val A value to serialize to plain JSON.
22
- */
23
- export declare function toJSONValue(item: any): any;
24
- export declare function _adjustTypesFromJSONValue(obj: any): any;
25
- /**
26
- * @summary Deserialize an EJSON value from its plain JSON representation.
27
- * @locus Anywhere
28
- * @param {JSONCompatible} val A value to deserialize into EJSON.
29
- */
30
- export declare function fromJSONValue(item: any): any;
31
- /**
32
- * @summary Serialize a value to a string. For EJSON values, the serialization
33
- * fully represents the value. For non-EJSON values, serializes the
34
- * same way as `JSON.stringify`.
35
- * @locus Anywhere
36
- * @param {EJSON} val A value to stringify.
37
- * @param {Object} [options]
38
- * @param {Boolean | Integer | String} options.indent Indents objects and
39
- * arrays for easy readability. When `true`, indents by 2 spaces; when an
40
- * integer, indents by that number of spaces; and when a string, uses the
41
- * string as the indentation pattern.
42
- * @param {Boolean} options.canonical When `true`, stringifies keys in an
43
- * object in sorted order.
44
- */
45
- export declare function stringify(val: any, opts?: {
46
- canonical?: boolean;
47
- indent?: boolean | number | string;
48
- }): string;
49
- /**
50
- * @summary Parse a string into an EJSON value. Throws an error if the string
51
- * is not valid EJSON.
52
- * @locus Anywhere
53
- * @param {String} str A string to parse into an EJSON value.
54
- */
55
- export declare function parse(item: any): any;
56
- /**
57
- * @summary Returns true if `x` is a buffer of binary data, as returned from
58
- * [`EJSON.newBinary`](#ejson_new_binary).
59
- * @param {Object} x The variable to check.
60
- * @locus Anywhere
61
- */
62
- export declare function isBinary(obj: any): obj is Uint8Array;
63
- /**
64
- * @summary Return true if `a` and `b` are equal to each other. Return false
65
- * otherwise. Uses the `equals` method on `a` if present, otherwise
66
- * performs a deep comparison.
67
- * @locus Anywhere
68
- * @param {EJSON} a
69
- * @param {EJSON} b
70
- * @param {Object} [options]
71
- * @param {Boolean} options.keyOrderSensitive Compare in key sensitive order,
72
- * if supported by the JavaScript implementation. For example, `{a: 1, b: 2}`
73
- * is equal to `{b: 2, a: 1}` only when `keyOrderSensitive` is `false`. The
74
- * default is `false`.
75
- */
76
- export declare function equals(a: any, b: any, options?: any): any;
77
- /**
78
- * @summary Return a deep copy of `val`.
79
- * @locus Anywhere
80
- * @param {EJSON} val A value to copy.
81
- */
82
- export declare function clone<T>(v: T): T;
1
+ /**
2
+ * @summary Add a custom datatype to EJSON.
3
+ * @locus Anywhere
4
+ * @param {String} name A tag for your custom type; must be unique among
5
+ * custom data types defined in your project, and must
6
+ * match the result of your type's `typeName` method.
7
+ * @param {Function} factory A function that deserializes a JSON-compatible
8
+ * value into an instance of your type. This should
9
+ * match the serialization performed by your
10
+ * type's `toJSONValue` method.
11
+ */
12
+ export declare function addType(name: any, factory: any): void;
13
+ export declare function _isCustomType(obj: any): boolean;
14
+ export declare function _getTypes(isOriginal?: boolean): unknown;
15
+ export declare function _getConverters(): any;
16
+ export declare function _adjustTypesToJSONValue(obj: any): any;
17
+ /**
18
+ * @summary Serialize an EJSON-compatible value into its plain JSON
19
+ * representation.
20
+ * @locus Anywhere
21
+ * @param {EJSON} val A value to serialize to plain JSON.
22
+ */
23
+ export declare function toJSONValue(item: any): any;
24
+ export declare function _adjustTypesFromJSONValue(obj: any): any;
25
+ /**
26
+ * @summary Deserialize an EJSON value from its plain JSON representation.
27
+ * @locus Anywhere
28
+ * @param {JSONCompatible} val A value to deserialize into EJSON.
29
+ */
30
+ export declare function fromJSONValue(item: any): any;
31
+ /**
32
+ * @summary Serialize a value to a string. For EJSON values, the serialization
33
+ * fully represents the value. For non-EJSON values, serializes the
34
+ * same way as `JSON.stringify`.
35
+ * @locus Anywhere
36
+ * @param {EJSON} val A value to stringify.
37
+ * @param {Object} [options]
38
+ * @param {Boolean | Integer | String} options.indent Indents objects and
39
+ * arrays for easy readability. When `true`, indents by 2 spaces; when an
40
+ * integer, indents by that number of spaces; and when a string, uses the
41
+ * string as the indentation pattern.
42
+ * @param {Boolean} options.canonical When `true`, stringifies keys in an
43
+ * object in sorted order.
44
+ */
45
+ export declare function stringify(val: any, opts?: {
46
+ canonical?: boolean;
47
+ indent?: boolean | number | string;
48
+ }): string;
49
+ /**
50
+ * @summary Parse a string into an EJSON value. Throws an error if the string
51
+ * is not valid EJSON.
52
+ * @locus Anywhere
53
+ * @param {String} str A string to parse into an EJSON value.
54
+ */
55
+ export declare function parse(item: any): any;
56
+ /**
57
+ * @summary Returns true if `x` is a buffer of binary data, as returned from
58
+ * [`EJSON.newBinary`](#ejson_new_binary).
59
+ * @param {Object} x The variable to check.
60
+ * @locus Anywhere
61
+ */
62
+ export declare function isBinary(obj: any): obj is Uint8Array;
63
+ /**
64
+ * @summary Return true if `a` and `b` are equal to each other. Return false
65
+ * otherwise. Uses the `equals` method on `a` if present, otherwise
66
+ * performs a deep comparison.
67
+ * @locus Anywhere
68
+ * @param {EJSON} a
69
+ * @param {EJSON} b
70
+ * @param {Object} [options]
71
+ * @param {Boolean} options.keyOrderSensitive Compare in key sensitive order,
72
+ * if supported by the JavaScript implementation. For example, `{a: 1, b: 2}`
73
+ * is equal to `{b: 2, a: 1}` only when `keyOrderSensitive` is `false`. The
74
+ * default is `false`.
75
+ */
76
+ export declare function equals(a: any, b: any, options?: any): any;
77
+ /**
78
+ * @summary Return a deep copy of `val`.
79
+ * @locus Anywhere
80
+ * @param {EJSON} val A value to copy.
81
+ */
82
+ export declare function clone<T>(v: T): T;