mongodb 6.5.0-dev.20240423.sha.4a62ec6 → 6.5.0-dev.20240424.sha.6abc074
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/create.ts"],"names":[],"mappings":";;;AAKA,4CAAiD;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/create.ts"],"names":[],"mappings":";;;AAKA,4CAAiD;AAgBjD,gBAAgB;AAChB,MAAa,4BAA6B,SAAQ,6BAA2B;IAC3E,YACmB,UAAsB,EACtB,YAAmD;QAEpE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAuC;IAGtE,CAAC;IAED,IAAa,WAAW;QACtB,OAAO,qBAA8B,CAAC;IACxC,CAAC;IAEQ,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAAkC;QACvE,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAChD,MAAM,OAAO,GAAG;YACd,mBAAmB,EAAE,SAAS,CAAC,UAAU;YACzC,OAAO,EAAE,IAAI,CAAC,YAAY;SAC3B,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAElE,MAAM,cAAc,GAA4B,GAAG,EAAE,cAAc,IAAI,EAAE,CAAC;QAC1E,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF;AAxBD,oEAwBC"}
|
package/lib/timeout.js
CHANGED
|
@@ -39,15 +39,13 @@ class Timeout extends Promise {
|
|
|
39
39
|
});
|
|
40
40
|
this.ended = null;
|
|
41
41
|
this.timedOut = false;
|
|
42
|
-
// NOTE: Construct timeout error at point of Timeout instantiation to preserve stack traces
|
|
43
|
-
this.timeoutError = new TimeoutError(`Expired after ${duration}ms`);
|
|
44
42
|
this.duration = duration;
|
|
45
43
|
this.start = Math.trunc(performance.now());
|
|
46
44
|
if (this.duration > 0) {
|
|
47
45
|
this.id = (0, timers_1.setTimeout)(() => {
|
|
48
46
|
this.ended = Math.trunc(performance.now());
|
|
49
47
|
this.timedOut = true;
|
|
50
|
-
reject(
|
|
48
|
+
reject(new TimeoutError(`Expired after ${duration}ms`));
|
|
51
49
|
}, this.duration);
|
|
52
50
|
// Ensure we do not keep the Node.js event loop running
|
|
53
51
|
if (typeof this.id.unref === 'function') {
|
package/lib/timeout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../src/timeout.ts"],"names":[],"mappings":";;;AAAA,mCAAkD;AAElD,mCAAoD;AACpD,mCAA+B;AAE/B,gBAAgB;AAChB,MAAa,YAAa,SAAQ,KAAK;IACrC,IAAa,IAAI;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,YAAY,OAAe,EAAE,OAA2B;QACtD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,EAAE,CAAC,KAAc;QACtB,OAAO,CACL,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,CAC/F,CAAC;IACJ,CAAC;CACF;AAdD,oCAcC;AAID;;;;;KAKK;AACL,MAAa,OAAQ,SAAQ,OAAc;IACzC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,gBAAgB,CAAC;IAC1B,CAAC;
|
|
1
|
+
{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../src/timeout.ts"],"names":[],"mappings":";;;AAAA,mCAAkD;A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AC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;gBAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,MAAM,CAAC,IAAI,YAAY,CAAC,iBAAiB,QAAQ,IAAI,CAAC,CAAC,CAAC;YAC1D,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClB,uDAAuD;YACvD,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,KAAK,UAAU,EAAE;gBACvC,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;aACjB;SACF;IACH,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAA,qBAAY,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACtB,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;IACtB,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,UAAkB;QACtC,OAAO,IAAI,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,EAAE,CAAC,OAAgB;QACxB,OAAO,CACL,OAAO,OAAO,KAAK,QAAQ;YAC3B,OAAO,IAAI,IAAI;YACf,MAAM,CAAC,WAAW,IAAI,OAAO;YAC7B,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,gBAAgB;YAChD,MAAM,IAAI,OAAO;YACjB,0CAA0C;YAC1C,OAAO,OAAO,CAAC,IAAI,KAAK,UAAU,CACnC,CAAC;IACJ,CAAC;CACF;AAjED,0BAiEC"}
|
package/mongodb.d.ts
CHANGED
|
@@ -6696,11 +6696,13 @@ export declare type SchemaMember<T, V> = {
|
|
|
6696
6696
|
/**
|
|
6697
6697
|
* @public
|
|
6698
6698
|
*/
|
|
6699
|
-
export declare interface SearchIndexDescription {
|
|
6699
|
+
export declare interface SearchIndexDescription extends Document {
|
|
6700
6700
|
/** The name of the index. */
|
|
6701
6701
|
name?: string;
|
|
6702
6702
|
/** The index definition. */
|
|
6703
6703
|
definition: Document;
|
|
6704
|
+
/** The type of the index. Currently `search` or `vectorSearch` are supported. */
|
|
6705
|
+
type?: string;
|
|
6704
6706
|
}
|
|
6705
6707
|
|
|
6706
6708
|
/** @public */
|
package/package.json
CHANGED
|
@@ -8,12 +8,15 @@ import { AbstractOperation } from '../operation';
|
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
export interface SearchIndexDescription {
|
|
11
|
+
export interface SearchIndexDescription extends Document {
|
|
12
12
|
/** The name of the index. */
|
|
13
13
|
name?: string;
|
|
14
14
|
|
|
15
15
|
/** The index definition. */
|
|
16
16
|
definition: Document;
|
|
17
|
+
|
|
18
|
+
/** The type of the index. Currently `search` or `vectorSearch` are supported. */
|
|
19
|
+
type?: string;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
/** @internal */
|
package/src/timeout.ts
CHANGED
|
@@ -33,7 +33,6 @@ export class Timeout extends Promise<never> {
|
|
|
33
33
|
return 'MongoDBTimeout';
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
private timeoutError: TimeoutError;
|
|
37
36
|
private id?: NodeJS.Timeout;
|
|
38
37
|
|
|
39
38
|
public readonly start: number;
|
|
@@ -55,9 +54,6 @@ export class Timeout extends Promise<never> {
|
|
|
55
54
|
executor(noop, promiseReject);
|
|
56
55
|
});
|
|
57
56
|
|
|
58
|
-
// NOTE: Construct timeout error at point of Timeout instantiation to preserve stack traces
|
|
59
|
-
this.timeoutError = new TimeoutError(`Expired after ${duration}ms`);
|
|
60
|
-
|
|
61
57
|
this.duration = duration;
|
|
62
58
|
this.start = Math.trunc(performance.now());
|
|
63
59
|
|
|
@@ -65,7 +61,7 @@ export class Timeout extends Promise<never> {
|
|
|
65
61
|
this.id = setTimeout(() => {
|
|
66
62
|
this.ended = Math.trunc(performance.now());
|
|
67
63
|
this.timedOut = true;
|
|
68
|
-
reject(
|
|
64
|
+
reject(new TimeoutError(`Expired after ${duration}ms`));
|
|
69
65
|
}, this.duration);
|
|
70
66
|
// Ensure we do not keep the Node.js event loop running
|
|
71
67
|
if (typeof this.id.unref === 'function') {
|