@types/mongodb
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -119,3 +119,3 @@ // Type definitions for MongoDB 1.0 | ||
public _removeHandler(id: any): any; | ||
public _findHandler(id: any): { id: string; callback?: Function }; | ||
public _findHandler(id: any): { id: string; callback?: Function | undefined }; | ||
public __executeQueryCommand(self: any, db_command: any, options: any, callback?: any): void; | ||
@@ -127,3 +127,3 @@ | ||
url: string, | ||
options: { uri_decode_auth?: boolean }, | ||
options: { uri_decode_auth?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -188,9 +188,9 @@ ): void; | ||
//= set seconds before connection times out default:0 | ||
timeout?: number; | ||
timeout?: number | undefined; | ||
//= Disables the Nagle algorithm default:true | ||
noDelay?: boolean; | ||
noDelay?: boolean | undefined; | ||
//= Set if keepAlive is used default:0 , which means no keepAlive, set higher than 0 for keepAlive | ||
keepAlive?: number; | ||
keepAlive?: number | undefined; | ||
//= ‘ascii’|’utf8’|’base64’ default:null | ||
encoding?: string; | ||
encoding?: string | undefined; | ||
} | ||
@@ -200,5 +200,5 @@ | ||
// - to reconnect automatically, default:false | ||
auto_reconnect?: boolean; | ||
auto_reconnect?: boolean | undefined; | ||
// - specify the number of connections in the pool default:1 | ||
poolSize?: number; | ||
poolSize?: number | undefined; | ||
// - a collection of pr socket settings | ||
@@ -220,45 +220,45 @@ socketOptions?: any; | ||
// set the timeout for waiting for write concern to finish (combines with w option). | ||
wtimeout?: number; | ||
wtimeout?: number | undefined; | ||
// write waits for fsync before returning. default:false. | ||
fsync?: boolean; | ||
fsync?: boolean | undefined; | ||
// write waits for journal sync before returning. default:false. | ||
journal?: boolean; | ||
journal?: boolean | undefined; | ||
// the prefered read preference. use 'ReadPreference' class. | ||
readPreference?: string; | ||
readPreference?: string | undefined; | ||
// use c++ bson parser. default:false. | ||
native_parser?: boolean; | ||
native_parser?: boolean | undefined; | ||
// force server to create _id fields instead of client. default:false. | ||
forceServerObjectId?: boolean; | ||
forceServerObjectId?: boolean | undefined; | ||
// custom primary key factory to generate _id values (see Custom primary keys). | ||
pkFactory?: PKFactory; | ||
pkFactory?: PKFactory | undefined; | ||
// serialize functions. default:false. | ||
serializeFunctions?: boolean; | ||
serializeFunctions?: boolean | undefined; | ||
// peform operations using raw bson buffers. default:false. | ||
raw?: boolean; | ||
raw?: boolean | undefined; | ||
// record query statistics during execution. default:false. | ||
recordQueryStats?: boolean; | ||
recordQueryStats?: boolean | undefined; | ||
// number of miliseconds between retries. default:5000. | ||
retryMiliSeconds?: number; | ||
retryMiliSeconds?: number | undefined; | ||
// number of retries off connection. default:5. | ||
numberOfRetries?: number; | ||
numberOfRetries?: number | undefined; | ||
// an object representing a logger that you want to use, needs to support functions debug, log, error. default:null. | ||
logger?: Object; | ||
logger?: Object | undefined; | ||
// force setting of SlaveOk flag on queries (only use when explicitly connecting to a secondary server). default:null. | ||
slaveOk?: number; | ||
slaveOk?: number | undefined; | ||
// when deserializing a Long will fit it into a Number if it’s smaller than 53 bits. default:true. | ||
promoteLongs?: boolean; | ||
promoteLongs?: boolean | undefined; | ||
} | ||
@@ -278,15 +278,15 @@ | ||
// the prefered read preference. use 'ReadPreference' class. | ||
readPreference?: string; | ||
readPreference?: string | undefined; | ||
// Allow reads from secondaries. default:false. | ||
slaveOk?: boolean; | ||
slaveOk?: boolean | undefined; | ||
// serialize functions on the document. default:false. | ||
serializeFunctions?: boolean; | ||
serializeFunctions?: boolean | undefined; | ||
// perform all operations using raw bson objects. default:false. | ||
raw?: boolean; | ||
raw?: boolean | undefined; | ||
// object overriding the basic ObjectID primary key generation. | ||
pkFactory?: PKFactory; | ||
pkFactory?: PKFactory | undefined; | ||
} | ||
@@ -344,3 +344,3 @@ | ||
query: any, | ||
options: { safe?: any; continueOnError?: boolean; keepGoing?: boolean; serializeFunctions?: boolean }, | ||
options: { safe?: any; continueOnError?: boolean | undefined; keepGoing?: boolean | undefined; serializeFunctions?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -355,6 +355,6 @@ ): void; | ||
w?: any; | ||
wtimeout?: number; | ||
j?: boolean; | ||
serializeFunctions?: boolean; | ||
forceServerObjectId?: boolean; | ||
wtimeout?: number | undefined; | ||
j?: boolean | undefined; | ||
serializeFunctions?: boolean | undefined; | ||
forceServerObjectId?: boolean | undefined; | ||
}, | ||
@@ -370,6 +370,6 @@ callback?: (err: Error, result: any) => void, | ||
w?: any; | ||
wtimeout?: number; | ||
j?: boolean; | ||
serializeFunctions?: boolean; | ||
forceServerObjectId?: boolean; | ||
wtimeout?: number | undefined; | ||
j?: boolean | undefined; | ||
serializeFunctions?: boolean | undefined; | ||
forceServerObjectId?: boolean | undefined; | ||
}, | ||
@@ -385,3 +385,3 @@ callback?: (err: Error, result: any) => void, | ||
selector: Object, | ||
options: { safe?: any; single?: boolean }, | ||
options: { safe?: any; single?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -394,3 +394,3 @@ ): void; | ||
filter: any, | ||
options: { w?: any; wtimeout?: number; j?: boolean }, | ||
options: { w?: any; wtimeout?: number | undefined; j?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -403,3 +403,3 @@ ): void; | ||
filter: any, | ||
options: { w?: any; wtimeout?: number; j?: boolean }, | ||
options: { w?: any; wtimeout?: number | undefined; j?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -413,3 +413,3 @@ ): void; | ||
doc: any, | ||
options: { w?: any; wtimeout?: number; j?: boolean }, | ||
options: { w?: any; wtimeout?: number | undefined; j?: boolean | undefined }, | ||
callback: (err: Error, result: any) => void, | ||
@@ -425,3 +425,3 @@ ): void; | ||
document: any, | ||
options: { safe?: boolean; upsert?: any; multi?: boolean; serializeFunctions?: boolean }, | ||
options: { safe?: boolean | undefined; upsert?: any; multi?: boolean | undefined; serializeFunctions?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -435,3 +435,3 @@ ): void; | ||
update: any, | ||
options: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean }, | ||
options: { upsert?: boolean | undefined; w?: any; wtimeout?: number | undefined; j?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -445,3 +445,3 @@ ): void; | ||
update: any, | ||
options: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean }, | ||
options: { upsert?: boolean | undefined; w?: any; wtimeout?: number | undefined; j?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -472,3 +472,3 @@ ): void; | ||
doc: Object, | ||
options: { safe?: any; remove?: boolean; upsert?: boolean; new?: boolean }, | ||
options: { safe?: any; remove?: boolean | undefined; upsert?: boolean | undefined; new?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -492,3 +492,3 @@ ): void; | ||
filter: any, | ||
options: { projection?: any; sort?: any; maxTimeMS?: number }, | ||
options: { projection?: any; sort?: any; maxTimeMS?: number | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -502,3 +502,3 @@ ): void; | ||
replacement: any, | ||
options: { projection?: any; sort?: any; maxTimeMS?: number; upsert?: boolean; returnOriginal?: boolean }, | ||
options: { projection?: any; sort?: any; maxTimeMS?: number | undefined; upsert?: boolean | undefined; returnOriginal?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -512,3 +512,3 @@ ): void; | ||
update: any, | ||
options: { projection?: any; sort?: any; maxTimeMS?: number; upsert?: boolean; returnOriginal?: boolean }, | ||
options: { projection?: any; sort?: any; maxTimeMS?: number | undefined; upsert?: boolean | undefined; returnOriginal?: boolean | undefined }, | ||
callback?: (err: Error, result: any) => void, | ||
@@ -616,12 +616,12 @@ ): void; | ||
export interface MapReduceOptions { | ||
out?: Object; | ||
query?: Object; | ||
sort?: Object; | ||
limit?: number; | ||
keeptemp?: boolean; | ||
out?: Object | undefined; | ||
query?: Object | undefined; | ||
sort?: Object | undefined; | ||
limit?: number | undefined; | ||
keeptemp?: boolean | undefined; | ||
finalize?: any; | ||
scope?: Object; | ||
jsMode?: boolean; | ||
verbose?: boolean; | ||
readPreference?: string; | ||
scope?: Object | undefined; | ||
jsMode?: boolean | undefined; | ||
verbose?: boolean | undefined; | ||
readPreference?: string | undefined; | ||
} | ||
@@ -631,14 +631,14 @@ | ||
w?: any; | ||
wtimeout?: number; | ||
fsync?: boolean; | ||
journal?: boolean; | ||
unique?: boolean; | ||
sparse?: boolean; | ||
background?: boolean; | ||
dropDups?: boolean; | ||
min?: number; | ||
max?: number; | ||
v?: number; | ||
expireAfterSeconds?: number; | ||
name?: string; | ||
wtimeout?: number | undefined; | ||
fsync?: boolean | undefined; | ||
journal?: boolean | undefined; | ||
unique?: boolean | undefined; | ||
sparse?: boolean | undefined; | ||
background?: boolean | undefined; | ||
dropDups?: boolean | undefined; | ||
min?: number | undefined; | ||
max?: number | undefined; | ||
v?: number | undefined; | ||
expireAfterSeconds?: number | undefined; | ||
name?: string | undefined; | ||
} | ||
@@ -692,26 +692,26 @@ | ||
export interface CollectionFindOptions { | ||
limit?: number; | ||
limit?: number | undefined; | ||
sort?: any; | ||
fields?: Object; | ||
skip?: number; | ||
hint?: Object; | ||
explain?: boolean; | ||
snapshot?: boolean; | ||
timeout?: boolean; | ||
tailtable?: boolean; | ||
tailableRetryInterval?: number; | ||
numberOfRetries?: number; | ||
awaitdata?: boolean; | ||
oplogReplay?: boolean; | ||
exhaust?: boolean; | ||
batchSize?: number; | ||
returnKey?: boolean; | ||
maxScan?: number; | ||
min?: number; | ||
max?: number; | ||
showDiskLoc?: boolean; | ||
comment?: String; | ||
raw?: boolean; | ||
readPreference?: String; | ||
partial?: boolean; | ||
fields?: Object | undefined; | ||
skip?: number | undefined; | ||
hint?: Object | undefined; | ||
explain?: boolean | undefined; | ||
snapshot?: boolean | undefined; | ||
timeout?: boolean | undefined; | ||
tailtable?: boolean | undefined; | ||
tailableRetryInterval?: number | undefined; | ||
numberOfRetries?: number | undefined; | ||
awaitdata?: boolean | undefined; | ||
oplogReplay?: boolean | undefined; | ||
exhaust?: boolean | undefined; | ||
batchSize?: number | undefined; | ||
returnKey?: boolean | undefined; | ||
maxScan?: number | undefined; | ||
min?: number | undefined; | ||
max?: number | undefined; | ||
showDiskLoc?: boolean | undefined; | ||
comment?: String | undefined; | ||
raw?: boolean | undefined; | ||
readPreference?: String | undefined; | ||
partial?: boolean | undefined; | ||
} | ||
@@ -722,6 +722,6 @@ | ||
serializeFunctions?: any; | ||
strict?: boolean; | ||
raw?: boolean; | ||
strict?: boolean | undefined; | ||
raw?: boolean | undefined; | ||
pkFactory?: any; | ||
readPreference?: string; | ||
readPreference?: string | undefined; | ||
} |
{ | ||
"name": "@types/mongodb", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "TypeScript definitions for MongoDB", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mongodb", | ||
"license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "0773bfe4bff5d5fb1e4df1670b692bd5541f5647fa6390c4703362a1ccfbcadd", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "8b7a6141d61bb363acfeb42f7bb1af85ec8dab84f0c851c4684326e80c6760ed", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 21 Oct 2020 07:19:53 GMT | ||
* Last updated: Wed, 07 Jul 2021 00:01:43 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31038
0
1