@mongodb-js/explain-plan-helper 1.0.5 → 1.0.7
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.
- package/dist/get-execution-stats.d.ts +4 -4
- package/dist/get-execution-stats.d.ts.map +1 -1
- package/dist/get-execution-stats.js +7 -7
- package/dist/get-execution-stats.js.map +1 -1
- package/dist/index.d.ts +11 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -15
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Stage, IndexInformation } from './index';
|
|
2
|
-
export type ExecutionStats = {
|
|
2
|
+
export type ExecutionStats = Partial<{
|
|
3
3
|
executionSuccess: boolean;
|
|
4
4
|
nReturned: number;
|
|
5
5
|
executionTimeMillis: number;
|
|
@@ -7,7 +7,7 @@ export type ExecutionStats = {
|
|
|
7
7
|
totalDocsExamined: number;
|
|
8
8
|
executionStages: Stage;
|
|
9
9
|
allPlansExecution: unknown[];
|
|
10
|
-
stageIndexes
|
|
11
|
-
}
|
|
12
|
-
export declare const getExecutionStats: (explain: Stage) => ExecutionStats;
|
|
10
|
+
stageIndexes: IndexInformation[];
|
|
11
|
+
}>;
|
|
12
|
+
export declare const getExecutionStats: (explain: Stage) => ExecutionStats | undefined;
|
|
13
13
|
//# sourceMappingURL=get-execution-stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-execution-stats.d.ts","sourceRoot":"","sources":["../src/get-execution-stats.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG;
|
|
1
|
+
{"version":3,"file":"get-execution-stats.d.ts","sourceRoot":"","sources":["../src/get-execution-stats.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;IACnC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,KAAK,CAAC;IACvB,iBAAiB,EAAE,OAAO,EAAE,CAAC;IAC7B,YAAY,EAAE,gBAAgB,EAAE,CAAC;CAClC,CAAC,CAAC;AAEH,eAAO,MAAM,iBAAiB,YACnB,KAAK,KACb,cAAc,GAAG,SAKnB,CAAC"}
|
|
@@ -15,16 +15,17 @@ const _getAggregationStats = (explain) => {
|
|
|
15
15
|
: _getUnshardedAggregationStats(explain);
|
|
16
16
|
};
|
|
17
17
|
const _getUnshardedAggregationStats = (explain) => {
|
|
18
|
+
var _a;
|
|
18
19
|
const firstStage = explain.stages[0];
|
|
19
20
|
const cursorKey = (0, mongodb_explain_compat_1.getStageCursorKey)(firstStage);
|
|
20
21
|
if (!cursorKey) {
|
|
21
22
|
throw new Error('Can not find a cursor stage.');
|
|
22
23
|
}
|
|
23
24
|
const lastStage = explain.stages[explain.stages.length - 1];
|
|
24
|
-
const stats = _getFindStats(firstStage[cursorKey]);
|
|
25
|
+
const stats = (_a = _getFindStats(firstStage[cursorKey])) !== null && _a !== void 0 ? _a : {};
|
|
25
26
|
stats.nReturned = lastStage.nReturned;
|
|
26
27
|
stats.stageIndexes = getIndexesFromStages(explain.stages);
|
|
27
|
-
stats.executionTimeMillis =
|
|
28
|
+
stats.executionTimeMillis = getAggregationExecutionTime(stats, explain.stages);
|
|
28
29
|
return stats;
|
|
29
30
|
};
|
|
30
31
|
const _getShardedAggregationStats = (explain) => {
|
|
@@ -73,11 +74,10 @@ function sumArrayProp(arr, prop) {
|
|
|
73
74
|
function getIndexesFromStages(stages, shard) {
|
|
74
75
|
return stages
|
|
75
76
|
.reduce((acc, x) => { var _a; return acc.concat((_a = x === null || x === void 0 ? void 0 : x.indexesUsed) !== null && _a !== void 0 ? _a : []); }, [])
|
|
76
|
-
.map((index) => ({ index, shard: shard !== null && shard !== void 0 ? shard : null }));
|
|
77
|
+
.map((index) => ({ index, shard: shard !== null && shard !== void 0 ? shard : null, fields: {} }));
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
return (stats.executionTimeMillis
|
|
81
|
-
sumArrayProp(allStages, 'executionTimeMillisEstimate'));
|
|
79
|
+
function getAggregationExecutionTime(stats, stages) {
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
return ((_c = (_a = stats.executionTimeMillis) !== null && _a !== void 0 ? _a : (_b = stages[stages.length - 1]) === null || _b === void 0 ? void 0 : _b.executionTimeMillisEstimate) !== null && _c !== void 0 ? _c : 0);
|
|
82
82
|
}
|
|
83
83
|
//# sourceMappingURL=get-execution-stats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-execution-stats.js","sourceRoot":"","sources":["../src/get-execution-stats.ts"],"names":[],"mappings":";;;AAAA,mEAIgC;AAezB,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"get-execution-stats.js","sourceRoot":"","sources":["../src/get-execution-stats.ts"],"names":[],"mappings":";;;AAAA,mEAIgC;AAezB,MAAM,iBAAiB,GAAG,CAC/B,OAAc,EACc,EAAE;IAC9B,MAAM,cAAc,GAAG,IAAA,6CAAoB,EAAC,OAAO,CAAC;QAClD,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC;QAC/B,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAPW,QAAA,iBAAiB,qBAO5B;AACF,MAAM,oBAAoB,GAAG,CAAC,OAAc,EAAkB,EAAE;IAC9D,OAAO,IAAA,oDAA2B,EAAC,OAAO,CAAC;QACzC,CAAC,CAAC,2BAA2B,CAAC,OAAO,CA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AQD,SAAS,oBAAoB,CAC3B,MAAe,EACf,KAAc;IAEd,OAAO,MAAM;SACV,MAAM,CAAC,CAAC,GAAa,EAAE,CAAQ,EAAE,EAAE,WAAC,OAAA,GAAG,CAAC,MAAM,CAAC,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,WAAW,mCAAI,EAAE,CAAC,CAAA,EAAA,EAAE,EAAE,CAAC;SACzE,GAAG,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAS,2BAA2B,CAClC,KAAqB,EACrB,MAAe;;IAEf,OAAO,CAIL,MAAA,MAAA,KAAK,CAAC,mBAAmB,mCACzB,MAAA,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,2BAA2B,mCACtD,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type Stage = Record<string, any> & {
|
|
|
5
5
|
[kParent]: Stage | null;
|
|
6
6
|
};
|
|
7
7
|
export type IndexInformation = {
|
|
8
|
+
fields: Record<string, unknown>;
|
|
9
|
+
} & ({
|
|
8
10
|
shard: string;
|
|
9
11
|
index: string;
|
|
10
12
|
} | {
|
|
@@ -13,17 +15,17 @@ export type IndexInformation = {
|
|
|
13
15
|
} | {
|
|
14
16
|
shard: null;
|
|
15
17
|
index: string;
|
|
16
|
-
};
|
|
18
|
+
});
|
|
17
19
|
export declare class ExplainPlan {
|
|
18
20
|
namespace: string;
|
|
19
21
|
parsedQuery: Stage;
|
|
20
22
|
executionSuccess: boolean;
|
|
21
|
-
nReturned: number;
|
|
22
|
-
executionTimeMillis: number;
|
|
23
|
-
totalKeysExamined: number;
|
|
24
|
-
totalDocsExamined: number;
|
|
23
|
+
nReturned: number | null;
|
|
24
|
+
executionTimeMillis: number | null;
|
|
25
|
+
totalKeysExamined: number | null;
|
|
26
|
+
totalDocsExamined: number | null;
|
|
25
27
|
originalExplainData: Stage;
|
|
26
|
-
executionStats
|
|
28
|
+
executionStats?: ExecutionStats;
|
|
27
29
|
constructor(originalExplainData: Stage);
|
|
28
30
|
get usedIndexes(): IndexInformation[];
|
|
29
31
|
get isCovered(): boolean;
|
|
@@ -32,10 +34,12 @@ export declare class ExplainPlan {
|
|
|
32
34
|
get isCollectionScan(): boolean;
|
|
33
35
|
get isSharded(): boolean;
|
|
34
36
|
get numShards(): number;
|
|
37
|
+
get indexType(): "COLLSCAN" | "UNAVAILABLE" | "MULTIPLE" | "COVERED" | "INDEX";
|
|
35
38
|
findStageByName(name: string, root?: Stage): Stage | null;
|
|
36
39
|
findAllStagesByName(name: string, root?: Stage): Stage[];
|
|
37
40
|
_getStageIterator(root?: Stage): Iterable<Stage>;
|
|
38
|
-
|
|
41
|
+
serialize(): Pick<ExplainPlan, 'namespace' | 'parsedQuery' | 'executionSuccess' | 'nReturned' | 'executionTimeMillis' | 'totalKeysExamined' | 'totalDocsExamined' | 'originalExplainData' | 'executionStats' | 'usedIndexes' | 'isCovered' | 'isMultiKey' | 'inMemorySort' | 'isCollectionScan' | 'isSharded' | 'numShards' | 'indexType'>;
|
|
42
|
+
static getChildStages(stage?: Stage): Iterable<Stage>;
|
|
39
43
|
static addParentStages(stage: Stage): void;
|
|
40
44
|
static getParentStages(stage: Stage): Iterable<Stage>;
|
|
41
45
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,OAAO,eAAgC,CAAC;AAE9C,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,G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IAED,IAAI,SAAS,IAAI,OAAO,CAOvB;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,IAAI,MAAM,CAItB;IAED,IAAI,SAAS,kEAwCZ;IAaD,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI;IAmBzD,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE;IAOvD,iBAAiB,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAajD,SAAS,IAAI,IAAI,CACf,WAAW,EACT,WAAW,GACX,aAAa,GACb,kBAAkB,GAClB,WAAW,GACX,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,aAAa,GACb,WAAW,GACX,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,WAAW,CACd;IAgCD,MAAM,CAAE,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAoCtD,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAa1C,MAAM,CAAE,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;CAMvD"}
|
package/dist/index.js
CHANGED
|
@@ -10,27 +10,29 @@ const get_execution_stats_1 = require("./get-execution-stats");
|
|
|
10
10
|
const kParent = Symbol('ExplainPlan.kParent');
|
|
11
11
|
class ExplainPlan {
|
|
12
12
|
constructor(originalExplainData) {
|
|
13
|
-
var _a, _b, _c;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
14
14
|
const rawExplainObject = (0, mongodb_explain_compat_1.default)(originalExplainData);
|
|
15
15
|
const executionStats = (0, get_execution_stats_1.getExecutionStats)(rawExplainObject);
|
|
16
|
-
|
|
16
|
+
if (executionStats === null || executionStats === void 0 ? void 0 : executionStats.executionStages) {
|
|
17
|
+
ExplainPlan.addParentStages(executionStats.executionStages);
|
|
18
|
+
}
|
|
17
19
|
const qpInfo = (0, get_planner_info_1.getPlannerInfo)(rawExplainObject);
|
|
18
20
|
const esInfo = (_c = (_b = (_a = executionStats === null || executionStats === void 0 ? void 0 : executionStats.executionStages) === null || _a === void 0 ? void 0 : _a.shards) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : executionStats;
|
|
19
21
|
this.executionStats = executionStats;
|
|
20
22
|
this.namespace = qpInfo.namespace;
|
|
21
23
|
this.parsedQuery = qpInfo.parsedQuery;
|
|
22
24
|
this.executionSuccess = esInfo.executionSuccess;
|
|
23
|
-
this.nReturned = executionStats.nReturned;
|
|
24
|
-
this.executionTimeMillis = executionStats.executionTimeMillis;
|
|
25
|
-
this.totalKeysExamined = executionStats.totalKeysExamined;
|
|
26
|
-
this.totalDocsExamined = executionStats.totalDocsExamined;
|
|
25
|
+
this.nReturned = (_d = executionStats === null || executionStats === void 0 ? void 0 : executionStats.nReturned) !== null && _d !== void 0 ? _d : null;
|
|
26
|
+
this.executionTimeMillis = (_e = executionStats === null || executionStats === void 0 ? void 0 : executionStats.executionTimeMillis) !== null && _e !== void 0 ? _e : null;
|
|
27
|
+
this.totalKeysExamined = (_f = executionStats === null || executionStats === void 0 ? void 0 : executionStats.totalKeysExamined) !== null && _f !== void 0 ? _f : null;
|
|
28
|
+
this.totalDocsExamined = (_g = executionStats === null || executionStats === void 0 ? void 0 : executionStats.totalDocsExamined) !== null && _g !== void 0 ? _g : null;
|
|
27
29
|
this.originalExplainData = originalExplainData;
|
|
28
30
|
}
|
|
29
31
|
get usedIndexes() {
|
|
30
|
-
var _a;
|
|
32
|
+
var _a, _b, _c, _d, _e;
|
|
31
33
|
const ixscan = this.findAllStagesByName('IXSCAN');
|
|
32
34
|
const idhack = this.findStageByName('IDHACK');
|
|
33
|
-
const ret = (_a = this.executionStats.stageIndexes) !== null &&
|
|
35
|
+
const ret = (_b = (_a = this.executionStats) === null || _a === void 0 ? void 0 : _a.stageIndexes) !== null && _b !== void 0 ? _b : [];
|
|
34
36
|
for (const stage of [...ixscan, idhack]) {
|
|
35
37
|
if (!stage)
|
|
36
38
|
continue;
|
|
@@ -44,19 +46,20 @@ class ExplainPlan {
|
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
const index = stage === idhack ? '_id_' : stage.indexName;
|
|
47
|
-
|
|
49
|
+
const fields = stage === idhack ? { _id: 1 } : (_c = stage.keyPattern) !== null && _c !== void 0 ? _c : {};
|
|
50
|
+
ret.push({ index, shard, fields });
|
|
48
51
|
}
|
|
49
52
|
if (this.isSharded) {
|
|
50
|
-
for (const shard of this.executionStats.executionStages.shards) {
|
|
53
|
+
for (const shard of (_e = (_d = this.executionStats) === null || _d === void 0 ? void 0 : _d.executionStages) === null || _e === void 0 ? void 0 : _e.shards) {
|
|
51
54
|
if (!ret.some((indexInfo) => indexInfo.shard === shard.shardName)) {
|
|
52
|
-
ret.push({ index: null, shard: shard.shardName });
|
|
55
|
+
ret.push({ index: null, shard: shard.shardName, fields: {} });
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
return ret.filter((indexInfo, index, arr) => arr.findIndex((i) => i.index === indexInfo.index && i.shard === indexInfo.shard) === index);
|
|
57
60
|
}
|
|
58
61
|
get isCovered() {
|
|
59
|
-
if (this.totalDocsExamined > 0) {
|
|
62
|
+
if (this.totalDocsExamined && this.totalDocsExamined > 0) {
|
|
60
63
|
return false;
|
|
61
64
|
}
|
|
62
65
|
const ixscan = this.findStageByName('IXSCAN');
|
|
@@ -72,13 +75,47 @@ class ExplainPlan {
|
|
|
72
75
|
return this.findStageByName('COLLSCAN') !== null;
|
|
73
76
|
}
|
|
74
77
|
get isSharded() {
|
|
75
|
-
|
|
78
|
+
var _a, _b;
|
|
79
|
+
return !!((_b = (_a = this.executionStats) === null || _a === void 0 ? void 0 : _a.executionStages) === null || _b === void 0 ? void 0 : _b.shards);
|
|
76
80
|
}
|
|
77
81
|
get numShards() {
|
|
82
|
+
var _a, _b;
|
|
78
83
|
return this.isSharded
|
|
79
|
-
? this.executionStats.executionStages.shards.length
|
|
84
|
+
? (_b = (_a = this.executionStats) === null || _a === void 0 ? void 0 : _a.executionStages) === null || _b === void 0 ? void 0 : _b.shards.length
|
|
80
85
|
: 0;
|
|
81
86
|
}
|
|
87
|
+
get indexType() {
|
|
88
|
+
const indexes = this.usedIndexes;
|
|
89
|
+
if (indexes.length === 0) {
|
|
90
|
+
return 'UNAVAILABLE';
|
|
91
|
+
}
|
|
92
|
+
const indexInfoByShard = indexes.reduce((acc, index) => {
|
|
93
|
+
var _a;
|
|
94
|
+
var _b;
|
|
95
|
+
if (index.shard) {
|
|
96
|
+
(_a = acc[_b = index.shard]) !== null && _a !== void 0 ? _a : (acc[_b] = []);
|
|
97
|
+
acc[index.shard].push(index.index);
|
|
98
|
+
}
|
|
99
|
+
return acc;
|
|
100
|
+
}, {});
|
|
101
|
+
const indexNamesForAllShards = Object.values(indexInfoByShard);
|
|
102
|
+
for (let i = 0; i < indexNamesForAllShards.length; i++) {
|
|
103
|
+
for (let j = i + 1; j < indexNamesForAllShards.length; j++) {
|
|
104
|
+
if (indexNamesForAllShards[i].length !==
|
|
105
|
+
indexNamesForAllShards[j].length ||
|
|
106
|
+
indexNamesForAllShards[i].some((val, idx) => val !== indexNamesForAllShards[j][idx])) {
|
|
107
|
+
return 'MULTIPLE';
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (this.isCollectionScan) {
|
|
112
|
+
return 'COLLSCAN';
|
|
113
|
+
}
|
|
114
|
+
if (this.isCovered) {
|
|
115
|
+
return 'COVERED';
|
|
116
|
+
}
|
|
117
|
+
return 'INDEX';
|
|
118
|
+
}
|
|
82
119
|
findStageByName(name, root) {
|
|
83
120
|
for (const stage of this._getStageIterator(root)) {
|
|
84
121
|
if (stage.stage === name) {
|
|
@@ -91,13 +128,41 @@ class ExplainPlan {
|
|
|
91
128
|
return [...this._getStageIterator(root)].filter((stage) => stage.stage === name);
|
|
92
129
|
}
|
|
93
130
|
*_getStageIterator(root) {
|
|
94
|
-
|
|
131
|
+
var _a;
|
|
132
|
+
const stage = root !== null && root !== void 0 ? root : (_a = this.executionStats) === null || _a === void 0 ? void 0 : _a.executionStages;
|
|
133
|
+
if (!stage) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
95
136
|
yield stage;
|
|
96
137
|
for (const child of ExplainPlan.getChildStages(stage)) {
|
|
97
138
|
yield* this._getStageIterator(child);
|
|
98
139
|
}
|
|
99
140
|
}
|
|
141
|
+
serialize() {
|
|
142
|
+
return JSON.parse(JSON.stringify({
|
|
143
|
+
namespace: this.namespace,
|
|
144
|
+
parsedQuery: this.parsedQuery,
|
|
145
|
+
executionSuccess: this.executionSuccess,
|
|
146
|
+
nReturned: this.nReturned,
|
|
147
|
+
executionTimeMillis: this.executionTimeMillis,
|
|
148
|
+
totalKeysExamined: this.totalKeysExamined,
|
|
149
|
+
totalDocsExamined: this.totalDocsExamined,
|
|
150
|
+
originalExplainData: this.originalExplainData,
|
|
151
|
+
executionStats: this.executionStats,
|
|
152
|
+
usedIndexes: this.usedIndexes,
|
|
153
|
+
isCovered: this.isCovered,
|
|
154
|
+
isMultiKey: this.isMultiKey,
|
|
155
|
+
inMemorySort: this.inMemorySort,
|
|
156
|
+
isCollectionScan: this.isCollectionScan,
|
|
157
|
+
isSharded: this.isSharded,
|
|
158
|
+
numShards: this.numShards,
|
|
159
|
+
indexType: this.indexType,
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
100
162
|
static *getChildStages(stage) {
|
|
163
|
+
if (!stage) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
101
166
|
if (stage.inputStage) {
|
|
102
167
|
yield stage.inputStage;
|
|
103
168
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,oFAA0D;AAC1D,yDAAoD;AACpD,+DAA0D;AAG1D,MAAM,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,oFAA0D;AAC1D,yDAAoD;AACpD,+DAA0D;AAG1D,MAAM,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAY9C,MAAa,WAAW;IAWtB,YAAY,mBAA0B;;QACpC,MAAM,gBAAgB,GAAG,IAAA,gCAAoB,EAAC,mBAAmB,CAAC,CAAC;QACnE,MAAM,cAAc,GAAG,IAAA,uCAAiB,EAAC,gBAAgB,CAAC,CAAC;QAC3D,IAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,EAAE;YACnC,WAAW,CAAC,eAAe,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;SAC7D;QACD,MAAM,MAAM,GAAG,IAAA,iCAAc,EAAC,gBAAgB,CAAC,CAAC;QAChD,MAAM,MAAM,GACV,MAAA,MAAA,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,0CAAE,MAAM,0CAAG,CAAC,CAAC,mCAAI,cAAc,CAAC;QACjE,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,MAAA,cAAc,aAAd,cA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,IAAI,KAAK,CAAC,UAAU,EAAE;YACpB,MAAM,KAAK,CAAC,UAAU,CAAC;SACxB;QACD,IAAI,KAAK,CAAC,SAAS,EAAE;YACnB,MAAM,KAAK,CAAC,SAAS,CAAC;SACvB;QACD,IAAI,KAAK,CAAC,SAAS,EAAE;YACnB,MAAM,KAAK,CAAC,SAAS,CAAC;SACvB;QACD,IAAI,KAAK,CAAC,MAAM,EAAE;YAChB,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;SACrB;QACD,IAAI,KAAK,CAAC,WAAW,EAAE;YACrB,KAAK,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;SAC1B;IACH,CAAC;IAOD,MAAM,CAAC,eAAe,CAAC,KAAY;QACjC,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;QACtB,KAAK,MAAM,KAAK,IAAI,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;YACrD,WAAW,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;YACnC,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;SACxB;IACH,CAAC;IAOD,MAAM,CAAC,CAAC,eAAe,CAAC,KAAY;QAClC,IAAI,OAAO,GAAiB,KAAK,CAAC;QAClC,OAAO,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,OAAO,CAAC,CAAC,EAAE;YACrC,MAAM,OAAO,CAAC;SACf;IACH,CAAC;CACF;AAvSD,kCAuSC"}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"email": "compass@mongodb.com"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/mongodb-js/compass",
|
|
16
|
-
"version": "1.0.
|
|
16
|
+
"version": "1.0.7",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/mongodb-js/compass.git"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"mongodb-explain-compat": "^3.0.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@mongodb-js/eslint-config-compass": "^1.0.
|
|
56
|
-
"@mongodb-js/mocha-config-compass": "^1.
|
|
55
|
+
"@mongodb-js/eslint-config-compass": "^1.0.6",
|
|
56
|
+
"@mongodb-js/mocha-config-compass": "^1.2.0",
|
|
57
57
|
"@mongodb-js/prettier-config-compass": "^1.0.0",
|
|
58
58
|
"@mongodb-js/tsconfig-compass": "^1.0.2",
|
|
59
59
|
"@types/chai": "^4.2.21",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"sinon": "^9.2.3",
|
|
69
69
|
"typescript": "^5.0.4"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "1d02bfb24078b4391bee7a83e34cb3d7da39a731"
|
|
72
72
|
}
|