bson 5.3.0 → 5.4.0

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 (67) hide show
  1. package/README.md +4 -11
  2. package/lib/bson.bundle.js +20 -18
  3. package/lib/bson.bundle.js.map +1 -1
  4. package/lib/bson.cjs +20 -18
  5. package/lib/bson.cjs.map +1 -1
  6. package/lib/bson.mjs +20 -18
  7. package/lib/bson.mjs.map +1 -1
  8. package/lib/bson.rn.cjs +4110 -0
  9. package/lib/bson.rn.cjs.map +1 -0
  10. package/package.json +8 -7
  11. package/src/binary.ts +3 -2
  12. package/src/bson.ts +2 -2
  13. package/src/parser/deserializer.ts +8 -8
  14. package/src/timestamp.ts +7 -5
  15. package/src/utils/byte_utils.ts +1 -1
  16. package/src/utils/node_byte_utils.ts +3 -3
  17. package/src/utils/web_byte_utils.ts +2 -2
  18. package/vendor/base64/LICENSE-MIT.txt +20 -0
  19. package/vendor/base64/README.md +112 -0
  20. package/vendor/base64/base64.js +157 -0
  21. package/vendor/base64/package.json +43 -0
  22. package/vendor/text-encoding/LICENSE.md +237 -0
  23. package/vendor/text-encoding/README.md +111 -0
  24. package/vendor/text-encoding/index.js +9 -0
  25. package/vendor/text-encoding/lib/encoding-indexes.js +47 -0
  26. package/vendor/text-encoding/lib/encoding.js +3301 -0
  27. package/vendor/text-encoding/package.json +37 -0
  28. package/lib/binary.d.ts +0 -182
  29. package/lib/binary.d.ts.map +0 -1
  30. package/lib/bson.d.ts +0 -97
  31. package/lib/bson.d.ts.map +0 -1
  32. package/lib/bson_value.d.ts +0 -10
  33. package/lib/bson_value.d.ts.map +0 -1
  34. package/lib/code.d.ts +0 -32
  35. package/lib/code.d.ts.map +0 -1
  36. package/lib/constants.d.ts +0 -107
  37. package/lib/constants.d.ts.map +0 -1
  38. package/lib/db_ref.d.ts +0 -40
  39. package/lib/db_ref.d.ts.map +0 -1
  40. package/lib/decimal128.d.ts +0 -34
  41. package/lib/decimal128.d.ts.map +0 -1
  42. package/lib/double.d.ts +0 -35
  43. package/lib/double.d.ts.map +0 -1
  44. package/lib/error.d.ts +0 -50
  45. package/lib/error.d.ts.map +0 -1
  46. package/lib/extended_json.d.ts +0 -82
  47. package/lib/extended_json.d.ts.map +0 -1
  48. package/lib/index.d.ts +0 -4
  49. package/lib/index.d.ts.map +0 -1
  50. package/lib/int_32.d.ts +0 -35
  51. package/lib/int_32.d.ts.map +0 -1
  52. package/lib/long.d.ts +0 -323
  53. package/lib/long.d.ts.map +0 -1
  54. package/lib/max_key.d.ts +0 -19
  55. package/lib/max_key.d.ts.map +0 -1
  56. package/lib/min_key.d.ts +0 -19
  57. package/lib/min_key.d.ts.map +0 -1
  58. package/lib/objectid.d.ts +0 -96
  59. package/lib/objectid.d.ts.map +0 -1
  60. package/lib/regexp.d.ts +0 -36
  61. package/lib/regexp.d.ts.map +0 -1
  62. package/lib/symbol.d.ts +0 -28
  63. package/lib/symbol.d.ts.map +0 -1
  64. package/lib/timestamp.d.ts +0 -66
  65. package/lib/timestamp.d.ts.map +0 -1
  66. package/lib/validate_utf8.d.ts +0 -10
  67. package/lib/validate_utf8.d.ts.map +0 -1
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "text-encoding",
3
+ "author": "Joshua Bell <inexorabletash@gmail.com>",
4
+ "contributors": [
5
+ "Joshua Bell <inexorabletash@gmail.com>",
6
+ "Rick Eyre <rick.eyre@outlook.com>",
7
+ "Eugen Podaru <eugen.podaru@live.com>",
8
+ "Filip Dupanović <filip.dupanovic@gmail.com>",
9
+ "Anne van Kesteren <annevk@annevk.nl>",
10
+ "Author: Francis Avila <francisga@gmail.com>",
11
+ "Michael J. Ryan <tracker1@gmail.com>",
12
+ "Pierre Queinnec <pierre@queinnec.org>",
13
+ "Zack Weinberg <zackw@panix.com>"
14
+ ],
15
+ "version": "0.7.0",
16
+ "description": "Polyfill for the Encoding Living Standard's API.",
17
+ "main": "index.js",
18
+ "files": [
19
+ "index.js",
20
+ "lib/encoding.js",
21
+ "lib/encoding-indexes.js"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/inexorabletash/text-encoding.git"
26
+ },
27
+ "keywords": [
28
+ "encoding",
29
+ "decoding",
30
+ "living standard"
31
+ ],
32
+ "bugs": {
33
+ "url": "https://github.com/inexorabletash/text-encoding/issues"
34
+ },
35
+ "homepage": "https://github.com/inexorabletash/text-encoding",
36
+ "license": "(Unlicense OR Apache-2.0)"
37
+ }
package/lib/binary.d.ts DELETED
@@ -1,182 +0,0 @@
1
- import type { EJSONOptions } from './extended_json';
2
- import { BSONValue } from './bson_value';
3
- /** @public */
4
- export type BinarySequence = Uint8Array | number[];
5
- /** @public */
6
- export interface BinaryExtendedLegacy {
7
- $type: string;
8
- $binary: string;
9
- }
10
- /** @public */
11
- export interface BinaryExtended {
12
- $binary: {
13
- subType: string;
14
- base64: string;
15
- };
16
- }
17
- /**
18
- * A class representation of the BSON Binary type.
19
- * @public
20
- * @category BSONType
21
- */
22
- export declare class Binary extends BSONValue {
23
- get _bsontype(): 'Binary';
24
- /**
25
- * Binary default subtype
26
- * @internal
27
- */
28
- private static readonly BSON_BINARY_SUBTYPE_DEFAULT;
29
- /** Initial buffer default size */
30
- static readonly BUFFER_SIZE = 256;
31
- /** Default BSON type */
32
- static readonly SUBTYPE_DEFAULT = 0;
33
- /** Function BSON type */
34
- static readonly SUBTYPE_FUNCTION = 1;
35
- /** Byte Array BSON type */
36
- static readonly SUBTYPE_BYTE_ARRAY = 2;
37
- /** Deprecated UUID BSON type @deprecated Please use SUBTYPE_UUID */
38
- static readonly SUBTYPE_UUID_OLD = 3;
39
- /** UUID BSON type */
40
- static readonly SUBTYPE_UUID = 4;
41
- /** MD5 BSON type */
42
- static readonly SUBTYPE_MD5 = 5;
43
- /** Encrypted BSON type */
44
- static readonly SUBTYPE_ENCRYPTED = 6;
45
- /** Column BSON type */
46
- static readonly SUBTYPE_COLUMN = 7;
47
- /** User BSON type */
48
- static readonly SUBTYPE_USER_DEFINED = 128;
49
- buffer: Uint8Array;
50
- sub_type: number;
51
- position: number;
52
- /**
53
- * Create a new Binary instance.
54
- *
55
- * This constructor can accept a string as its first argument. In this case,
56
- * this string will be encoded using ISO-8859-1, **not** using UTF-8.
57
- * This is almost certainly not what you want. Use `new Binary(Buffer.from(string))`
58
- * instead to convert the string to a Buffer using UTF-8 first.
59
- *
60
- * @param buffer - a buffer object containing the binary data.
61
- * @param subType - the option binary type.
62
- */
63
- constructor(buffer?: string | BinarySequence, subType?: number);
64
- /**
65
- * Updates this binary with byte_value.
66
- *
67
- * @param byteValue - a single byte we wish to write.
68
- */
69
- put(byteValue: string | number | Uint8Array | number[]): void;
70
- /**
71
- * Writes a buffer or string to the binary.
72
- *
73
- * @param sequence - a string or buffer to be written to the Binary BSON object.
74
- * @param offset - specify the binary of where to write the content.
75
- */
76
- write(sequence: string | BinarySequence, offset: number): void;
77
- /**
78
- * Reads **length** bytes starting at **position**.
79
- *
80
- * @param position - read from the given position in the Binary.
81
- * @param length - the number of bytes to read.
82
- */
83
- read(position: number, length: number): BinarySequence;
84
- /**
85
- * Returns the value of this binary as a string.
86
- * @param asRaw - Will skip converting to a string
87
- * @remarks
88
- * This is handy when calling this function conditionally for some key value pairs and not others
89
- */
90
- value(asRaw?: boolean): string | BinarySequence;
91
- /** the length of the binary sequence */
92
- length(): number;
93
- toJSON(): string;
94
- toString(encoding?: 'hex' | 'base64' | 'utf8' | 'utf-8'): string;
95
- /** @internal */
96
- toExtendedJSON(options?: EJSONOptions): BinaryExtendedLegacy | BinaryExtended;
97
- toUUID(): UUID;
98
- /** Creates an Binary instance from a hex digit string */
99
- static createFromHexString(hex: string, subType?: number): Binary;
100
- /** Creates an Binary instance from a base64 string */
101
- static createFromBase64(base64: string, subType?: number): Binary;
102
- /** @internal */
103
- static fromExtendedJSON(doc: BinaryExtendedLegacy | BinaryExtended | UUIDExtended, options?: EJSONOptions): Binary;
104
- inspect(): string;
105
- }
106
- /** @public */
107
- export type UUIDExtended = {
108
- $uuid: string;
109
- };
110
- /**
111
- * A class representation of the BSON UUID type.
112
- * @public
113
- */
114
- export declare class UUID extends Binary {
115
- /** @deprecated Hex string is no longer cached, this control will be removed in a future major release */
116
- static cacheHexString: boolean;
117
- /**
118
- * Create a UUID type
119
- *
120
- * When the argument to the constructor is omitted a random v4 UUID will be generated.
121
- *
122
- * @param input - Can be a 32 or 36 character hex string (dashes excluded/included) or a 16 byte binary Buffer.
123
- */
124
- constructor(input?: string | Uint8Array | UUID);
125
- /**
126
- * The UUID bytes
127
- * @readonly
128
- */
129
- get id(): Uint8Array;
130
- set id(value: Uint8Array);
131
- /**
132
- * Returns the UUID id as a 32 or 36 character hex string representation, excluding/including dashes (defaults to 36 character dash separated)
133
- * @param includeDashes - should the string exclude dash-separators.
134
- */
135
- toHexString(includeDashes?: boolean): string;
136
- /**
137
- * Converts the id into a 36 character (dashes included) hex string, unless a encoding is specified.
138
- */
139
- toString(encoding?: 'hex' | 'base64'): string;
140
- /**
141
- * Converts the id into its JSON string representation.
142
- * A 36 character (dashes included) hex string in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
143
- */
144
- toJSON(): string;
145
- /**
146
- * Compares the equality of this UUID with `otherID`.
147
- *
148
- * @param otherId - UUID instance to compare against.
149
- */
150
- equals(otherId: string | Uint8Array | UUID): boolean;
151
- /**
152
- * Creates a Binary instance from the current UUID.
153
- */
154
- toBinary(): Binary;
155
- /**
156
- * Generates a populated buffer containing a v4 uuid
157
- */
158
- static generate(): Uint8Array;
159
- /**
160
- * Checks if a value is a valid bson UUID
161
- * @param input - UUID, string or Buffer to validate.
162
- */
163
- static isValid(input: string | Uint8Array | UUID | Binary): boolean;
164
- /**
165
- * Creates an UUID from a hex string representation of an UUID.
166
- * @param hexString - 32 or 36 character hex string (dashes excluded/included).
167
- */
168
- static createFromHexString(hexString: string): UUID;
169
- /** Creates an UUID from a base64 string representation of an UUID. */
170
- static createFromBase64(base64: string): UUID;
171
- /** @internal */
172
- static bytesFromString(representation: string): Uint8Array;
173
- /**
174
- * @internal
175
- *
176
- * Validates a string to be a hex digit sequence with or without dashes.
177
- * The canonical hyphenated representation of a uuid is hex in 8-4-4-4-12 groups.
178
- */
179
- static isValidUUIDString(representation: string): boolean;
180
- inspect(): string;
181
- }
182
- //# sourceMappingURL=binary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../src/binary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,cAAc;AACd,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,EAAE,CAAC;AAEnD,cAAc;AACd,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,cAAc;AACd,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,IAAI,SAAS,IAAI,QAAQ,CAExB;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,CAAK;IAExD,kCAAkC;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,OAAO;IAClC,wBAAwB;IACxB,MAAM,CAAC,QAAQ,CAAC,eAAe,KAAK;IACpC,yBAAyB;IACzB,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAK;IACrC,2BAA2B;IAC3B,MAAM,CAAC,QAAQ,CAAC,kBAAkB,KAAK;IACvC,oEAAoE;IACpE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAK;IACrC,qBAAqB;IACrB,MAAM,CAAC,QAAQ,CAAC,YAAY,KAAK;IACjC,oBAAo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;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE,MAAM;IAc/C,OAAO,IAAI,MAAM;CAGlB"}
package/lib/bson.d.ts DELETED
@@ -1,97 +0,0 @@
1
- import { Binary, UUID } from './binary';
2
- import { Code } from './code';
3
- import { DBRef } from './db_ref';
4
- import { Decimal128 } from './decimal128';
5
- import { Double } from './double';
6
- import { Int32 } from './int_32';
7
- import { Long } from './long';
8
- import { MaxKey } from './max_key';
9
- import { MinKey } from './min_key';
10
- import { ObjectId } from './objectid';
11
- import { DeserializeOptions } from './parser/deserializer';
12
- import { SerializeOptions } from './parser/serializer';
13
- import { BSONRegExp } from './regexp';
14
- import { BSONSymbol } from './symbol';
15
- import { Timestamp } from './timestamp';
16
- export type { UUIDExtended, BinaryExtended, BinaryExtendedLegacy, BinarySequence } from './binary';
17
- export type { CodeExtended } from './code';
18
- export type { DBRefLike } from './db_ref';
19
- export type { Decimal128Extended } from './decimal128';
20
- export type { DoubleExtended } from './double';
21
- export type { EJSONOptions } from './extended_json';
22
- export type { Int32Extended } from './int_32';
23
- export type { LongExtended } from './long';
24
- export type { MaxKeyExtended } from './max_key';
25
- export type { MinKeyExtended } from './min_key';
26
- export type { ObjectIdExtended, ObjectIdLike } from './objectid';
27
- export type { BSONRegExpExtended, BSONRegExpExtendedLegacy } from './regexp';
28
- export type { BSONSymbolExtended } from './symbol';
29
- export type { LongWithoutOverrides, TimestampExtended, TimestampOverrides } from './timestamp';
30
- export type { LongWithoutOverridesClass } from './timestamp';
31
- export type { SerializeOptions, DeserializeOptions };
32
- export { Code, BSONSymbol, DBRef, Binary, ObjectId, UUID, Long, Timestamp, Double, Int32, MinKey, MaxKey, BSONRegExp, Decimal128 };
33
- export { BSONValue } from './bson_value';
34
- export { BSONError, BSONVersionError, BSONRuntimeError } from './error';
35
- export { BSONType } from './constants';
36
- export { EJSON } from './extended_json';
37
- /** @public */
38
- export interface Document {
39
- [key: string]: any;
40
- }
41
- /**
42
- * Sets the size of the internal serialization buffer.
43
- *
44
- * @param size - The desired size for the internal serialization buffer in bytes
45
- * @public
46
- */
47
- export declare function setInternalBufferSize(size: number): void;
48
- /**
49
- * Serialize a Javascript object.
50
- *
51
- * @param object - the Javascript object to serialize.
52
- * @returns Buffer object containing the serialized object.
53
- * @public
54
- */
55
- export declare function serialize(object: Document, options?: SerializeOptions): Uint8Array;
56
- /**
57
- * Serialize a Javascript object using a predefined Buffer and index into the buffer,
58
- * useful when pre-allocating the space for serialization.
59
- *
60
- * @param object - the Javascript object to serialize.
61
- * @param finalBuffer - the Buffer you pre-allocated to store the serialized BSON object.
62
- * @returns the index pointing to the last written byte in the buffer.
63
- * @public
64
- */
65
- export declare function serializeWithBufferAndIndex(object: Document, finalBuffer: Uint8Array, options?: SerializeOptions): number;
66
- /**
67
- * Deserialize data as BSON.
68
- *
69
- * @param buffer - the buffer containing the serialized set of BSON documents.
70
- * @returns returns the deserialized Javascript Object.
71
- * @public
72
- */
73
- export declare function deserialize(buffer: Uint8Array, options?: DeserializeOptions): Document;
74
- /** @public */
75
- export type CalculateObjectSizeOptions = Pick<SerializeOptions, 'serializeFunctions' | 'ignoreUndefined'>;
76
- /**
77
- * Calculate the bson size for a passed in Javascript object.
78
- *
79
- * @param object - the Javascript object to calculate the BSON byte size for
80
- * @returns size of BSON object in bytes
81
- * @public
82
- */
83
- export declare function calculateObjectSize(object: Document, options?: CalculateObjectSizeOptions): number;
84
- /**
85
- * Deserialize stream data as BSON documents.
86
- *
87
- * @param data - the buffer containing the serialized set of BSON documents.
88
- * @param startIndex - the start index in the data Buffer where the deserialization is to start.
89
- * @param numberOfDocuments - number of documents to deserialize.
90
- * @param documents - an array where to store the deserialized documents.
91
- * @param docStartIndex - the index in the documents array from where to start inserting documents.
92
- * @param options - additional options used for the deserialization.
93
- * @returns next index in the buffer after deserialization **x** numbers of documents.
94
- * @public
95
- */
96
- export declare function deserializeStream(data: Uint8Array | ArrayBuffer, startIndex: number, numberOfDocuments: number, documents: Document[], docStartIndex: number, options: DeserializeOptions): number;
97
- //# sourceMappingURL=bson.d.ts.map
package/lib/bson.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"bson.d.ts","sourceRoot":"","sources":["../src/bson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAuB,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAiB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACnG,YAAY,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,M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E,gBAAqB,GAAG,UAAU,CAmCtF;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,QAAQ,EAChB,WAAW,EAAE,UAAU,EACvB,OAAO,GAAE,gBAAqB,GAC7B,MAAM,CAyBR;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE,kBAAuB,GAAG,QAAQ,CAE1F;AAED,cAAc;AACd,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,gBAAgB,EAChB,oBAAoB,GAAG,iBAAiB,CACzC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,QAAQ,EAChB,OAAO,GAAE,0BAA+B,GACvC,MAAM,CASR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,UAAU,GAAG,WAAW,EAC9B,UAAU,EAAE,MAAM,EAClB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,QAAQ,EAAE,EACrB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CA0BR"}
@@ -1,10 +0,0 @@
1
- /** @public */
2
- export declare abstract class BSONValue {
3
- /** @public */
4
- abstract get _bsontype(): string;
5
- /** @public */
6
- abstract inspect(): string;
7
- /** @internal */
8
- abstract toExtendedJSON(): unknown;
9
- }
10
- //# sourceMappingURL=bson_value.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bson_value.d.ts","sourceRoot":"","sources":["../src/bson_value.ts"],"names":[],"mappings":"AAEA,cAAc;AACd,8BAAsB,SAAS;IAC7B,cAAc;IACd,aAAoB,SAAS,IAAI,MAAM,CAAC;IAOxC,cAAc;aACE,OAAO,IAAI,MAAM;IAEjC,gBAAgB;IAChB,QAAQ,CAAC,cAAc,IAAI,OAAO;CACnC"}
package/lib/code.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import type { Document } from './bson';
2
- import { BSONValue } from './bson_value';
3
- /** @public */
4
- export interface CodeExtended {
5
- $code: string;
6
- $scope?: Document;
7
- }
8
- /**
9
- * A class representation of the BSON Code type.
10
- * @public
11
- * @category BSONType
12
- */
13
- export declare class Code extends BSONValue {
14
- get _bsontype(): 'Code';
15
- code: string;
16
- scope: Document | null;
17
- /**
18
- * @param code - a string or function.
19
- * @param scope - an optional scope for the function.
20
- */
21
- constructor(code: string | Function, scope?: Document | null);
22
- toJSON(): {
23
- code: string;
24
- scope?: Document;
25
- };
26
- /** @internal */
27
- toExtendedJSON(): CodeExtended;
28
- /** @internal */
29
- static fromExtendedJSON(doc: CodeExtended): Code;
30
- inspect(): string;
31
- }
32
- //# sourceMappingURL=code.d.ts.map
package/lib/code.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../src/code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,cAAc;AACd,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,IAAK,SAAQ,SAAS;IACjC,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEvB;;;OAGG;gBACS,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI;IAM5D,MAAM,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,QAAQ,CAAA;KAAE;IAQ5C,gBAAgB;IAChB,cAAc,IAAI,YAAY;IAQ9B,gBAAgB;IAChB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI;IAShD,OAAO,IAAI,MAAM;CAMlB"}
@@ -1,107 +0,0 @@
1
- /** @internal */
2
- export declare const BSON_MAJOR_VERSION: 5;
3
- /** @internal */
4
- export declare const BSON_INT32_MAX = 2147483647;
5
- /** @internal */
6
- export declare const BSON_INT32_MIN = -2147483648;
7
- /** @internal */
8
- export declare const BSON_INT64_MAX: number;
9
- /** @internal */
10
- export declare const BSON_INT64_MIN: number;
11
- /**
12
- * Any integer up to 2^53 can be precisely represented by a double.
13
- * @internal
14
- */
15
- export declare const JS_INT_MAX: number;
16
- /**
17
- * Any integer down to -2^53 can be precisely represented by a double.
18
- * @internal
19
- */
20
- export declare const JS_INT_MIN: number;
21
- /** Number BSON Type @internal */
22
- export declare const BSON_DATA_NUMBER = 1;
23
- /** String BSON Type @internal */
24
- export declare const BSON_DATA_STRING = 2;
25
- /** Object BSON Type @internal */
26
- export declare const BSON_DATA_OBJECT = 3;
27
- /** Array BSON Type @internal */
28
- export declare const BSON_DATA_ARRAY = 4;
29
- /** Binary BSON Type @internal */
30
- export declare const BSON_DATA_BINARY = 5;
31
- /** Binary BSON Type @internal */
32
- export declare const BSON_DATA_UNDEFINED = 6;
33
- /** ObjectId BSON Type @internal */
34
- export declare const BSON_DATA_OID = 7;
35
- /** Boolean BSON Type @internal */
36
- export declare const BSON_DATA_BOOLEAN = 8;
37
- /** Date BSON Type @internal */
38
- export declare const BSON_DATA_DATE = 9;
39
- /** null BSON Type @internal */
40
- export declare const BSON_DATA_NULL = 10;
41
- /** RegExp BSON Type @internal */
42
- export declare const BSON_DATA_REGEXP = 11;
43
- /** Code BSON Type @internal */
44
- export declare const BSON_DATA_DBPOINTER = 12;
45
- /** Code BSON Type @internal */
46
- export declare const BSON_DATA_CODE = 13;
47
- /** Symbol BSON Type @internal */
48
- export declare const BSON_DATA_SYMBOL = 14;
49
- /** Code with Scope BSON Type @internal */
50
- export declare const BSON_DATA_CODE_W_SCOPE = 15;
51
- /** 32 bit Integer BSON Type @internal */
52
- export declare const BSON_DATA_INT = 16;
53
- /** Timestamp BSON Type @internal */
54
- export declare const BSON_DATA_TIMESTAMP = 17;
55
- /** Long BSON Type @internal */
56
- export declare const BSON_DATA_LONG = 18;
57
- /** Decimal128 BSON Type @internal */
58
- export declare const BSON_DATA_DECIMAL128 = 19;
59
- /** MinKey BSON Type @internal */
60
- export declare const BSON_DATA_MIN_KEY = 255;
61
- /** MaxKey BSON Type @internal */
62
- export declare const BSON_DATA_MAX_KEY = 127;
63
- /** Binary Default Type @internal */
64
- export declare const BSON_BINARY_SUBTYPE_DEFAULT = 0;
65
- /** Binary Function Type @internal */
66
- export declare const BSON_BINARY_SUBTYPE_FUNCTION = 1;
67
- /** Binary Byte Array Type @internal */
68
- export declare const BSON_BINARY_SUBTYPE_BYTE_ARRAY = 2;
69
- /** Binary Deprecated UUID Type @deprecated Please use BSON_BINARY_SUBTYPE_UUID_NEW @internal */
70
- export declare const BSON_BINARY_SUBTYPE_UUID = 3;
71
- /** Binary UUID Type @internal */
72
- export declare const BSON_BINARY_SUBTYPE_UUID_NEW = 4;
73
- /** Binary MD5 Type @internal */
74
- export declare const BSON_BINARY_SUBTYPE_MD5 = 5;
75
- /** Encrypted BSON type @internal */
76
- export declare const BSON_BINARY_SUBTYPE_ENCRYPTED = 6;
77
- /** Column BSON type @internal */
78
- export declare const BSON_BINARY_SUBTYPE_COLUMN = 7;
79
- /** Binary User Defined Type @internal */
80
- export declare const BSON_BINARY_SUBTYPE_USER_DEFINED = 128;
81
- /** @public */
82
- export declare const BSONType: Readonly<{
83
- readonly double: 1;
84
- readonly string: 2;
85
- readonly object: 3;
86
- readonly array: 4;
87
- readonly binData: 5;
88
- readonly undefined: 6;
89
- readonly objectId: 7;
90
- readonly bool: 8;
91
- readonly date: 9;
92
- readonly null: 10;
93
- readonly regex: 11;
94
- readonly dbPointer: 12;
95
- readonly javascript: 13;
96
- readonly symbol: 14;
97
- readonly javascriptWithScope: 15;
98
- readonly int: 16;
99
- readonly timestamp: 17;
100
- readonly long: 18;
101
- readonly decimal: 19;
102
- readonly minKey: -1;
103
- readonly maxKey: 127;
104
- }>;
105
- /** @public */
106
- export type BSONType = (typeof BSONType)[keyof typeof BSONType];
107
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,GAAa,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,gBAAgB;AAChB,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,gBAAgB;AAChB,eAAO,MAAM,cAAc,QAAsB,CAAC;AAClD,gBAAgB;AAChB,eAAO,MAAM,cAAc,QAAmB,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAkB,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAmB,CAAC;AAE3C,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,gCAAgC;AAChC,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,iCAAiC;AACjC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,mCAAmC;AACnC,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,+BAA+B;AAC/B,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,+BAA+B;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,+BAA+B;AAC/B,eAAO,MAAM,mBAAmB,KAAK,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ue } from './bson_value';
3
- import type { EJSONOptions } from './extended_json';
4
- import type { ObjectId } from './objectid';
5
- /** @public */
6
- export interface DBRefLike {
7
- $ref: string;
8
- $id: ObjectId;
9
- $db?: string;
10
- }
11
- /** @internal */
12
- export declare function isDBRefLike(value: unknown): value is DBRefLike;
13
- /**
14
- * A class representation of the BSON DBRef type.
15
- * @public
16
- * @category BSONType
17
- */
18
- export declare class DBRef extends BSONValue {
19
- get _bsontype(): 'DBRef';
20
- collection: string;
21
- oid: ObjectId;
22
- db?: string;
23
- fields: Document;
24
- /**
25
- * @param collection - the collection name.
26
- * @param oid - the reference ObjectId.
27
- * @param db - optional db name, if omitted the reference is local to the current db.
28
- */
29
- constructor(collection: string, oid: ObjectId, db?: string, fields?: Document);
30
- /** @internal */
31
- get namespace(): string;
32
- set namespace(value: string);
33
- toJSON(): DBRefLike & Document;
34
- /** @internal */
35
- toExtendedJSON(options?: EJSONOptions): DBRefLike;
36
- /** @internal */
37
- static fromExtendedJSON(doc: DBRefLike): DBRef;
38
- inspect(): string;
39
- }
40
- //# sourceMappingURL=db_ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db_ref.d.ts","sourceRoot":"","sources":["../src/db_ref.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,cAAc;AACd,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAW9D;AAED;;;;GAIG;AACH,qBAAa,KAAM,SAAQ,SAAS;IAClC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,UAAU,EAAG,MAAM,CAAC;IACpB,GAAG,EAAG,QAAQ,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAG,QAAQ,CAAC;IAElB;;;;OAIG;gBACS,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ;IAmB7E,gBAAgB;IAChB,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAE1B;IAED,MAAM,IAAI,SAAS,GAAG,QAAQ;IAa9B,gBAAgB;IAChB,cAAc,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS;IAgBjD,gBAAgB;IAChB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,KAAK;IAa9C,OAAO,IAAI,MAAM;CAQlB"}
@@ -1,34 +0,0 @@
1
- import { BSONValue } from './bson_value';
2
- /** @public */
3
- export interface Decimal128Extended {
4
- $numberDecimal: string;
5
- }
6
- /**
7
- * A class representation of the BSON Decimal128 type.
8
- * @public
9
- * @category BSONType
10
- */
11
- export declare class Decimal128 extends BSONValue {
12
- get _bsontype(): 'Decimal128';
13
- readonly bytes: Uint8Array;
14
- /**
15
- * @param bytes - a buffer containing the raw Decimal128 bytes in little endian order,
16
- * or a string representation as returned by .toString()
17
- */
18
- constructor(bytes: Uint8Array | string);
19
- /**
20
- * Create a Decimal128 instance from a string representation
21
- *
22
- * @param representation - a numeric string representation.
23
- */
24
- static fromString(representation: string): Decimal128;
25
- /** Create a string representation of the raw Decimal128 value */
26
- toString(): string;
27
- toJSON(): Decimal128Extended;
28
- /** @internal */
29
- toExtendedJSON(): Decimal128Extended;
30
- /** @internal */
31
- static fromExtendedJSON(doc: Decimal128Extended): Decimal128;
32
- inspect(): string;
33
- }
34
- //# sourceMappingURL=decimal128.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decimal128.d.ts","sourceRoot":"","sources":["../src/decimal128.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAuHzC,cAAc;AACd,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,SAAS;IACvC,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,QAAQ,CAAC,KAAK,EAAG,UAAU,CAAC;IAE5B;;;OAGG;gBACS,KAAK,EAAE,UAAU,GAAG,MAAM;IActC;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU;IA+XrD,iEAAiE;IACjE,QAAQ,IAAI,MAAM;IAmNlB,MAAM,IAAI,kBAAkB;IAI5B,gBAAgB;IAChB,cAAc,IAAI,kBAAkB;IAIpC,gBAAgB;IAChB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,UAAU;IAS5D,OAAO,IAAI,MAAM;CAGlB"}
package/lib/double.d.ts DELETED
@@ -1,35 +0,0 @@
1
- import { BSONValue } from './bson_value';
2
- import type { EJSONOptions } from './extended_json';
3
- /** @public */
4
- export interface DoubleExtended {
5
- $numberDouble: string;
6
- }
7
- /**
8
- * A class representation of the BSON Double type.
9
- * @public
10
- * @category BSONType
11
- */
12
- export declare class Double extends BSONValue {
13
- get _bsontype(): 'Double';
14
- value: number;
15
- /**
16
- * Create a Double type
17
- *
18
- * @param value - the number we want to represent as a double.
19
- */
20
- constructor(value: number);
21
- /**
22
- * Access the number value.
23
- *
24
- * @returns returns the wrapped double number.
25
- */
26
- valueOf(): number;
27
- toJSON(): number;
28
- toString(radix?: number): string;
29
- /** @internal */
30
- toExtendedJSON(options?: EJSONOptions): number | DoubleExtended;
31
- /** @internal */
32
- static fromExtendedJSON(doc: DoubleExtended, options?: EJSONOptions): number | Double;
33
- inspect(): string;
34
- }
35
- //# sourceMappingURL=double.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"double.d.ts","sourceRoot":"","sources":["../src/double.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,cAAc;AACd,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,IAAI,SAAS,IAAI,QAAQ,CAExB;IAED,KAAK,EAAG,MAAM,CAAC;IACf;;;;OAIG;gBACS,KAAK,EAAE,MAAM;IASzB;;;;OAIG;IACH,OAAO,IAAI,MAAM;IAIjB,MAAM,IAAI,MAAM;IAIhB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM;IAIhC,gBAAgB;IAChB,cAAc,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,cAAc;IAgB/D,gBAAgB;IAChB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM;IAUrF,OAAO,IAAI,MAAM;CAIlB"}