@types/bson
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -13,7 +13,7 @@ // Type definitions for bson 4.0 | ||
/** {default:false}, the serializer will check if keys are valid. */ | ||
checkKeys?: boolean; | ||
checkKeys?: boolean | undefined; | ||
/** {default:false}, serialize the javascript functions. */ | ||
serializeFunctions?: boolean; | ||
serializeFunctions?: boolean | undefined; | ||
/** {default:true}, ignore undefined fields. */ | ||
ignoreUndefined?: boolean; | ||
ignoreUndefined?: boolean | undefined; | ||
} | ||
@@ -23,3 +23,3 @@ | ||
/** {default:1024*1024*17}, minimum size of the internal temporary serialization buffer. */ | ||
minInternalBufferSize?: number; | ||
minInternalBufferSize?: number | undefined; | ||
} | ||
@@ -29,3 +29,3 @@ | ||
/** {default:0}, the index in the buffer where we wish to start serializing into. */ | ||
index?: number; | ||
index?: number | undefined; | ||
} | ||
@@ -35,19 +35,19 @@ | ||
/** {default:false}, evaluate functions in the BSON document scoped to the object deserialized. */ | ||
evalFunctions?: boolean; | ||
evalFunctions?: boolean | undefined; | ||
/** {default:false}, cache evaluated functions for reuse. */ | ||
cacheFunctions?: boolean; | ||
cacheFunctions?: boolean | undefined; | ||
/** {default:false}, use a crc32 code for caching, otherwise use the string of the function. */ | ||
cacheFunctionsCrc32?: boolean; | ||
cacheFunctionsCrc32?: boolean | undefined; | ||
/** {default:true}, when deserializing a Long will fit it into a Number if it's smaller than 53 bits. */ | ||
promoteLongs?: boolean; | ||
promoteLongs?: boolean | undefined; | ||
/** {default:false}, deserialize Binary data directly into node.js Buffer object. */ | ||
promoteBuffers?: boolean; | ||
promoteBuffers?: boolean | undefined; | ||
/** {default:false}, when deserializing will promote BSON values to their Node.js closest equivalent types. */ | ||
promoteValues?: boolean; | ||
promoteValues?: boolean | undefined; | ||
/** {default:null}, allow to specify if there what fields we wish to return as unserialized raw buffer. */ | ||
fieldsAsRaw?: { readonly [fieldName: string]: boolean }; | ||
fieldsAsRaw?: { readonly [fieldName: string]: boolean } | undefined; | ||
/** {default:false}, return BSON regular expressions as BSONRegExp instances. */ | ||
bsonRegExp?: boolean; | ||
bsonRegExp?: boolean | undefined; | ||
/** {default:false}, allows the buffer to be larger than the parsed BSON object. */ | ||
allowObjectSmallerThanBufferSize?: boolean; | ||
allowObjectSmallerThanBufferSize?: boolean | undefined; | ||
} | ||
@@ -57,5 +57,5 @@ | ||
/** {default:false}, serialize the javascript functions */ | ||
serializeFunctions?: boolean; | ||
serializeFunctions?: boolean | undefined; | ||
/** {default:true}, ignore undefined fields. */ | ||
ignoreUndefined?: boolean; | ||
ignoreUndefined?: boolean | undefined; | ||
} | ||
@@ -141,3 +141,3 @@ | ||
/** Binary data subtype */ | ||
readonly sub_type?: number; | ||
readonly sub_type?: number | undefined; | ||
@@ -182,3 +182,3 @@ /** The length of the binary. */ | ||
oid: ObjectId; | ||
db?: string; | ||
db?: string | undefined; | ||
} | ||
@@ -374,3 +374,3 @@ | ||
/** If true cache the hex string representation of ObjectId */ | ||
static cacheHexString?: boolean; | ||
static cacheHexString?: boolean | undefined; | ||
/** | ||
@@ -500,3 +500,3 @@ * Creates an ObjectId from a hex string representation of an ObjectId. | ||
*/ | ||
export function parse(text: string, options?: {relaxed?: boolean;}): {}; | ||
export function parse(text: string, options?: {relaxed?: boolean | undefined;}): {}; | ||
@@ -511,3 +511,3 @@ /** | ||
*/ | ||
export function deserialize(ejson: {}, options?: {relaxed?: boolean;}): {}; | ||
export function deserialize(ejson: {}, options?: {relaxed?: boolean | undefined;}): {}; | ||
@@ -522,3 +522,3 @@ /** | ||
*/ | ||
export function serialize(bson: {}, options?: {relaxed?: boolean;}): {}; | ||
export function serialize(bson: {}, options?: {relaxed?: boolean | undefined;}): {}; | ||
@@ -550,3 +550,3 @@ /** | ||
value: {}, | ||
options?: {relaxed?: boolean;} | ||
options?: {relaxed?: boolean | undefined;} | ||
): string; | ||
@@ -581,3 +581,3 @@ | ||
replacer: ((key: string, value: any) => any) | Array<string|number> | null | undefined, | ||
options?: {relaxed?: boolean;} | ||
options?: {relaxed?: boolean | undefined;} | ||
): string; | ||
@@ -611,4 +611,4 @@ /** | ||
indents?: string | number, | ||
options?: {relaxed?: boolean;} | ||
options?: {relaxed?: boolean | undefined;} | ||
): string; | ||
} |
{ | ||
"name": "@types/bson", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "TypeScript definitions for bson", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bson", | ||
"license": "MIT", | ||
@@ -39,4 +40,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "de339c6ae3194d7c34d771d4580048f1007707bafc646731b539c3a79638ebe9", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "7828d55bc8d6ef153b4825e28fe498539c3482d3053144974fd0e343540e4331", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 20 Oct 2020 02:03:19 GMT | ||
* Last updated: Tue, 06 Jul 2021 18:05:46 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
26269