bson 4.2.1 → 4.2.2

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.
@@ -11,456 +11,6 @@ var BSON = (function (exports) {
11
11
  return module = { exports: {} }, fn(module, module.exports), module.exports;
12
12
  }
13
13
 
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
-
29
- /* global Reflect, Promise */
30
- var _extendStatics = function extendStatics(d, b) {
31
- _extendStatics = Object.setPrototypeOf || {
32
- __proto__: []
33
- } instanceof Array && function (d, b) {
34
- d.__proto__ = b;
35
- } || function (d, b) {
36
- for (var p in b) {
37
- if (b.hasOwnProperty(p)) d[p] = b[p];
38
- }
39
- };
40
-
41
- return _extendStatics(d, b);
42
- };
43
-
44
- function __extends(d, b) {
45
- _extendStatics(d, b);
46
-
47
- function __() {
48
- this.constructor = d;
49
- }
50
-
51
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
52
- }
53
-
54
- var _assign = function __assign() {
55
- _assign = Object.assign || function __assign(t) {
56
- for (var s, i = 1, n = arguments.length; i < n; i++) {
57
- s = arguments[i];
58
-
59
- for (var p in s) {
60
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61
- }
62
- }
63
-
64
- return t;
65
- };
66
-
67
- return _assign.apply(this, arguments);
68
- };
69
- function __rest(s, e) {
70
- var t = {};
71
-
72
- for (var p in s) {
73
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
74
- }
75
-
76
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
77
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
78
- }
79
- return t;
80
- }
81
- function __decorate(decorators, target, key, desc) {
82
- var c = arguments.length,
83
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
84
- d;
85
- if ((typeof Reflect === "undefined" ? "undefined" : babelHelpers["typeof"](Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
86
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
87
- }
88
- return c > 3 && r && Object.defineProperty(target, key, r), r;
89
- }
90
- function __param(paramIndex, decorator) {
91
- return function (target, key) {
92
- decorator(target, key, paramIndex);
93
- };
94
- }
95
- function __metadata(metadataKey, metadataValue) {
96
- if ((typeof Reflect === "undefined" ? "undefined" : babelHelpers["typeof"](Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
97
- }
98
- function __awaiter(thisArg, _arguments, P, generator) {
99
- function adopt(value) {
100
- return value instanceof P ? value : new P(function (resolve) {
101
- resolve(value);
102
- });
103
- }
104
-
105
- return new (P || (P = Promise))(function (resolve, reject) {
106
- function fulfilled(value) {
107
- try {
108
- step(generator.next(value));
109
- } catch (e) {
110
- reject(e);
111
- }
112
- }
113
-
114
- function rejected(value) {
115
- try {
116
- step(generator["throw"](value));
117
- } catch (e) {
118
- reject(e);
119
- }
120
- }
121
-
122
- function step(result) {
123
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
124
- }
125
-
126
- step((generator = generator.apply(thisArg, _arguments || [])).next());
127
- });
128
- }
129
- function __generator(thisArg, body) {
130
- var _ = {
131
- label: 0,
132
- sent: function sent() {
133
- if (t[0] & 1) throw t[1];
134
- return t[1];
135
- },
136
- trys: [],
137
- ops: []
138
- },
139
- f,
140
- y,
141
- t,
142
- g;
143
- return g = {
144
- next: verb(0),
145
- "throw": verb(1),
146
- "return": verb(2)
147
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
148
- return this;
149
- }), g;
150
-
151
- function verb(n) {
152
- return function (v) {
153
- return step([n, v]);
154
- };
155
- }
156
-
157
- function step(op) {
158
- if (f) throw new TypeError("Generator is already executing.");
159
-
160
- while (_) {
161
- try {
162
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
163
- if (y = 0, t) op = [op[0] & 2, t.value];
164
-
165
- switch (op[0]) {
166
- case 0:
167
- case 1:
168
- t = op;
169
- break;
170
-
171
- case 4:
172
- _.label++;
173
- return {
174
- value: op[1],
175
- done: false
176
- };
177
-
178
- case 5:
179
- _.label++;
180
- y = op[1];
181
- op = [0];
182
- continue;
183
-
184
- case 7:
185
- op = _.ops.pop();
186
-
187
- _.trys.pop();
188
-
189
- continue;
190
-
191
- default:
192
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
193
- _ = 0;
194
- continue;
195
- }
196
-
197
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
198
- _.label = op[1];
199
- break;
200
- }
201
-
202
- if (op[0] === 6 && _.label < t[1]) {
203
- _.label = t[1];
204
- t = op;
205
- break;
206
- }
207
-
208
- if (t && _.label < t[2]) {
209
- _.label = t[2];
210
-
211
- _.ops.push(op);
212
-
213
- break;
214
- }
215
-
216
- if (t[2]) _.ops.pop();
217
-
218
- _.trys.pop();
219
-
220
- continue;
221
- }
222
-
223
- op = body.call(thisArg, _);
224
- } catch (e) {
225
- op = [6, e];
226
- y = 0;
227
- } finally {
228
- f = t = 0;
229
- }
230
- }
231
-
232
- if (op[0] & 5) throw op[1];
233
- return {
234
- value: op[0] ? op[1] : void 0,
235
- done: true
236
- };
237
- }
238
- }
239
- function __createBinding(o, m, k, k2) {
240
- if (k2 === undefined) k2 = k;
241
- o[k2] = m[k];
242
- }
243
- function __exportStar(m, exports) {
244
- for (var p in m) {
245
- if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
246
- }
247
- }
248
- function __values(o) {
249
- var s = typeof Symbol === "function" && Symbol.iterator,
250
- m = s && o[s],
251
- i = 0;
252
- if (m) return m.call(o);
253
- if (o && typeof o.length === "number") return {
254
- next: function next() {
255
- if (o && i >= o.length) o = void 0;
256
- return {
257
- value: o && o[i++],
258
- done: !o
259
- };
260
- }
261
- };
262
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
263
- }
264
- function __read(o, n) {
265
- var m = typeof Symbol === "function" && o[Symbol.iterator];
266
- if (!m) return o;
267
- var i = m.call(o),
268
- r,
269
- ar = [],
270
- e;
271
-
272
- try {
273
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
274
- ar.push(r.value);
275
- }
276
- } catch (error) {
277
- e = {
278
- error: error
279
- };
280
- } finally {
281
- try {
282
- if (r && !r.done && (m = i["return"])) m.call(i);
283
- } finally {
284
- if (e) throw e.error;
285
- }
286
- }
287
-
288
- return ar;
289
- }
290
- function __spread() {
291
- for (var ar = [], i = 0; i < arguments.length; i++) {
292
- ar = ar.concat(__read(arguments[i]));
293
- }
294
-
295
- return ar;
296
- }
297
- function __spreadArrays() {
298
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
299
- s += arguments[i].length;
300
- }
301
-
302
- for (var r = Array(s), k = 0, i = 0; i < il; i++) {
303
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
304
- r[k] = a[j];
305
- }
306
- }
307
-
308
- return r;
309
- }
310
- function __await(v) {
311
- return this instanceof __await ? (this.v = v, this) : new __await(v);
312
- }
313
- function __asyncGenerator(thisArg, _arguments, generator) {
314
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
315
- var g = generator.apply(thisArg, _arguments || []),
316
- i,
317
- q = [];
318
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
319
- return this;
320
- }, i;
321
-
322
- function verb(n) {
323
- if (g[n]) i[n] = function (v) {
324
- return new Promise(function (a, b) {
325
- q.push([n, v, a, b]) > 1 || resume(n, v);
326
- });
327
- };
328
- }
329
-
330
- function resume(n, v) {
331
- try {
332
- step(g[n](v));
333
- } catch (e) {
334
- settle(q[0][3], e);
335
- }
336
- }
337
-
338
- function step(r) {
339
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
340
- }
341
-
342
- function fulfill(value) {
343
- resume("next", value);
344
- }
345
-
346
- function reject(value) {
347
- resume("throw", value);
348
- }
349
-
350
- function settle(f, v) {
351
- if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
352
- }
353
- }
354
- function __asyncDelegator(o) {
355
- var i, p;
356
- return i = {}, verb("next"), verb("throw", function (e) {
357
- throw e;
358
- }), verb("return"), i[Symbol.iterator] = function () {
359
- return this;
360
- }, i;
361
-
362
- function verb(n, f) {
363
- i[n] = o[n] ? function (v) {
364
- return (p = !p) ? {
365
- value: __await(o[n](v)),
366
- done: n === "return"
367
- } : f ? f(v) : v;
368
- } : f;
369
- }
370
- }
371
- function __asyncValues(o) {
372
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
373
- var m = o[Symbol.asyncIterator],
374
- i;
375
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
376
- return this;
377
- }, i);
378
-
379
- function verb(n) {
380
- i[n] = o[n] && function (v) {
381
- return new Promise(function (resolve, reject) {
382
- v = o[n](v), settle(resolve, reject, v.done, v.value);
383
- });
384
- };
385
- }
386
-
387
- function settle(resolve, reject, d, v) {
388
- Promise.resolve(v).then(function (v) {
389
- resolve({
390
- value: v,
391
- done: d
392
- });
393
- }, reject);
394
- }
395
- }
396
- function __makeTemplateObject(cooked, raw) {
397
- if (Object.defineProperty) {
398
- Object.defineProperty(cooked, "raw", {
399
- value: raw
400
- });
401
- } else {
402
- cooked.raw = raw;
403
- }
404
-
405
- return cooked;
406
- }
407
- function __importStar(mod) {
408
- if (mod && mod.__esModule) return mod;
409
- var result = {};
410
- if (mod != null) for (var k in mod) {
411
- if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
412
- }
413
- result["default"] = mod;
414
- return result;
415
- }
416
- function __importDefault(mod) {
417
- return mod && mod.__esModule ? mod : {
418
- "default": mod
419
- };
420
- }
421
- function __classPrivateFieldGet(receiver, privateMap) {
422
- if (!privateMap.has(receiver)) {
423
- throw new TypeError("attempted to get private field on non-instance");
424
- }
425
-
426
- return privateMap.get(receiver);
427
- }
428
- function __classPrivateFieldSet(receiver, privateMap, value) {
429
- if (!privateMap.has(receiver)) {
430
- throw new TypeError("attempted to set private field on non-instance");
431
- }
432
-
433
- privateMap.set(receiver, value);
434
- return value;
435
- }
436
-
437
- var tslib_es6 = /*#__PURE__*/Object.freeze({
438
- __proto__: null,
439
- __extends: __extends,
440
- get __assign () { return _assign; },
441
- __rest: __rest,
442
- __decorate: __decorate,
443
- __param: __param,
444
- __metadata: __metadata,
445
- __awaiter: __awaiter,
446
- __generator: __generator,
447
- __createBinding: __createBinding,
448
- __exportStar: __exportStar,
449
- __values: __values,
450
- __read: __read,
451
- __spread: __spread,
452
- __spreadArrays: __spreadArrays,
453
- __await: __await,
454
- __asyncGenerator: __asyncGenerator,
455
- __asyncDelegator: __asyncDelegator,
456
- __asyncValues: __asyncValues,
457
- __makeTemplateObject: __makeTemplateObject,
458
- __importStar: __importStar,
459
- __importDefault: __importDefault,
460
- __classPrivateFieldGet: __classPrivateFieldGet,
461
- __classPrivateFieldSet: __classPrivateFieldSet
462
- });
463
-
464
14
  var byteLength_1 = byteLength;
465
15
  var toByteArray_1 = toByteArray;
466
16
  var fromByteArray_1 = fromByteArray;
@@ -4067,7 +3617,7 @@ var BSON = (function (exports) {
4067
3617
  }
4068
3618
  /** This is an alias of {@link Long.greaterThanOrEqual} */
4069
3619
  ge(other) {
4070
- return this.greaterThan(other);
3620
+ return this.greaterThanOrEqual(other);
4071
3621
  }
4072
3622
  /** Tests if this Long's value is even. */
4073
3623
  isEven() {
@@ -8283,8 +7833,7 @@ var BSON = (function (exports) {
8283
7833
 
8284
7834
  var bson = createCommonjsModule(function (module, exports) {
8285
7835
  Object.defineProperty(exports, "__esModule", { value: true });
8286
- exports.deserializeStream = exports.calculateObjectSize = exports.deserialize = exports.serializeWithBufferAndIndex = exports.serialize = exports.setInternalBufferSize = exports.ObjectID = exports.Decimal128 = exports.BSONRegExp = exports.MaxKey = exports.MinKey = exports.Int32 = exports.Double = exports.Timestamp = exports.Long = exports.ObjectId = exports.Binary = exports.DBRef = exports.BSONSymbol = exports.Map = exports.Code = exports.LongWithoutOverridesClass = exports.EJSON = void 0;
8287
-
7836
+ exports.deserializeStream = exports.calculateObjectSize = exports.deserialize = exports.serializeWithBufferAndIndex = exports.serialize = exports.setInternalBufferSize = exports.ObjectID = exports.Decimal128 = exports.BSONRegExp = exports.MaxKey = exports.MinKey = exports.Int32 = exports.Double = exports.Timestamp = exports.Long = exports.ObjectId = exports.Binary = exports.DBRef = exports.BSONSymbol = exports.Map = exports.Code = exports.LongWithoutOverridesClass = exports.EJSON = exports.BSON_INT64_MIN = exports.BSON_INT64_MAX = exports.BSON_INT32_MIN = exports.BSON_INT32_MAX = exports.BSON_DATA_UNDEFINED = exports.BSON_DATA_TIMESTAMP = exports.BSON_DATA_SYMBOL = exports.BSON_DATA_STRING = exports.BSON_DATA_REGEXP = exports.BSON_DATA_OID = exports.BSON_DATA_OBJECT = exports.BSON_DATA_NUMBER = exports.BSON_DATA_NULL = exports.BSON_DATA_MIN_KEY = exports.BSON_DATA_MAX_KEY = exports.BSON_DATA_LONG = exports.BSON_DATA_INT = exports.BSON_DATA_DECIMAL128 = exports.BSON_DATA_DBPOINTER = exports.BSON_DATA_DATE = exports.BSON_DATA_CODE_W_SCOPE = exports.BSON_DATA_CODE = exports.BSON_DATA_BOOLEAN = exports.BSON_DATA_BINARY = exports.BSON_DATA_ARRAY = exports.BSON_BINARY_SUBTYPE_UUID_NEW = exports.BSON_BINARY_SUBTYPE_UUID = exports.BSON_BINARY_SUBTYPE_USER_DEFINED = exports.BSON_BINARY_SUBTYPE_MD5 = exports.BSON_BINARY_SUBTYPE_FUNCTION = exports.BSON_BINARY_SUBTYPE_DEFAULT = exports.BSON_BINARY_SUBTYPE_BYTE_ARRAY = void 0;
8288
7837
 
8289
7838
 
8290
7839
  Object.defineProperty(exports, "Binary", { enumerable: true, get: function () { return binary.Binary; } });
@@ -8321,7 +7870,39 @@ var BSON = (function (exports) {
8321
7870
  Object.defineProperty(exports, "BSONSymbol", { enumerable: true, get: function () { return symbol.BSONSymbol; } });
8322
7871
 
8323
7872
  Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp$1.Timestamp; } });
8324
- tslib_es6.__exportStar(constants, exports);
7873
+
7874
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_BYTE_ARRAY", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_BYTE_ARRAY; } });
7875
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_DEFAULT", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_DEFAULT; } });
7876
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_FUNCTION", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_FUNCTION; } });
7877
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_MD5", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_MD5; } });
7878
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_USER_DEFINED", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_USER_DEFINED; } });
7879
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_UUID", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_UUID; } });
7880
+ Object.defineProperty(exports, "BSON_BINARY_SUBTYPE_UUID_NEW", { enumerable: true, get: function () { return constants.BSON_BINARY_SUBTYPE_UUID_NEW; } });
7881
+ Object.defineProperty(exports, "BSON_DATA_ARRAY", { enumerable: true, get: function () { return constants.BSON_DATA_ARRAY; } });
7882
+ Object.defineProperty(exports, "BSON_DATA_BINARY", { enumerable: true, get: function () { return constants.BSON_DATA_BINARY; } });
7883
+ Object.defineProperty(exports, "BSON_DATA_BOOLEAN", { enumerable: true, get: function () { return constants.BSON_DATA_BOOLEAN; } });
7884
+ Object.defineProperty(exports, "BSON_DATA_CODE", { enumerable: true, get: function () { return constants.BSON_DATA_CODE; } });
7885
+ Object.defineProperty(exports, "BSON_DATA_CODE_W_SCOPE", { enumerable: true, get: function () { return constants.BSON_DATA_CODE_W_SCOPE; } });
7886
+ Object.defineProperty(exports, "BSON_DATA_DATE", { enumerable: true, get: function () { return constants.BSON_DATA_DATE; } });
7887
+ Object.defineProperty(exports, "BSON_DATA_DBPOINTER", { enumerable: true, get: function () { return constants.BSON_DATA_DBPOINTER; } });
7888
+ Object.defineProperty(exports, "BSON_DATA_DECIMAL128", { enumerable: true, get: function () { return constants.BSON_DATA_DECIMAL128; } });
7889
+ Object.defineProperty(exports, "BSON_DATA_INT", { enumerable: true, get: function () { return constants.BSON_DATA_INT; } });
7890
+ Object.defineProperty(exports, "BSON_DATA_LONG", { enumerable: true, get: function () { return constants.BSON_DATA_LONG; } });
7891
+ Object.defineProperty(exports, "BSON_DATA_MAX_KEY", { enumerable: true, get: function () { return constants.BSON_DATA_MAX_KEY; } });
7892
+ Object.defineProperty(exports, "BSON_DATA_MIN_KEY", { enumerable: true, get: function () { return constants.BSON_DATA_MIN_KEY; } });
7893
+ Object.defineProperty(exports, "BSON_DATA_NULL", { enumerable: true, get: function () { return constants.BSON_DATA_NULL; } });
7894
+ Object.defineProperty(exports, "BSON_DATA_NUMBER", { enumerable: true, get: function () { return constants.BSON_DATA_NUMBER; } });
7895
+ Object.defineProperty(exports, "BSON_DATA_OBJECT", { enumerable: true, get: function () { return constants.BSON_DATA_OBJECT; } });
7896
+ Object.defineProperty(exports, "BSON_DATA_OID", { enumerable: true, get: function () { return constants.BSON_DATA_OID; } });
7897
+ Object.defineProperty(exports, "BSON_DATA_REGEXP", { enumerable: true, get: function () { return constants.BSON_DATA_REGEXP; } });
7898
+ Object.defineProperty(exports, "BSON_DATA_STRING", { enumerable: true, get: function () { return constants.BSON_DATA_STRING; } });
7899
+ Object.defineProperty(exports, "BSON_DATA_SYMBOL", { enumerable: true, get: function () { return constants.BSON_DATA_SYMBOL; } });
7900
+ Object.defineProperty(exports, "BSON_DATA_TIMESTAMP", { enumerable: true, get: function () { return constants.BSON_DATA_TIMESTAMP; } });
7901
+ Object.defineProperty(exports, "BSON_DATA_UNDEFINED", { enumerable: true, get: function () { return constants.BSON_DATA_UNDEFINED; } });
7902
+ Object.defineProperty(exports, "BSON_INT32_MAX", { enumerable: true, get: function () { return constants.BSON_INT32_MAX; } });
7903
+ Object.defineProperty(exports, "BSON_INT32_MIN", { enumerable: true, get: function () { return constants.BSON_INT32_MIN; } });
7904
+ Object.defineProperty(exports, "BSON_INT64_MAX", { enumerable: true, get: function () { return constants.BSON_INT64_MAX; } });
7905
+ Object.defineProperty(exports, "BSON_INT64_MIN", { enumerable: true, get: function () { return constants.BSON_INT64_MIN; } });
8325
7906
  var extended_json_2 = extended_json;
8326
7907
  Object.defineProperty(exports, "EJSON", { enumerable: true, get: function () { return extended_json_2.EJSON; } });
8327
7908
  var timestamp_2 = timestamp$1;
@@ -8512,9 +8093,73 @@ var BSON = (function (exports) {
8512
8093
  var bson_21 = bson.Code;
8513
8094
  var bson_22 = bson.LongWithoutOverridesClass;
8514
8095
  var bson_23 = bson.EJSON;
8096
+ var bson_24 = bson.BSON_INT64_MIN;
8097
+ var bson_25 = bson.BSON_INT64_MAX;
8098
+ var bson_26 = bson.BSON_INT32_MIN;
8099
+ var bson_27 = bson.BSON_INT32_MAX;
8100
+ var bson_28 = bson.BSON_DATA_UNDEFINED;
8101
+ var bson_29 = bson.BSON_DATA_TIMESTAMP;
8102
+ var bson_30 = bson.BSON_DATA_SYMBOL;
8103
+ var bson_31 = bson.BSON_DATA_STRING;
8104
+ var bson_32 = bson.BSON_DATA_REGEXP;
8105
+ var bson_33 = bson.BSON_DATA_OID;
8106
+ var bson_34 = bson.BSON_DATA_OBJECT;
8107
+ var bson_35 = bson.BSON_DATA_NUMBER;
8108
+ var bson_36 = bson.BSON_DATA_NULL;
8109
+ var bson_37 = bson.BSON_DATA_MIN_KEY;
8110
+ var bson_38 = bson.BSON_DATA_MAX_KEY;
8111
+ var bson_39 = bson.BSON_DATA_LONG;
8112
+ var bson_40 = bson.BSON_DATA_INT;
8113
+ var bson_41 = bson.BSON_DATA_DECIMAL128;
8114
+ var bson_42 = bson.BSON_DATA_DBPOINTER;
8115
+ var bson_43 = bson.BSON_DATA_DATE;
8116
+ var bson_44 = bson.BSON_DATA_CODE_W_SCOPE;
8117
+ var bson_45 = bson.BSON_DATA_CODE;
8118
+ var bson_46 = bson.BSON_DATA_BOOLEAN;
8119
+ var bson_47 = bson.BSON_DATA_BINARY;
8120
+ var bson_48 = bson.BSON_DATA_ARRAY;
8121
+ var bson_49 = bson.BSON_BINARY_SUBTYPE_UUID_NEW;
8122
+ var bson_50 = bson.BSON_BINARY_SUBTYPE_UUID;
8123
+ var bson_51 = bson.BSON_BINARY_SUBTYPE_USER_DEFINED;
8124
+ var bson_52 = bson.BSON_BINARY_SUBTYPE_MD5;
8125
+ var bson_53 = bson.BSON_BINARY_SUBTYPE_FUNCTION;
8126
+ var bson_54 = bson.BSON_BINARY_SUBTYPE_DEFAULT;
8127
+ var bson_55 = bson.BSON_BINARY_SUBTYPE_BYTE_ARRAY;
8515
8128
 
8516
8129
  exports.BSONRegExp = bson_9;
8517
8130
  exports.BSONSymbol = bson_19;
8131
+ exports.BSON_BINARY_SUBTYPE_BYTE_ARRAY = bson_55;
8132
+ exports.BSON_BINARY_SUBTYPE_DEFAULT = bson_54;
8133
+ exports.BSON_BINARY_SUBTYPE_FUNCTION = bson_53;
8134
+ exports.BSON_BINARY_SUBTYPE_MD5 = bson_52;
8135
+ exports.BSON_BINARY_SUBTYPE_USER_DEFINED = bson_51;
8136
+ exports.BSON_BINARY_SUBTYPE_UUID = bson_50;
8137
+ exports.BSON_BINARY_SUBTYPE_UUID_NEW = bson_49;
8138
+ exports.BSON_DATA_ARRAY = bson_48;
8139
+ exports.BSON_DATA_BINARY = bson_47;
8140
+ exports.BSON_DATA_BOOLEAN = bson_46;
8141
+ exports.BSON_DATA_CODE = bson_45;
8142
+ exports.BSON_DATA_CODE_W_SCOPE = bson_44;
8143
+ exports.BSON_DATA_DATE = bson_43;
8144
+ exports.BSON_DATA_DBPOINTER = bson_42;
8145
+ exports.BSON_DATA_DECIMAL128 = bson_41;
8146
+ exports.BSON_DATA_INT = bson_40;
8147
+ exports.BSON_DATA_LONG = bson_39;
8148
+ exports.BSON_DATA_MAX_KEY = bson_38;
8149
+ exports.BSON_DATA_MIN_KEY = bson_37;
8150
+ exports.BSON_DATA_NULL = bson_36;
8151
+ exports.BSON_DATA_NUMBER = bson_35;
8152
+ exports.BSON_DATA_OBJECT = bson_34;
8153
+ exports.BSON_DATA_OID = bson_33;
8154
+ exports.BSON_DATA_REGEXP = bson_32;
8155
+ exports.BSON_DATA_STRING = bson_31;
8156
+ exports.BSON_DATA_SYMBOL = bson_30;
8157
+ exports.BSON_DATA_TIMESTAMP = bson_29;
8158
+ exports.BSON_DATA_UNDEFINED = bson_28;
8159
+ exports.BSON_INT32_MAX = bson_27;
8160
+ exports.BSON_INT32_MIN = bson_26;
8161
+ exports.BSON_INT64_MAX = bson_25;
8162
+ exports.BSON_INT64_MIN = bson_24;
8518
8163
  exports.Binary = bson_17;
8519
8164
  exports.Code = bson_21;
8520
8165
  exports.DBRef = bson_18;