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.
- package/dist/livedata_server.d.ts +4 -4
- package/dist/livedata_server.js +11 -11
- package/dist/meteor/binary-heap/max_heap.d.ts +31 -31
- package/dist/meteor/binary-heap/max_heap.js +186 -186
- package/dist/meteor/binary-heap/min_heap.d.ts +6 -6
- package/dist/meteor/binary-heap/min_heap.js +17 -17
- package/dist/meteor/binary-heap/min_max_heap.d.ts +11 -11
- package/dist/meteor/binary-heap/min_max_heap.js +48 -48
- package/dist/meteor/callback-hook/hook.d.ts +11 -11
- package/dist/meteor/callback-hook/hook.js +78 -78
- package/dist/meteor/ddp/crossbar.d.ts +15 -15
- package/dist/meteor/ddp/crossbar.js +136 -136
- package/dist/meteor/ddp/heartbeat.d.ts +19 -19
- package/dist/meteor/ddp/heartbeat.js +77 -77
- package/dist/meteor/ddp/livedata_server.d.ts +141 -142
- package/dist/meteor/ddp/livedata_server.js +403 -403
- package/dist/meteor/ddp/method-invocation.d.ts +35 -35
- package/dist/meteor/ddp/method-invocation.js +72 -72
- package/dist/meteor/ddp/random-stream.d.ts +8 -8
- package/dist/meteor/ddp/random-stream.js +100 -100
- package/dist/meteor/ddp/session-collection-view.d.ts +20 -20
- package/dist/meteor/ddp/session-collection-view.js +106 -106
- package/dist/meteor/ddp/session-document-view.d.ts +8 -8
- package/dist/meteor/ddp/session-document-view.js +82 -82
- package/dist/meteor/ddp/session.d.ts +75 -74
- package/dist/meteor/ddp/session.js +590 -589
- package/dist/meteor/ddp/stream_server.d.ts +20 -21
- package/dist/meteor/ddp/stream_server.js +181 -181
- package/dist/meteor/ddp/subscription.d.ts +94 -94
- package/dist/meteor/ddp/subscription.js +370 -370
- package/dist/meteor/ddp/utils.d.ts +8 -8
- package/dist/meteor/ddp/utils.js +104 -104
- package/dist/meteor/ddp/writefence.d.ts +20 -20
- package/dist/meteor/ddp/writefence.js +111 -111
- package/dist/meteor/diff-sequence/diff.d.ts +17 -17
- package/dist/meteor/diff-sequence/diff.js +257 -257
- package/dist/meteor/ejson/ejson.d.ts +82 -82
- package/dist/meteor/ejson/ejson.js +568 -569
- package/dist/meteor/ejson/stringify.d.ts +2 -2
- package/dist/meteor/ejson/stringify.js +119 -119
- package/dist/meteor/ejson/utils.d.ts +12 -12
- package/dist/meteor/ejson/utils.js +42 -42
- package/dist/meteor/mongo/caching_change_observer.d.ts +16 -16
- package/dist/meteor/mongo/caching_change_observer.js +63 -63
- package/dist/meteor/mongo/doc_fetcher.d.ts +7 -7
- package/dist/meteor/mongo/doc_fetcher.js +53 -53
- package/dist/meteor/mongo/geojson_utils.d.ts +3 -3
- package/dist/meteor/mongo/geojson_utils.js +40 -41
- package/dist/meteor/mongo/live_connection.d.ts +28 -28
- package/dist/meteor/mongo/live_connection.js +264 -264
- package/dist/meteor/mongo/live_cursor.d.ts +25 -25
- package/dist/meteor/mongo/live_cursor.js +60 -60
- package/dist/meteor/mongo/minimongo_common.d.ts +84 -84
- package/dist/meteor/mongo/minimongo_common.js +1998 -2002
- package/dist/meteor/mongo/minimongo_matcher.d.ts +23 -23
- package/dist/meteor/mongo/minimongo_matcher.js +283 -283
- package/dist/meteor/mongo/minimongo_sorter.d.ts +16 -16
- package/dist/meteor/mongo/minimongo_sorter.js +268 -268
- package/dist/meteor/mongo/observe_driver_utils.d.ts +9 -9
- package/dist/meteor/mongo/observe_driver_utils.js +72 -73
- package/dist/meteor/mongo/observe_multiplexer.d.ts +46 -46
- package/dist/meteor/mongo/observe_multiplexer.js +203 -203
- package/dist/meteor/mongo/oplog-observe-driver.d.ts +68 -68
- package/dist/meteor/mongo/oplog-observe-driver.js +918 -918
- package/dist/meteor/mongo/oplog_tailing.d.ts +35 -35
- package/dist/meteor/mongo/oplog_tailing.js +352 -352
- package/dist/meteor/mongo/oplog_v2_converter.d.ts +1 -1
- package/dist/meteor/mongo/oplog_v2_converter.js +125 -126
- package/dist/meteor/mongo/polling_observe_driver.d.ts +30 -30
- package/dist/meteor/mongo/polling_observe_driver.js +216 -221
- package/dist/meteor/mongo/synchronous-cursor.d.ts +17 -17
- package/dist/meteor/mongo/synchronous-cursor.js +261 -261
- package/dist/meteor/mongo/synchronous-queue.d.ts +13 -13
- package/dist/meteor/mongo/synchronous-queue.js +110 -110
- package/dist/meteor/ordered-dict/ordered_dict.d.ts +31 -31
- package/dist/meteor/ordered-dict/ordered_dict.js +198 -198
- package/dist/meteor/random/AbstractRandomGenerator.d.ts +42 -42
- package/dist/meteor/random/AbstractRandomGenerator.js +92 -92
- package/dist/meteor/random/AleaRandomGenerator.d.ts +13 -13
- package/dist/meteor/random/AleaRandomGenerator.js +90 -90
- package/dist/meteor/random/NodeRandomGenerator.d.ts +16 -16
- package/dist/meteor/random/NodeRandomGenerator.js +42 -42
- package/dist/meteor/random/createAleaGenerator.d.ts +2 -2
- package/dist/meteor/random/createAleaGenerator.js +32 -32
- package/dist/meteor/random/createRandom.d.ts +1 -1
- package/dist/meteor/random/createRandom.js +22 -22
- package/dist/meteor/random/main.d.ts +1 -1
- package/dist/meteor/random/main.js +12 -12
- package/dist/meteor/types.d.ts +1 -1
- package/dist/meteor/types.js +2 -2
- 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;
|