@mongodb-js/compass-shell 3.2.0 → 3.3.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.
- package/lib/1.js +7573 -10194
- package/lib/2.js +36 -87
- package/lib/index.js +248 -290
- package/package.json +9 -10
package/lib/index.js
CHANGED
|
@@ -2146,7 +2146,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2146
2146
|
exports.resolveBSONOptions = exports.pluckBSONSerializeOptions = exports.BSON = exports.Timestamp = exports.ObjectId = exports.MinKey = exports.MaxKey = exports.Map = exports.Long = exports.Int32 = exports.Double = exports.Decimal128 = exports.DBRef = exports.Code = exports.BSONSymbol = exports.BSONRegExp = exports.Binary = exports.calculateObjectSize = exports.serialize = exports.deserialize = void 0;
|
|
2147
2147
|
/** @internal */
|
|
2148
2148
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2149
|
-
let BSON = __webpack_require__(
|
|
2149
|
+
let BSON = __webpack_require__(49);
|
|
2150
2150
|
exports.BSON = BSON;
|
|
2151
2151
|
try {
|
|
2152
2152
|
// Ensure you always wrap an optional require in the try block NODE-3199
|
|
@@ -2159,7 +2159,7 @@ exports.deserialize = BSON.deserialize;
|
|
|
2159
2159
|
exports.serialize = BSON.serialize;
|
|
2160
2160
|
/** @internal */
|
|
2161
2161
|
exports.calculateObjectSize = BSON.calculateObjectSize;
|
|
2162
|
-
var bson_1 = __webpack_require__(
|
|
2162
|
+
var bson_1 = __webpack_require__(49);
|
|
2163
2163
|
Object.defineProperty(exports, "Binary", { enumerable: true, get: function () { return bson_1.Binary; } });
|
|
2164
2164
|
Object.defineProperty(exports, "BSONRegExp", { enumerable: true, get: function () { return bson_1.BSONRegExp; } });
|
|
2165
2165
|
Object.defineProperty(exports, "BSONSymbol", { enumerable: true, get: function () { return bson_1.BSONSymbol; } });
|
|
@@ -4146,7 +4146,7 @@ const bson_1 = __webpack_require__(4);
|
|
|
4146
4146
|
const ordered_1 = __webpack_require__(91);
|
|
4147
4147
|
const unordered_1 = __webpack_require__(97);
|
|
4148
4148
|
const change_stream_1 = __webpack_require__(29);
|
|
4149
|
-
const aggregation_cursor_1 = __webpack_require__(
|
|
4149
|
+
const aggregation_cursor_1 = __webpack_require__(56);
|
|
4150
4150
|
const find_cursor_1 = __webpack_require__(102);
|
|
4151
4151
|
const list_indexes_cursor_1 = __webpack_require__(104);
|
|
4152
4152
|
const error_1 = __webpack_require__(0);
|
|
@@ -4764,7 +4764,7 @@ const util_1 = __webpack_require__(14);
|
|
|
4764
4764
|
const collection_1 = __webpack_require__(24);
|
|
4765
4765
|
const constants_1 = __webpack_require__(7);
|
|
4766
4766
|
const change_stream_cursor_1 = __webpack_require__(109);
|
|
4767
|
-
const db_1 = __webpack_require__(
|
|
4767
|
+
const db_1 = __webpack_require__(59);
|
|
4768
4768
|
const error_1 = __webpack_require__(0);
|
|
4769
4769
|
const mongo_client_1 = __webpack_require__(30);
|
|
4770
4770
|
const mongo_types_1 = __webpack_require__(8);
|
|
@@ -5142,8 +5142,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5142
5142
|
exports.MongoClient = exports.ServerApiVersion = void 0;
|
|
5143
5143
|
const bson_1 = __webpack_require__(4);
|
|
5144
5144
|
const change_stream_1 = __webpack_require__(29);
|
|
5145
|
-
const connection_string_1 = __webpack_require__(
|
|
5146
|
-
const db_1 = __webpack_require__(
|
|
5145
|
+
const connection_string_1 = __webpack_require__(60);
|
|
5146
|
+
const db_1 = __webpack_require__(59);
|
|
5147
5147
|
const error_1 = __webpack_require__(0);
|
|
5148
5148
|
const mongo_types_1 = __webpack_require__(8);
|
|
5149
5149
|
const connect_1 = __webpack_require__(213);
|
|
@@ -8220,7 +8220,7 @@ const mongo_types_1 = __webpack_require__(8);
|
|
|
8220
8220
|
const sessions_1 = __webpack_require__(37);
|
|
8221
8221
|
const utils_1 = __webpack_require__(1);
|
|
8222
8222
|
const command_monitoring_events_1 = __webpack_require__(117);
|
|
8223
|
-
const commands_1 = __webpack_require__(
|
|
8223
|
+
const commands_1 = __webpack_require__(64);
|
|
8224
8224
|
const message_stream_1 = __webpack_require__(215);
|
|
8225
8225
|
const stream_description_1 = __webpack_require__(216);
|
|
8226
8226
|
const shared_1 = __webpack_require__(99);
|
|
@@ -8817,24 +8817,25 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
8817
8817
|
* The prefix.
|
|
8818
8818
|
*/
|
|
8819
8819
|
const PREFIX = '@mongodb-js/mongodb-redux-common/app-registry';
|
|
8820
|
+
|
|
8820
8821
|
/**
|
|
8821
8822
|
* Local app registry activated.
|
|
8822
8823
|
*/
|
|
8823
|
-
|
|
8824
8824
|
const LOCAL_APP_REGISTRY_ACTIVATED = `${PREFIX}/LOCAL_APP_REGISTRY_ACTIVATED`;
|
|
8825
|
+
|
|
8825
8826
|
/**
|
|
8826
8827
|
* Global app registry activated.
|
|
8827
8828
|
*/
|
|
8828
|
-
|
|
8829
8829
|
const GLOBAL_APP_REGISTRY_ACTIVATED = `${PREFIX}/GLOBAL_APP_REGISTRY_ACTIVATED`;
|
|
8830
|
+
|
|
8830
8831
|
/**
|
|
8831
8832
|
* The initial state.
|
|
8832
8833
|
*/
|
|
8833
|
-
|
|
8834
8834
|
const INITIAL_STATE = {
|
|
8835
8835
|
localAppRegistry: null,
|
|
8836
8836
|
globalAppRegistry: null
|
|
8837
8837
|
};
|
|
8838
|
+
|
|
8838
8839
|
/**
|
|
8839
8840
|
* Reducer function for handle state changes to the app registry.
|
|
8840
8841
|
*
|
|
@@ -8843,20 +8844,21 @@ const INITIAL_STATE = {
|
|
|
8843
8844
|
*
|
|
8844
8845
|
* @returns {String} The new state.
|
|
8845
8846
|
*/
|
|
8846
|
-
|
|
8847
8847
|
const reducer = (state = INITIAL_STATE, action) => {
|
|
8848
8848
|
if (action.type === LOCAL_APP_REGISTRY_ACTIVATED) {
|
|
8849
|
-
return {
|
|
8849
|
+
return {
|
|
8850
|
+
...state,
|
|
8850
8851
|
localAppRegistry: action.appRegistry
|
|
8851
8852
|
};
|
|
8852
8853
|
} else if (action.type === GLOBAL_APP_REGISTRY_ACTIVATED) {
|
|
8853
|
-
return {
|
|
8854
|
+
return {
|
|
8855
|
+
...state,
|
|
8854
8856
|
globalAppRegistry: action.appRegistry
|
|
8855
8857
|
};
|
|
8856
8858
|
}
|
|
8857
|
-
|
|
8858
8859
|
return state;
|
|
8859
8860
|
};
|
|
8861
|
+
|
|
8860
8862
|
/**
|
|
8861
8863
|
* Action creator for local app registry activated events.
|
|
8862
8864
|
*
|
|
@@ -8864,12 +8866,11 @@ const reducer = (state = INITIAL_STATE, action) => {
|
|
|
8864
8866
|
*
|
|
8865
8867
|
* @returns {Object} The app registry activated event.
|
|
8866
8868
|
*/
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
8869
|
const localAppRegistryActivated = appRegistry => ({
|
|
8870
8870
|
type: LOCAL_APP_REGISTRY_ACTIVATED,
|
|
8871
8871
|
appRegistry: appRegistry
|
|
8872
8872
|
});
|
|
8873
|
+
|
|
8873
8874
|
/**
|
|
8874
8875
|
* Action creator for global app registry activated events.
|
|
8875
8876
|
*
|
|
@@ -8877,12 +8878,11 @@ const localAppRegistryActivated = appRegistry => ({
|
|
|
8877
8878
|
*
|
|
8878
8879
|
* @returns {Object} The app registry activated event.
|
|
8879
8880
|
*/
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
8881
|
const globalAppRegistryActivated = appRegistry => ({
|
|
8883
8882
|
type: GLOBAL_APP_REGISTRY_ACTIVATED,
|
|
8884
8883
|
appRegistry: appRegistry
|
|
8885
8884
|
});
|
|
8885
|
+
|
|
8886
8886
|
/**
|
|
8887
8887
|
* Emit an event on the provided app registry.
|
|
8888
8888
|
*
|
|
@@ -8890,13 +8890,12 @@ const globalAppRegistryActivated = appRegistry => ({
|
|
|
8890
8890
|
* @param {String} name - The event name.
|
|
8891
8891
|
* @param {Object} metadata - The event metadata.
|
|
8892
8892
|
*/
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
8893
|
const appRegistryEmit = (appRegistry, name, ...metadata) => {
|
|
8896
8894
|
if (appRegistry) {
|
|
8897
8895
|
appRegistry.emit(name, ...metadata);
|
|
8898
8896
|
}
|
|
8899
8897
|
};
|
|
8898
|
+
|
|
8900
8899
|
/**
|
|
8901
8900
|
* Emit an event to the local app registry.
|
|
8902
8901
|
*
|
|
@@ -8905,13 +8904,12 @@ const appRegistryEmit = (appRegistry, name, ...metadata) => {
|
|
|
8905
8904
|
*
|
|
8906
8905
|
* @returns {Function} The thunk function.
|
|
8907
8906
|
*/
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
8907
|
const localAppRegistryEmit = (name, ...metadata) => {
|
|
8911
8908
|
return (dispatch, getState) => {
|
|
8912
8909
|
appRegistryEmit(getState().appRegistry.localAppRegistry, name, ...metadata);
|
|
8913
8910
|
};
|
|
8914
8911
|
};
|
|
8912
|
+
|
|
8915
8913
|
/**
|
|
8916
8914
|
* Emit an event to the app registry.
|
|
8917
8915
|
*
|
|
@@ -8920,14 +8918,11 @@ const localAppRegistryEmit = (name, ...metadata) => {
|
|
|
8920
8918
|
*
|
|
8921
8919
|
* @returns {Function} The thunk function.
|
|
8922
8920
|
*/
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
8921
|
const globalAppRegistryEmit = (name, ...metadata) => {
|
|
8926
8922
|
return (dispatch, getState) => {
|
|
8927
8923
|
appRegistryEmit(getState().appRegistry.globalAppRegistry, name, ...metadata);
|
|
8928
8924
|
};
|
|
8929
8925
|
};
|
|
8930
|
-
|
|
8931
8926
|
module.exports = reducer;
|
|
8932
8927
|
module.exports.LOCAL_APP_REGISTRY_ACTIVATED = LOCAL_APP_REGISTRY_ACTIVATED;
|
|
8933
8928
|
module.exports.GLOBAL_APP_REGISTRY_ACTIVATED = GLOBAL_APP_REGISTRY_ACTIVATED;
|
|
@@ -8943,116 +8938,6 @@ module.exports.globalAppRegistryEmit = globalAppRegistryEmit;
|
|
|
8943
8938
|
|
|
8944
8939
|
"use strict";
|
|
8945
8940
|
|
|
8946
|
-
|
|
8947
|
-
var reactIs = __webpack_require__(140);
|
|
8948
|
-
|
|
8949
|
-
/**
|
|
8950
|
-
* Copyright 2015, Yahoo! Inc.
|
|
8951
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
8952
|
-
*/
|
|
8953
|
-
var REACT_STATICS = {
|
|
8954
|
-
childContextTypes: true,
|
|
8955
|
-
contextType: true,
|
|
8956
|
-
contextTypes: true,
|
|
8957
|
-
defaultProps: true,
|
|
8958
|
-
displayName: true,
|
|
8959
|
-
getDefaultProps: true,
|
|
8960
|
-
getDerivedStateFromError: true,
|
|
8961
|
-
getDerivedStateFromProps: true,
|
|
8962
|
-
mixins: true,
|
|
8963
|
-
propTypes: true,
|
|
8964
|
-
type: true
|
|
8965
|
-
};
|
|
8966
|
-
var KNOWN_STATICS = {
|
|
8967
|
-
name: true,
|
|
8968
|
-
length: true,
|
|
8969
|
-
prototype: true,
|
|
8970
|
-
caller: true,
|
|
8971
|
-
callee: true,
|
|
8972
|
-
arguments: true,
|
|
8973
|
-
arity: true
|
|
8974
|
-
};
|
|
8975
|
-
var FORWARD_REF_STATICS = {
|
|
8976
|
-
'$$typeof': true,
|
|
8977
|
-
render: true,
|
|
8978
|
-
defaultProps: true,
|
|
8979
|
-
displayName: true,
|
|
8980
|
-
propTypes: true
|
|
8981
|
-
};
|
|
8982
|
-
var MEMO_STATICS = {
|
|
8983
|
-
'$$typeof': true,
|
|
8984
|
-
compare: true,
|
|
8985
|
-
defaultProps: true,
|
|
8986
|
-
displayName: true,
|
|
8987
|
-
propTypes: true,
|
|
8988
|
-
type: true
|
|
8989
|
-
};
|
|
8990
|
-
var TYPE_STATICS = {};
|
|
8991
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
8992
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
8993
|
-
|
|
8994
|
-
function getStatics(component) {
|
|
8995
|
-
// React v16.11 and below
|
|
8996
|
-
if (reactIs.isMemo(component)) {
|
|
8997
|
-
return MEMO_STATICS;
|
|
8998
|
-
} // React v16.12 and above
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
9002
|
-
}
|
|
9003
|
-
|
|
9004
|
-
var defineProperty = Object.defineProperty;
|
|
9005
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
9006
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
9007
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
9008
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
9009
|
-
var objectPrototype = Object.prototype;
|
|
9010
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
9011
|
-
if (typeof sourceComponent !== 'string') {
|
|
9012
|
-
// don't hoist over string (html) components
|
|
9013
|
-
if (objectPrototype) {
|
|
9014
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
9015
|
-
|
|
9016
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
9017
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
9018
|
-
}
|
|
9019
|
-
}
|
|
9020
|
-
|
|
9021
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
9022
|
-
|
|
9023
|
-
if (getOwnPropertySymbols) {
|
|
9024
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
9025
|
-
}
|
|
9026
|
-
|
|
9027
|
-
var targetStatics = getStatics(targetComponent);
|
|
9028
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
9029
|
-
|
|
9030
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
9031
|
-
var key = keys[i];
|
|
9032
|
-
|
|
9033
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
9034
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
9035
|
-
|
|
9036
|
-
try {
|
|
9037
|
-
// Avoid failures from read-only properties
|
|
9038
|
-
defineProperty(targetComponent, key, descriptor);
|
|
9039
|
-
} catch (e) {}
|
|
9040
|
-
}
|
|
9041
|
-
}
|
|
9042
|
-
}
|
|
9043
|
-
|
|
9044
|
-
return targetComponent;
|
|
9045
|
-
}
|
|
9046
|
-
|
|
9047
|
-
module.exports = hoistNonReactStatics;
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
/***/ }),
|
|
9051
|
-
/* 45 */
|
|
9052
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9053
|
-
|
|
9054
|
-
"use strict";
|
|
9055
|
-
|
|
9056
8941
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9057
8942
|
exports.CommaAndColonSeparatedRecord = exports.ConnectionString = exports.redactConnectionString = void 0;
|
|
9058
8943
|
const whatwg_url_1 = __webpack_require__(149);
|
|
@@ -9267,7 +9152,7 @@ exports.default = ConnectionString;
|
|
|
9267
9152
|
//# sourceMappingURL=index.js.map
|
|
9268
9153
|
|
|
9269
9154
|
/***/ }),
|
|
9270
|
-
/*
|
|
9155
|
+
/* 45 */
|
|
9271
9156
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9272
9157
|
|
|
9273
9158
|
"use strict";
|
|
@@ -9724,7 +9609,7 @@ exports.DOMTimeStamp = exports["unsigned long long"];
|
|
|
9724
9609
|
|
|
9725
9610
|
|
|
9726
9611
|
/***/ }),
|
|
9727
|
-
/*
|
|
9612
|
+
/* 46 */
|
|
9728
9613
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9729
9614
|
|
|
9730
9615
|
"use strict";
|
|
@@ -9921,7 +9806,7 @@ module.exports = exports = {
|
|
|
9921
9806
|
|
|
9922
9807
|
|
|
9923
9808
|
/***/ }),
|
|
9924
|
-
/*
|
|
9809
|
+
/* 47 */
|
|
9925
9810
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9926
9811
|
|
|
9927
9812
|
"use strict";
|
|
@@ -9944,13 +9829,13 @@ module.exports = {
|
|
|
9944
9829
|
|
|
9945
9830
|
|
|
9946
9831
|
/***/ }),
|
|
9947
|
-
/*
|
|
9832
|
+
/* 48 */
|
|
9948
9833
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9949
9834
|
|
|
9950
9835
|
"use strict";
|
|
9951
9836
|
|
|
9952
9837
|
const { isASCIIHex } = __webpack_require__(74);
|
|
9953
|
-
const { utf8Encode } = __webpack_require__(
|
|
9838
|
+
const { utf8Encode } = __webpack_require__(47);
|
|
9954
9839
|
|
|
9955
9840
|
function p(char) {
|
|
9956
9841
|
return char.codePointAt(0);
|
|
@@ -10093,7 +9978,7 @@ module.exports = {
|
|
|
10093
9978
|
|
|
10094
9979
|
|
|
10095
9980
|
/***/ }),
|
|
10096
|
-
/*
|
|
9981
|
+
/* 49 */
|
|
10097
9982
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10098
9983
|
|
|
10099
9984
|
"use strict";
|
|
@@ -17631,19 +17516,19 @@ var BSON = {
|
|
|
17631
17516
|
|
|
17632
17517
|
|
|
17633
17518
|
/***/ }),
|
|
17634
|
-
/*
|
|
17519
|
+
/* 50 */
|
|
17635
17520
|
/***/ (function(module, exports) {
|
|
17636
17521
|
|
|
17637
17522
|
module.exports = require("zlib");
|
|
17638
17523
|
|
|
17639
17524
|
/***/ }),
|
|
17640
|
-
/*
|
|
17525
|
+
/* 51 */
|
|
17641
17526
|
/***/ (function(module, exports) {
|
|
17642
17527
|
|
|
17643
17528
|
module.exports = require("tls");
|
|
17644
17529
|
|
|
17645
17530
|
/***/ }),
|
|
17646
|
-
/*
|
|
17531
|
+
/* 52 */
|
|
17647
17532
|
/***/ (function(module, exports, __webpack_require__) {
|
|
17648
17533
|
|
|
17649
17534
|
"use strict";
|
|
@@ -18100,7 +17985,7 @@ exports.DOMTimeStamp = exports["unsigned long long"];
|
|
|
18100
17985
|
|
|
18101
17986
|
|
|
18102
17987
|
/***/ }),
|
|
18103
|
-
/*
|
|
17988
|
+
/* 53 */
|
|
18104
17989
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18105
17990
|
|
|
18106
17991
|
"use strict";
|
|
@@ -18297,7 +18182,7 @@ module.exports = exports = {
|
|
|
18297
18182
|
|
|
18298
18183
|
|
|
18299
18184
|
/***/ }),
|
|
18300
|
-
/*
|
|
18185
|
+
/* 54 */
|
|
18301
18186
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18302
18187
|
|
|
18303
18188
|
"use strict";
|
|
@@ -18320,13 +18205,13 @@ module.exports = {
|
|
|
18320
18205
|
|
|
18321
18206
|
|
|
18322
18207
|
/***/ }),
|
|
18323
|
-
/*
|
|
18208
|
+
/* 55 */
|
|
18324
18209
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18325
18210
|
|
|
18326
18211
|
"use strict";
|
|
18327
18212
|
|
|
18328
18213
|
const { isASCIIHex } = __webpack_require__(79);
|
|
18329
|
-
const { utf8Encode } = __webpack_require__(
|
|
18214
|
+
const { utf8Encode } = __webpack_require__(54);
|
|
18330
18215
|
|
|
18331
18216
|
function p(char) {
|
|
18332
18217
|
return char.codePointAt(0);
|
|
@@ -18469,14 +18354,14 @@ module.exports = {
|
|
|
18469
18354
|
|
|
18470
18355
|
|
|
18471
18356
|
/***/ }),
|
|
18472
|
-
/*
|
|
18357
|
+
/* 56 */
|
|
18473
18358
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18474
18359
|
|
|
18475
18360
|
"use strict";
|
|
18476
18361
|
|
|
18477
18362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18478
18363
|
exports.AggregationCursor = void 0;
|
|
18479
|
-
const aggregate_1 = __webpack_require__(
|
|
18364
|
+
const aggregate_1 = __webpack_require__(57);
|
|
18480
18365
|
const execute_operation_1 = __webpack_require__(12);
|
|
18481
18366
|
const utils_1 = __webpack_require__(1);
|
|
18482
18367
|
const abstract_cursor_1 = __webpack_require__(16);
|
|
@@ -18647,7 +18532,7 @@ exports.AggregationCursor = AggregationCursor;
|
|
|
18647
18532
|
//# sourceMappingURL=aggregation_cursor.js.map
|
|
18648
18533
|
|
|
18649
18534
|
/***/ }),
|
|
18650
|
-
/*
|
|
18535
|
+
/* 57 */
|
|
18651
18536
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18652
18537
|
|
|
18653
18538
|
"use strict";
|
|
@@ -18743,7 +18628,7 @@ exports.AggregateOperation = AggregateOperation;
|
|
|
18743
18628
|
//# sourceMappingURL=aggregate.js.map
|
|
18744
18629
|
|
|
18745
18630
|
/***/ }),
|
|
18746
|
-
/*
|
|
18631
|
+
/* 58 */
|
|
18747
18632
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18748
18633
|
|
|
18749
18634
|
"use strict";
|
|
@@ -18846,7 +18731,7 @@ exports.formatSort = formatSort;
|
|
|
18846
18731
|
//# sourceMappingURL=sort.js.map
|
|
18847
18732
|
|
|
18848
18733
|
/***/ }),
|
|
18849
|
-
/*
|
|
18734
|
+
/* 59 */
|
|
18850
18735
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18851
18736
|
|
|
18852
18737
|
"use strict";
|
|
@@ -18858,7 +18743,7 @@ const bson_1 = __webpack_require__(4);
|
|
|
18858
18743
|
const change_stream_1 = __webpack_require__(29);
|
|
18859
18744
|
const collection_1 = __webpack_require__(24);
|
|
18860
18745
|
const CONSTANTS = __webpack_require__(7);
|
|
18861
|
-
const aggregation_cursor_1 = __webpack_require__(
|
|
18746
|
+
const aggregation_cursor_1 = __webpack_require__(56);
|
|
18862
18747
|
const list_collections_cursor_1 = __webpack_require__(110);
|
|
18863
18748
|
const error_1 = __webpack_require__(0);
|
|
18864
18749
|
const logger_1 = __webpack_require__(17);
|
|
@@ -19189,7 +19074,7 @@ function validateDatabaseName(databaseName) {
|
|
|
19189
19074
|
//# sourceMappingURL=db.js.map
|
|
19190
19075
|
|
|
19191
19076
|
/***/ }),
|
|
19192
|
-
/*
|
|
19077
|
+
/* 60 */
|
|
19193
19078
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19194
19079
|
|
|
19195
19080
|
"use strict";
|
|
@@ -19198,11 +19083,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19198
19083
|
exports.FEATURE_FLAGS = exports.DEFAULT_OPTIONS = exports.OPTIONS = exports.parseOptions = exports.checkTLSOptions = exports.resolveSRVRecord = void 0;
|
|
19199
19084
|
const dns = __webpack_require__(21);
|
|
19200
19085
|
const fs = __webpack_require__(13);
|
|
19201
|
-
const mongodb_connection_string_url_1 = __webpack_require__(
|
|
19086
|
+
const mongodb_connection_string_url_1 = __webpack_require__(44);
|
|
19202
19087
|
const url_1 = __webpack_require__(33);
|
|
19203
19088
|
const mongo_credentials_1 = __webpack_require__(112);
|
|
19204
19089
|
const providers_1 = __webpack_require__(25);
|
|
19205
|
-
const compression_1 = __webpack_require__(
|
|
19090
|
+
const compression_1 = __webpack_require__(62);
|
|
19206
19091
|
const encrypter_1 = __webpack_require__(212);
|
|
19207
19092
|
const error_1 = __webpack_require__(0);
|
|
19208
19093
|
const logger_1 = __webpack_require__(17);
|
|
@@ -20293,7 +20178,7 @@ exports.FEATURE_FLAGS = new Set([Symbol.for('@@mdb.skipPingOnConnect')]);
|
|
|
20293
20178
|
//# sourceMappingURL=connection_string.js.map
|
|
20294
20179
|
|
|
20295
20180
|
/***/ }),
|
|
20296
|
-
/*
|
|
20181
|
+
/* 61 */
|
|
20297
20182
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20298
20183
|
|
|
20299
20184
|
"use strict";
|
|
@@ -20489,14 +20374,14 @@ exports.resolveCname = resolveCname;
|
|
|
20489
20374
|
//# sourceMappingURL=gssapi.js.map
|
|
20490
20375
|
|
|
20491
20376
|
/***/ }),
|
|
20492
|
-
/*
|
|
20377
|
+
/* 62 */
|
|
20493
20378
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20494
20379
|
|
|
20495
20380
|
"use strict";
|
|
20496
20381
|
|
|
20497
20382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20498
20383
|
exports.decompress = exports.compress = exports.uncompressibleCommands = exports.Compressor = void 0;
|
|
20499
|
-
const zlib = __webpack_require__(
|
|
20384
|
+
const zlib = __webpack_require__(50);
|
|
20500
20385
|
const constants_1 = __webpack_require__(7);
|
|
20501
20386
|
const deps_1 = __webpack_require__(31);
|
|
20502
20387
|
const error_1 = __webpack_require__(0);
|
|
@@ -20591,7 +20476,7 @@ exports.decompress = decompress;
|
|
|
20591
20476
|
//# sourceMappingURL=compression.js.map
|
|
20592
20477
|
|
|
20593
20478
|
/***/ }),
|
|
20594
|
-
/*
|
|
20479
|
+
/* 63 */
|
|
20595
20480
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20596
20481
|
|
|
20597
20482
|
"use strict";
|
|
@@ -20722,7 +20607,7 @@ exports.ServerHeartbeatFailedEvent = ServerHeartbeatFailedEvent;
|
|
|
20722
20607
|
//# sourceMappingURL=events.js.map
|
|
20723
20608
|
|
|
20724
20609
|
/***/ }),
|
|
20725
|
-
/*
|
|
20610
|
+
/* 64 */
|
|
20726
20611
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20727
20612
|
|
|
20728
20613
|
"use strict";
|
|
@@ -21209,19 +21094,19 @@ exports.BinMsg = BinMsg;
|
|
|
21209
21094
|
//# sourceMappingURL=commands.js.map
|
|
21210
21095
|
|
|
21211
21096
|
/***/ }),
|
|
21212
|
-
/*
|
|
21097
|
+
/* 65 */
|
|
21213
21098
|
/***/ (function(module, exports) {
|
|
21214
21099
|
|
|
21215
21100
|
module.exports = require("net");
|
|
21216
21101
|
|
|
21217
21102
|
/***/ }),
|
|
21218
|
-
/*
|
|
21103
|
+
/* 66 */
|
|
21219
21104
|
/***/ (function(module) {
|
|
21220
21105
|
|
|
21221
|
-
module.exports = JSON.parse("{\"name\":\"@mongodb-js/compass-shell\",\"productName\":\"Compass Shell plugin\",\"version\":\"3.
|
|
21106
|
+
module.exports = JSON.parse("{\"name\":\"@mongodb-js/compass-shell\",\"productName\":\"Compass Shell plugin\",\"version\":\"3.3.0\",\"apiVersion\":\"3.0.0\",\"description\":\"Compass Shell Plugin\",\"main\":\"lib/index.js\",\"compass:main\":\"src/index.js\",\"compass:exports\":{\".\":\"./src/index.js\"},\"scripts\":{\"prepublishOnly\":\"npm run compile && compass-scripts check-exports-exist\",\"clean\":\"rimraf lib\",\"precompile\":\"npm run clean\",\"compile\":\"cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js\",\"compile:watch\":\"cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js --watch\",\"test\":\"cross-env NODE_ENV=test mocha-webpack \\\"./src/**/*.spec.js\\\"\",\"test-ci\":\"npm run test\",\"test-ci-electron\":\"echo \\\"TODO(COMPASS-5555): These tests are broken and disabled for now\\\"\",\"test-watch\":\"cross-env NODE_ENV=test mocha-webpack \\\"./src/**/*.spec.js\\\" --watch\",\"test-electron\":\"xvfb-maybe cross-env NODE_ENV=test karma start\",\"test-cov\":\"echo\",\"check\":\"npm run lint && npm run depcheck\",\"lint\":\"eslint \\\"./src/**/*.{js,jsx}\\\" \\\"./test/**/*.js\\\" \\\"./config/**/*.{js,jsx}\\\"\",\"depcheck\":\"compass-scripts check-peer-deps && depcheck\",\"bootstrap\":\"npm run compile\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/mongodb-js/compass.git\"},\"config\":{\"unsafe-perm\":true},\"license\":\"SSPL\",\"publishConfig\":{\"access\":\"public\"},\"dependencies\":{\"@mongodb-js/compass-components\":\"^1.3.0\",\"@mongodb-js/compass-logging\":\"^1.1.1\",\"@mongodb-js/compass-utils\":\"^0.1.1\",\"@mongodb-js/mongodb-redux-common\":\"^2.0.2\",\"@mongosh/node-runtime-worker-thread\":\"^1.6.0\",\"react\":\"^16.14.0\"},\"peerDependencies\":{\"@mongodb-js/compass-components\":\"^1.3.0\",\"@mongodb-js/compass-logging\":\"^1.1.1\",\"@mongodb-js/compass-utils\":\"^0.1.1\",\"@mongodb-js/mongodb-redux-common\":\"^2.0.2\",\"@mongosh/node-runtime-worker-thread\":\"^1.6.0\",\"react\":\"^16.14.0\"},\"devDependencies\":{\"@babel/cli\":\"^7.14.3\",\"@babel/core\":\"^7.14.3\",\"@babel/plugin-proposal-decorators\":\"^7.14.2\",\"@babel/plugin-syntax-dynamic-import\":\"^7.8.3\",\"@babel/preset-env\":\"^7.14.2\",\"@babel/preset-react\":\"^7.13.13\",\"@babel/register\":\"^7.13.16\",\"@hot-loader/react-dom\":\"^16.9.0\",\"@leafygreen-ui/code\":\"^12.1.1\",\"@mongosh/browser-repl\":\"^1.6.0\",\"@mongosh/logging\":\"^1.6.0\",\"@mongosh/service-provider-core\":\"^1.6.0\",\"autoprefixer\":\"^9.4.6\",\"babel-loader\":\"^8.2.2\",\"chai\":\"^4.2.0\",\"chai-enzyme\":\"1.0.0-beta.0\",\"core-js\":\"^3.12.1\",\"cross-env\":\"^5.0.1\",\"depcheck\":\"^1.4.1\",\"enzyme\":\"^3.11.0\",\"enzyme-adapter-react-16\":\"^1.15.2\",\"eslint\":\"^7.25.0\",\"eslint-config-mongodb-js\":\"^5.0.3\",\"eslint-plugin-react\":\"^7.24.0\",\"file-loader\":\"^5.1.0\",\"font-awesome\":\"^4.7.0\",\"hadron-ipc\":\"^3.1.0\",\"html-webpack-plugin\":\"^3.2.0\",\"ignore-loader\":\"^0.1.2\",\"istanbul-instrumenter-loader\":\"^3.0.1\",\"jsdom\":\"^16.7.0\",\"jsdom-global\":\"^3.0.2\",\"karma\":\"^6.3.4\",\"karma-chai\":\"^0.1.0\",\"karma-chai-sinon\":\"^0.1.5\",\"karma-electron\":\"^7.0.0\",\"karma-mocha\":\"^1.3.0\",\"karma-mocha-reporter\":\"^2.2.5\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"mocha\":\"^5.2.0\",\"mocha-webpack\":\"^2.0.0-beta.0\",\"mongodb-reflux-store\":\"^0.0.1\",\"node-loader\":\"^0.6.0\",\"nyc\":\"^13.1.0\",\"peer-deps-externals-webpack-plugin\":\"^1.0.4\",\"prop-types\":\"^15.7.2\",\"react-ace\":\"^9.5.0\",\"react-dom\":\"^16.14.0\",\"react-hot-loader\":\"^4.13.0\",\"react-redux\":\"^8.0.2\",\"react-tooltip\":\"^3.11.1\",\"redux\":\"^4.2.0\",\"resolve\":\"^1.15.1\",\"rimraf\":\"^2.6.1\",\"shebang-loader\":\"^0.0.1\",\"sinon\":\"^7.2.5\",\"sinon-chai\":\"^3.3.0\",\"url-loader\":\"^3.0.0\",\"webpack\":\"^4.46.0\",\"webpack-bundle-analyzer\":\"^3.0.3\",\"webpack-cli\":\"^3.3.12\",\"webpack-merge\":\"^4.2.2\",\"webpack-node-externals\":\"^3.0.0\"},\"homepage\":\"https://github.com/mongodb-js/compass\",\"bugs\":{\"url\":\"https://jira.mongodb.org/projects/COMPASS/issues\",\"email\":\"compass@mongodb.com\"},\"gitHead\":\"10815be8fd57f3bfd89d061e1592eb7136d4a0fb\"}");
|
|
21222
21107
|
|
|
21223
21108
|
/***/ }),
|
|
21224
|
-
/*
|
|
21109
|
+
/* 67 */
|
|
21225
21110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
21226
21111
|
|
|
21227
21112
|
"use strict";
|
|
@@ -21232,6 +21117,116 @@ if (true) {
|
|
|
21232
21117
|
} else {}
|
|
21233
21118
|
|
|
21234
21119
|
|
|
21120
|
+
/***/ }),
|
|
21121
|
+
/* 68 */
|
|
21122
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21123
|
+
|
|
21124
|
+
"use strict";
|
|
21125
|
+
|
|
21126
|
+
|
|
21127
|
+
var reactIs = __webpack_require__(140);
|
|
21128
|
+
|
|
21129
|
+
/**
|
|
21130
|
+
* Copyright 2015, Yahoo! Inc.
|
|
21131
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
21132
|
+
*/
|
|
21133
|
+
var REACT_STATICS = {
|
|
21134
|
+
childContextTypes: true,
|
|
21135
|
+
contextType: true,
|
|
21136
|
+
contextTypes: true,
|
|
21137
|
+
defaultProps: true,
|
|
21138
|
+
displayName: true,
|
|
21139
|
+
getDefaultProps: true,
|
|
21140
|
+
getDerivedStateFromError: true,
|
|
21141
|
+
getDerivedStateFromProps: true,
|
|
21142
|
+
mixins: true,
|
|
21143
|
+
propTypes: true,
|
|
21144
|
+
type: true
|
|
21145
|
+
};
|
|
21146
|
+
var KNOWN_STATICS = {
|
|
21147
|
+
name: true,
|
|
21148
|
+
length: true,
|
|
21149
|
+
prototype: true,
|
|
21150
|
+
caller: true,
|
|
21151
|
+
callee: true,
|
|
21152
|
+
arguments: true,
|
|
21153
|
+
arity: true
|
|
21154
|
+
};
|
|
21155
|
+
var FORWARD_REF_STATICS = {
|
|
21156
|
+
'$$typeof': true,
|
|
21157
|
+
render: true,
|
|
21158
|
+
defaultProps: true,
|
|
21159
|
+
displayName: true,
|
|
21160
|
+
propTypes: true
|
|
21161
|
+
};
|
|
21162
|
+
var MEMO_STATICS = {
|
|
21163
|
+
'$$typeof': true,
|
|
21164
|
+
compare: true,
|
|
21165
|
+
defaultProps: true,
|
|
21166
|
+
displayName: true,
|
|
21167
|
+
propTypes: true,
|
|
21168
|
+
type: true
|
|
21169
|
+
};
|
|
21170
|
+
var TYPE_STATICS = {};
|
|
21171
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
21172
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
21173
|
+
|
|
21174
|
+
function getStatics(component) {
|
|
21175
|
+
// React v16.11 and below
|
|
21176
|
+
if (reactIs.isMemo(component)) {
|
|
21177
|
+
return MEMO_STATICS;
|
|
21178
|
+
} // React v16.12 and above
|
|
21179
|
+
|
|
21180
|
+
|
|
21181
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
21182
|
+
}
|
|
21183
|
+
|
|
21184
|
+
var defineProperty = Object.defineProperty;
|
|
21185
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
21186
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
21187
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21188
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
21189
|
+
var objectPrototype = Object.prototype;
|
|
21190
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
21191
|
+
if (typeof sourceComponent !== 'string') {
|
|
21192
|
+
// don't hoist over string (html) components
|
|
21193
|
+
if (objectPrototype) {
|
|
21194
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
21195
|
+
|
|
21196
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
21197
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
21198
|
+
}
|
|
21199
|
+
}
|
|
21200
|
+
|
|
21201
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
21202
|
+
|
|
21203
|
+
if (getOwnPropertySymbols) {
|
|
21204
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
21205
|
+
}
|
|
21206
|
+
|
|
21207
|
+
var targetStatics = getStatics(targetComponent);
|
|
21208
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
21209
|
+
|
|
21210
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
21211
|
+
var key = keys[i];
|
|
21212
|
+
|
|
21213
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
21214
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
21215
|
+
|
|
21216
|
+
try {
|
|
21217
|
+
// Avoid failures from read-only properties
|
|
21218
|
+
defineProperty(targetComponent, key, descriptor);
|
|
21219
|
+
} catch (e) {}
|
|
21220
|
+
}
|
|
21221
|
+
}
|
|
21222
|
+
}
|
|
21223
|
+
|
|
21224
|
+
return targetComponent;
|
|
21225
|
+
}
|
|
21226
|
+
|
|
21227
|
+
module.exports = hoistNonReactStatics;
|
|
21228
|
+
|
|
21229
|
+
|
|
21235
21230
|
/***/ }),
|
|
21236
21231
|
/* 69 */
|
|
21237
21232
|
/***/ (function(module, exports) {
|
|
@@ -21288,10 +21283,10 @@ module.exports = __webpack_require__(144);
|
|
|
21288
21283
|
const tr46 = __webpack_require__(153);
|
|
21289
21284
|
|
|
21290
21285
|
const infra = __webpack_require__(74);
|
|
21291
|
-
const { utf8DecodeWithoutBOM } = __webpack_require__(
|
|
21286
|
+
const { utf8DecodeWithoutBOM } = __webpack_require__(47);
|
|
21292
21287
|
const { percentDecodeString, utf8PercentEncodeCodePoint, utf8PercentEncodeString, isC0ControlPercentEncode,
|
|
21293
21288
|
isFragmentPercentEncode, isQueryPercentEncode, isSpecialQueryPercentEncode, isPathPercentEncode,
|
|
21294
|
-
isUserinfoPercentEncode } = __webpack_require__(
|
|
21289
|
+
isUserinfoPercentEncode } = __webpack_require__(48);
|
|
21295
21290
|
|
|
21296
21291
|
function p(char) {
|
|
21297
21292
|
return char.codePointAt(0);
|
|
@@ -22575,8 +22570,8 @@ module.exports = {
|
|
|
22575
22570
|
|
|
22576
22571
|
"use strict";
|
|
22577
22572
|
|
|
22578
|
-
const { utf8Encode, utf8DecodeWithoutBOM } = __webpack_require__(
|
|
22579
|
-
const { percentDecodeBytes, utf8PercentEncodeString, isURLEncodedPercentEncode } = __webpack_require__(
|
|
22573
|
+
const { utf8Encode, utf8DecodeWithoutBOM } = __webpack_require__(47);
|
|
22574
|
+
const { percentDecodeBytes, utf8PercentEncodeString, isURLEncodedPercentEncode } = __webpack_require__(48);
|
|
22580
22575
|
|
|
22581
22576
|
function p(char) {
|
|
22582
22577
|
return char.codePointAt(0);
|
|
@@ -22689,8 +22684,8 @@ module.exports = {
|
|
|
22689
22684
|
"use strict";
|
|
22690
22685
|
|
|
22691
22686
|
|
|
22692
|
-
const conversions = __webpack_require__(
|
|
22693
|
-
const utils = __webpack_require__(
|
|
22687
|
+
const conversions = __webpack_require__(45);
|
|
22688
|
+
const utils = __webpack_require__(46);
|
|
22694
22689
|
|
|
22695
22690
|
const Function = __webpack_require__(157);
|
|
22696
22691
|
const newObjectInRealm = utils.newObjectInRealm;
|
|
@@ -23290,10 +23285,10 @@ module.exports = resolveMongodbSrv;
|
|
|
23290
23285
|
const tr46 = __webpack_require__(174);
|
|
23291
23286
|
|
|
23292
23287
|
const infra = __webpack_require__(79);
|
|
23293
|
-
const { utf8DecodeWithoutBOM } = __webpack_require__(
|
|
23288
|
+
const { utf8DecodeWithoutBOM } = __webpack_require__(54);
|
|
23294
23289
|
const { percentDecodeString, utf8PercentEncodeCodePoint, utf8PercentEncodeString, isC0ControlPercentEncode,
|
|
23295
23290
|
isFragmentPercentEncode, isQueryPercentEncode, isSpecialQueryPercentEncode, isPathPercentEncode,
|
|
23296
|
-
isUserinfoPercentEncode } = __webpack_require__(
|
|
23291
|
+
isUserinfoPercentEncode } = __webpack_require__(55);
|
|
23297
23292
|
|
|
23298
23293
|
function p(char) {
|
|
23299
23294
|
return char.codePointAt(0);
|
|
@@ -24571,8 +24566,8 @@ module.exports = {
|
|
|
24571
24566
|
|
|
24572
24567
|
"use strict";
|
|
24573
24568
|
|
|
24574
|
-
const { utf8Encode, utf8DecodeWithoutBOM } = __webpack_require__(
|
|
24575
|
-
const { percentDecodeBytes, utf8PercentEncodeString, isURLEncodedPercentEncode } = __webpack_require__(
|
|
24569
|
+
const { utf8Encode, utf8DecodeWithoutBOM } = __webpack_require__(54);
|
|
24570
|
+
const { percentDecodeBytes, utf8PercentEncodeString, isURLEncodedPercentEncode } = __webpack_require__(55);
|
|
24576
24571
|
|
|
24577
24572
|
function p(char) {
|
|
24578
24573
|
return char.codePointAt(0);
|
|
@@ -24685,8 +24680,8 @@ module.exports = {
|
|
|
24685
24680
|
"use strict";
|
|
24686
24681
|
|
|
24687
24682
|
|
|
24688
|
-
const conversions = __webpack_require__(
|
|
24689
|
-
const utils = __webpack_require__(
|
|
24683
|
+
const conversions = __webpack_require__(52);
|
|
24684
|
+
const utils = __webpack_require__(53);
|
|
24690
24685
|
|
|
24691
24686
|
const Function = __webpack_require__(178);
|
|
24692
24687
|
const newObjectInRealm = utils.newObjectInRealm;
|
|
@@ -25518,7 +25513,7 @@ const collection_1 = __webpack_require__(24);
|
|
|
25518
25513
|
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
|
|
25519
25514
|
const abstract_cursor_1 = __webpack_require__(16);
|
|
25520
25515
|
Object.defineProperty(exports, "AbstractCursor", { enumerable: true, get: function () { return abstract_cursor_1.AbstractCursor; } });
|
|
25521
|
-
const aggregation_cursor_1 = __webpack_require__(
|
|
25516
|
+
const aggregation_cursor_1 = __webpack_require__(56);
|
|
25522
25517
|
Object.defineProperty(exports, "AggregationCursor", { enumerable: true, get: function () { return aggregation_cursor_1.AggregationCursor; } });
|
|
25523
25518
|
const find_cursor_1 = __webpack_require__(102);
|
|
25524
25519
|
Object.defineProperty(exports, "FindCursor", { enumerable: true, get: function () { return find_cursor_1.FindCursor; } });
|
|
@@ -25526,7 +25521,7 @@ const list_collections_cursor_1 = __webpack_require__(110);
|
|
|
25526
25521
|
Object.defineProperty(exports, "ListCollectionsCursor", { enumerable: true, get: function () { return list_collections_cursor_1.ListCollectionsCursor; } });
|
|
25527
25522
|
const list_indexes_cursor_1 = __webpack_require__(104);
|
|
25528
25523
|
Object.defineProperty(exports, "ListIndexesCursor", { enumerable: true, get: function () { return list_indexes_cursor_1.ListIndexesCursor; } });
|
|
25529
|
-
const db_1 = __webpack_require__(
|
|
25524
|
+
const db_1 = __webpack_require__(59);
|
|
25530
25525
|
Object.defineProperty(exports, "Db", { enumerable: true, get: function () { return db_1.Db; } });
|
|
25531
25526
|
const gridfs_1 = __webpack_require__(231);
|
|
25532
25527
|
Object.defineProperty(exports, "GridFSBucket", { enumerable: true, get: function () { return gridfs_1.GridFSBucket; } });
|
|
@@ -25606,11 +25601,11 @@ Object.defineProperty(exports, "MongoWriteConcernError", { enumerable: true, get
|
|
|
25606
25601
|
// enums
|
|
25607
25602
|
var common_2 = __webpack_require__(36);
|
|
25608
25603
|
Object.defineProperty(exports, "BatchType", { enumerable: true, get: function () { return common_2.BatchType; } });
|
|
25609
|
-
var gssapi_1 = __webpack_require__(
|
|
25604
|
+
var gssapi_1 = __webpack_require__(61);
|
|
25610
25605
|
Object.defineProperty(exports, "GSSAPICanonicalizationValue", { enumerable: true, get: function () { return gssapi_1.GSSAPICanonicalizationValue; } });
|
|
25611
25606
|
var providers_1 = __webpack_require__(25);
|
|
25612
25607
|
Object.defineProperty(exports, "AuthMechanism", { enumerable: true, get: function () { return providers_1.AuthMechanism; } });
|
|
25613
|
-
var compression_1 = __webpack_require__(
|
|
25608
|
+
var compression_1 = __webpack_require__(62);
|
|
25614
25609
|
Object.defineProperty(exports, "Compressor", { enumerable: true, get: function () { return compression_1.Compressor; } });
|
|
25615
25610
|
var abstract_cursor_2 = __webpack_require__(16);
|
|
25616
25611
|
Object.defineProperty(exports, "CURSOR_FLAGS", { enumerable: true, get: function () { return abstract_cursor_2.CURSOR_FLAGS; } });
|
|
@@ -25662,7 +25657,7 @@ Object.defineProperty(exports, "ConnectionPoolCreatedEvent", { enumerable: true,
|
|
|
25662
25657
|
Object.defineProperty(exports, "ConnectionPoolMonitoringEvent", { enumerable: true, get: function () { return connection_pool_events_1.ConnectionPoolMonitoringEvent; } });
|
|
25663
25658
|
Object.defineProperty(exports, "ConnectionPoolReadyEvent", { enumerable: true, get: function () { return connection_pool_events_1.ConnectionPoolReadyEvent; } });
|
|
25664
25659
|
Object.defineProperty(exports, "ConnectionReadyEvent", { enumerable: true, get: function () { return connection_pool_events_1.ConnectionReadyEvent; } });
|
|
25665
|
-
var events_1 = __webpack_require__(
|
|
25660
|
+
var events_1 = __webpack_require__(63);
|
|
25666
25661
|
Object.defineProperty(exports, "ServerClosedEvent", { enumerable: true, get: function () { return events_1.ServerClosedEvent; } });
|
|
25667
25662
|
Object.defineProperty(exports, "ServerDescriptionChangedEvent", { enumerable: true, get: function () { return events_1.ServerDescriptionChangedEvent; } });
|
|
25668
25663
|
Object.defineProperty(exports, "ServerHeartbeatFailedEvent", { enumerable: true, get: function () { return events_1.ServerHeartbeatFailedEvent; } });
|
|
@@ -27326,7 +27321,7 @@ const error_1 = __webpack_require__(0);
|
|
|
27326
27321
|
const count_1 = __webpack_require__(103);
|
|
27327
27322
|
const execute_operation_1 = __webpack_require__(12);
|
|
27328
27323
|
const find_1 = __webpack_require__(195);
|
|
27329
|
-
const sort_1 = __webpack_require__(
|
|
27324
|
+
const sort_1 = __webpack_require__(58);
|
|
27330
27325
|
const utils_1 = __webpack_require__(1);
|
|
27331
27326
|
const abstract_cursor_1 = __webpack_require__(16);
|
|
27332
27327
|
/** @internal */
|
|
@@ -27889,7 +27884,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27889
27884
|
exports.FindOneAndUpdateOperation = exports.FindOneAndReplaceOperation = exports.FindOneAndDeleteOperation = exports.ReturnDocument = void 0;
|
|
27890
27885
|
const error_1 = __webpack_require__(0);
|
|
27891
27886
|
const read_preference_1 = __webpack_require__(6);
|
|
27892
|
-
const sort_1 = __webpack_require__(
|
|
27887
|
+
const sort_1 = __webpack_require__(58);
|
|
27893
27888
|
const utils_1 = __webpack_require__(1);
|
|
27894
27889
|
const command_1 = __webpack_require__(5);
|
|
27895
27890
|
const operation_1 = __webpack_require__(3);
|
|
@@ -28157,7 +28152,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28157
28152
|
exports.ChangeStreamCursor = void 0;
|
|
28158
28153
|
const change_stream_1 = __webpack_require__(29);
|
|
28159
28154
|
const constants_1 = __webpack_require__(7);
|
|
28160
|
-
const aggregate_1 = __webpack_require__(
|
|
28155
|
+
const aggregate_1 = __webpack_require__(57);
|
|
28161
28156
|
const execute_operation_1 = __webpack_require__(12);
|
|
28162
28157
|
const utils_1 = __webpack_require__(1);
|
|
28163
28158
|
const abstract_cursor_1 = __webpack_require__(16);
|
|
@@ -28378,7 +28373,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28378
28373
|
exports.MongoCredentials = void 0;
|
|
28379
28374
|
const error_1 = __webpack_require__(0);
|
|
28380
28375
|
const utils_1 = __webpack_require__(1);
|
|
28381
|
-
const gssapi_1 = __webpack_require__(
|
|
28376
|
+
const gssapi_1 = __webpack_require__(61);
|
|
28382
28377
|
const providers_1 = __webpack_require__(25);
|
|
28383
28378
|
// https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst
|
|
28384
28379
|
function getDefaultAuthMechanism(hello) {
|
|
@@ -29600,7 +29595,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29600
29595
|
exports.CommandFailedEvent = exports.CommandSucceededEvent = exports.CommandStartedEvent = void 0;
|
|
29601
29596
|
const constants_1 = __webpack_require__(7);
|
|
29602
29597
|
const utils_1 = __webpack_require__(1);
|
|
29603
|
-
const commands_1 = __webpack_require__(
|
|
29598
|
+
const commands_1 = __webpack_require__(64);
|
|
29604
29599
|
/**
|
|
29605
29600
|
* An event indicating the start of a given
|
|
29606
29601
|
* @public
|
|
@@ -29847,15 +29842,15 @@ function extractConnectionDetails(connection) {
|
|
|
29847
29842
|
|
|
29848
29843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29849
29844
|
exports.LEGAL_TCP_SOCKET_OPTIONS = exports.LEGAL_TLS_SOCKET_OPTIONS = exports.prepareHandshakeDocument = exports.connect = void 0;
|
|
29850
|
-
const net = __webpack_require__(
|
|
29845
|
+
const net = __webpack_require__(65);
|
|
29851
29846
|
const socks_1 = __webpack_require__(119);
|
|
29852
|
-
const tls = __webpack_require__(
|
|
29847
|
+
const tls = __webpack_require__(51);
|
|
29853
29848
|
const bson_1 = __webpack_require__(4);
|
|
29854
29849
|
const constants_1 = __webpack_require__(7);
|
|
29855
29850
|
const error_1 = __webpack_require__(0);
|
|
29856
29851
|
const utils_1 = __webpack_require__(1);
|
|
29857
29852
|
const auth_provider_1 = __webpack_require__(18);
|
|
29858
|
-
const gssapi_1 = __webpack_require__(
|
|
29853
|
+
const gssapi_1 = __webpack_require__(61);
|
|
29859
29854
|
const mongocr_1 = __webpack_require__(224);
|
|
29860
29855
|
const mongodb_aws_1 = __webpack_require__(225);
|
|
29861
29856
|
const plain_1 = __webpack_require__(227);
|
|
@@ -31580,7 +31575,7 @@ __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport
|
|
|
31580
31575
|
// UNUSED EXPORTS: batch, ReactReduxContext, useDispatch, createDispatchHook, useSelector, createSelectorHook, useStore, createStoreHook, shallowEqual
|
|
31581
31576
|
|
|
31582
31577
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/use-sync-external-store/shim/index.js
|
|
31583
|
-
var shim = __webpack_require__(
|
|
31578
|
+
var shim = __webpack_require__(67);
|
|
31584
31579
|
|
|
31585
31580
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/use-sync-external-store/shim/with-selector.js
|
|
31586
31581
|
var with_selector = __webpack_require__(129);
|
|
@@ -31709,7 +31704,7 @@ var esm_extends = __webpack_require__(26);
|
|
|
31709
31704
|
var objectWithoutPropertiesLoose = __webpack_require__(42);
|
|
31710
31705
|
|
|
31711
31706
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
31712
|
-
var hoist_non_react_statics_cjs = __webpack_require__(
|
|
31707
|
+
var hoist_non_react_statics_cjs = __webpack_require__(68);
|
|
31713
31708
|
var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
|
|
31714
31709
|
|
|
31715
31710
|
// EXTERNAL MODULE: /home/runner/work/compass/compass/node_modules/react-redux/node_modules/react-is/index.js
|
|
@@ -32937,7 +32932,7 @@ function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f)
|
|
|
32937
32932
|
* This source code is licensed under the MIT license found in the
|
|
32938
32933
|
* LICENSE file in the root directory of this source tree.
|
|
32939
32934
|
*/
|
|
32940
|
-
var h=__webpack_require__(2),n=__webpack_require__(
|
|
32935
|
+
var h=__webpack_require__(2),n=__webpack_require__(67);function p(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var q="function"===typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;
|
|
32941
32936
|
exports.useSyncExternalStoreWithSelector=function(a,b,e,l,g){var c=t(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=v(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==g&&f.hasValue){var b=f.value;if(g(b,a))return k=b}return k=a}b=k;if(q(d,a))return b;var e=l(a);if(void 0!==g&&g(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return[function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,g]);var d=r(a,c[0],c[1]);
|
|
32942
32937
|
u(function(){f.hasValue=!0;f.value=d},[d]);w(d);return d};
|
|
32943
32938
|
|
|
@@ -50954,7 +50949,7 @@ var history_1 = __webpack_require__(148);
|
|
|
50954
50949
|
Object.defineProperty(exports, "changeHistory", { enumerable: true, get: function () { return history_1.changeHistory; } });
|
|
50955
50950
|
Object.defineProperty(exports, "redactSensitiveData", { enumerable: true, get: function () { return history_1.redactSensitiveData; } });
|
|
50956
50951
|
Object.defineProperty(exports, "HIDDEN_COMMANDS", { enumerable: true, get: function () { return history_1.HIDDEN_COMMANDS; } });
|
|
50957
|
-
var mongodb_connection_string_url_1 = __webpack_require__(
|
|
50952
|
+
var mongodb_connection_string_url_1 = __webpack_require__(44);
|
|
50958
50953
|
Object.defineProperty(exports, "redactURICredentials", { enumerable: true, get: function () { return mongodb_connection_string_url_1.redactConnectionString; } });
|
|
50959
50954
|
//# sourceMappingURL=index.js.map
|
|
50960
50955
|
|
|
@@ -50995,7 +50990,7 @@ exports.changeHistory = changeHistory;
|
|
|
50995
50990
|
|
|
50996
50991
|
const { URL, URLSearchParams } = __webpack_require__(150);
|
|
50997
50992
|
const urlStateMachine = __webpack_require__(72);
|
|
50998
|
-
const percentEncoding = __webpack_require__(
|
|
50993
|
+
const percentEncoding = __webpack_require__(48);
|
|
50999
50994
|
|
|
51000
50995
|
const sharedGlobalObject = { Array, Object, Promise, String, TypeError };
|
|
51001
50996
|
URL.install(sharedGlobalObject, ["Window"]);
|
|
@@ -51041,8 +51036,8 @@ exports.URLSearchParams = URLSearchParams;
|
|
|
51041
51036
|
"use strict";
|
|
51042
51037
|
|
|
51043
51038
|
|
|
51044
|
-
const conversions = __webpack_require__(
|
|
51045
|
-
const utils = __webpack_require__(
|
|
51039
|
+
const conversions = __webpack_require__(45);
|
|
51040
|
+
const utils = __webpack_require__(46);
|
|
51046
51041
|
|
|
51047
51042
|
const implSymbol = utils.implSymbol;
|
|
51048
51043
|
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
|
|
@@ -52071,8 +52066,8 @@ module.exports.STATUS_MAPPING = {
|
|
|
52071
52066
|
"use strict";
|
|
52072
52067
|
|
|
52073
52068
|
|
|
52074
|
-
const conversions = __webpack_require__(
|
|
52075
|
-
const utils = __webpack_require__(
|
|
52069
|
+
const conversions = __webpack_require__(45);
|
|
52070
|
+
const utils = __webpack_require__(46);
|
|
52076
52071
|
|
|
52077
52072
|
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
|
|
52078
52073
|
if (typeof value !== "function") {
|
|
@@ -52281,7 +52276,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
52281
52276
|
};
|
|
52282
52277
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52283
52278
|
exports.redactConnectionString = exports.redactValidConnectionString = void 0;
|
|
52284
|
-
const index_1 = __importStar(__webpack_require__(
|
|
52279
|
+
const index_1 = __importStar(__webpack_require__(44));
|
|
52285
52280
|
function redactValidConnectionString(inputUrl, options) {
|
|
52286
52281
|
var _a, _b;
|
|
52287
52282
|
const url = inputUrl.clone();
|
|
@@ -52326,17 +52321,16 @@ function redactConnectionString(uri, options) {
|
|
|
52326
52321
|
options = { ...options, replacementString: '___credentials___' };
|
|
52327
52322
|
return parsed.redact(options).toString().replace(/___credentials___/g, replacementString);
|
|
52328
52323
|
}
|
|
52329
|
-
const
|
|
52330
|
-
|
|
52331
|
-
/(
|
|
52332
|
-
/(
|
|
52333
|
-
|
|
52334
|
-
/(
|
|
52324
|
+
const R = replacementString;
|
|
52325
|
+
const replacements = [
|
|
52326
|
+
uri => uri.replace(redactUsernames ? /(\/\/)(.*)(@)/g : /(\/\/[^@]+:)(.*)(@)/g, `$1${R}$3`),
|
|
52327
|
+
uri => uri.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi, `$1${R}`),
|
|
52328
|
+
uri => uri.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi, `$1${R}`),
|
|
52329
|
+
uri => redactUsernames ? uri.replace(/(proxyUsername=)([^&]+)/gi, `$1${R}`) : uri,
|
|
52330
|
+
uri => uri.replace(/(proxyPassword=)([^&]+)/gi, `$1${R}`)
|
|
52335
52331
|
];
|
|
52336
|
-
for (const
|
|
52337
|
-
|
|
52338
|
-
uri = uri.replace(r, replacementString);
|
|
52339
|
-
}
|
|
52332
|
+
for (const replacer of replacements) {
|
|
52333
|
+
uri = replacer(uri);
|
|
52340
52334
|
}
|
|
52341
52335
|
return uri;
|
|
52342
52336
|
}
|
|
@@ -52354,13 +52348,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52354
52348
|
};
|
|
52355
52349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52356
52350
|
exports.MongoLogManager = exports.MongoLogWriter = exports.mongoLogId = void 0;
|
|
52357
|
-
const bson_1 = __webpack_require__(
|
|
52351
|
+
const bson_1 = __webpack_require__(49);
|
|
52358
52352
|
const events_1 = __webpack_require__(27);
|
|
52359
52353
|
const fs_1 = __webpack_require__(13);
|
|
52360
52354
|
const path_1 = __importDefault(__webpack_require__(19));
|
|
52361
52355
|
const stream_1 = __webpack_require__(20);
|
|
52362
52356
|
const util_1 = __webpack_require__(14);
|
|
52363
|
-
const zlib_1 = __webpack_require__(
|
|
52357
|
+
const zlib_1 = __webpack_require__(50);
|
|
52364
52358
|
function mongoLogId(id) {
|
|
52365
52359
|
return { __value: id };
|
|
52366
52360
|
}
|
|
@@ -52882,7 +52876,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
52882
52876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52883
52877
|
exports.systemCertsAsync = exports.systemCertsSync = void 0;
|
|
52884
52878
|
const impl_1 = __webpack_require__(167);
|
|
52885
|
-
const tls_1 = __webpack_require__(
|
|
52879
|
+
const tls_1 = __webpack_require__(51);
|
|
52886
52880
|
const events_1 = __webpack_require__(27);
|
|
52887
52881
|
function maybeAddNodeCertificates(certs, opts) {
|
|
52888
52882
|
if (opts.includeNodeCertificates) {
|
|
@@ -53084,7 +53078,7 @@ module.exports = JSON.parse("{\"name\":\"@mongodb-js/devtools-connect\",\"versio
|
|
|
53084
53078
|
|
|
53085
53079
|
const { URL, URLSearchParams } = __webpack_require__(171);
|
|
53086
53080
|
const urlStateMachine = __webpack_require__(78);
|
|
53087
|
-
const percentEncoding = __webpack_require__(
|
|
53081
|
+
const percentEncoding = __webpack_require__(55);
|
|
53088
53082
|
|
|
53089
53083
|
const sharedGlobalObject = { Array, Object, Promise, String, TypeError };
|
|
53090
53084
|
URL.install(sharedGlobalObject, ["Window"]);
|
|
@@ -53130,8 +53124,8 @@ exports.URLSearchParams = URLSearchParams;
|
|
|
53130
53124
|
"use strict";
|
|
53131
53125
|
|
|
53132
53126
|
|
|
53133
|
-
const conversions = __webpack_require__(
|
|
53134
|
-
const utils = __webpack_require__(
|
|
53127
|
+
const conversions = __webpack_require__(52);
|
|
53128
|
+
const utils = __webpack_require__(53);
|
|
53135
53129
|
|
|
53136
53130
|
const implSymbol = utils.implSymbol;
|
|
53137
53131
|
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
|
|
@@ -54160,8 +54154,8 @@ module.exports.STATUS_MAPPING = {
|
|
|
54160
54154
|
"use strict";
|
|
54161
54155
|
|
|
54162
54156
|
|
|
54163
|
-
const conversions = __webpack_require__(
|
|
54164
|
-
const utils = __webpack_require__(
|
|
54157
|
+
const conversions = __webpack_require__(52);
|
|
54158
|
+
const utils = __webpack_require__(53);
|
|
54165
54159
|
|
|
54166
54160
|
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
|
|
54167
54161
|
if (typeof value !== "function") {
|
|
@@ -55593,7 +55587,7 @@ function factor (n, out) {
|
|
|
55593
55587
|
"use strict";
|
|
55594
55588
|
|
|
55595
55589
|
|
|
55596
|
-
module.exports = __webpack_require__(
|
|
55590
|
+
module.exports = __webpack_require__(50).gunzipSync(
|
|
55597
55591
|
Buffer.from(
|
|
55598
55592
|
'H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=',
|
|
55599
55593
|
'base64'
|
|
@@ -55821,7 +55815,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
55821
55815
|
exports.FindOperation = void 0;
|
|
55822
55816
|
const error_1 = __webpack_require__(0);
|
|
55823
55817
|
const read_concern_1 = __webpack_require__(9);
|
|
55824
|
-
const sort_1 = __webpack_require__(
|
|
55818
|
+
const sort_1 = __webpack_require__(58);
|
|
55825
55819
|
const utils_1 = __webpack_require__(1);
|
|
55826
55820
|
const command_1 = __webpack_require__(5);
|
|
55827
55821
|
const operation_1 = __webpack_require__(3);
|
|
@@ -55990,7 +55984,7 @@ function makeFindCommand(ns, filter, options) {
|
|
|
55990
55984
|
|
|
55991
55985
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55992
55986
|
exports.CountDocumentsOperation = void 0;
|
|
55993
|
-
const aggregate_1 = __webpack_require__(
|
|
55987
|
+
const aggregate_1 = __webpack_require__(57);
|
|
55994
55988
|
/** @internal */
|
|
55995
55989
|
class CountDocumentsOperation extends aggregate_1.AggregateOperation {
|
|
55996
55990
|
constructor(collection, query, options) {
|
|
@@ -57482,7 +57476,7 @@ exports.Encrypter = Encrypter;
|
|
|
57482
57476
|
|
|
57483
57477
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57484
57478
|
exports.connect = void 0;
|
|
57485
|
-
const connection_string_1 = __webpack_require__(
|
|
57479
|
+
const connection_string_1 = __webpack_require__(60);
|
|
57486
57480
|
const constants_1 = __webpack_require__(7);
|
|
57487
57481
|
const error_1 = __webpack_require__(0);
|
|
57488
57482
|
const topology_1 = __webpack_require__(214);
|
|
@@ -57577,14 +57571,14 @@ const Denque = __webpack_require__(115);
|
|
|
57577
57571
|
const timers_1 = __webpack_require__(23);
|
|
57578
57572
|
const util_1 = __webpack_require__(14);
|
|
57579
57573
|
const bson_1 = __webpack_require__(4);
|
|
57580
|
-
const connection_string_1 = __webpack_require__(
|
|
57574
|
+
const connection_string_1 = __webpack_require__(60);
|
|
57581
57575
|
const constants_1 = __webpack_require__(7);
|
|
57582
57576
|
const error_1 = __webpack_require__(0);
|
|
57583
57577
|
const mongo_types_1 = __webpack_require__(8);
|
|
57584
57578
|
const read_preference_1 = __webpack_require__(6);
|
|
57585
57579
|
const utils_1 = __webpack_require__(1);
|
|
57586
57580
|
const common_1 = __webpack_require__(10);
|
|
57587
|
-
const events_1 = __webpack_require__(
|
|
57581
|
+
const events_1 = __webpack_require__(63);
|
|
57588
57582
|
const server_1 = __webpack_require__(116);
|
|
57589
57583
|
const server_description_1 = __webpack_require__(38);
|
|
57590
57584
|
const server_selection_1 = __webpack_require__(34);
|
|
@@ -58237,8 +58231,8 @@ exports.MessageStream = void 0;
|
|
|
58237
58231
|
const stream_1 = __webpack_require__(20);
|
|
58238
58232
|
const error_1 = __webpack_require__(0);
|
|
58239
58233
|
const utils_1 = __webpack_require__(1);
|
|
58240
|
-
const commands_1 = __webpack_require__(
|
|
58241
|
-
const compression_1 = __webpack_require__(
|
|
58234
|
+
const commands_1 = __webpack_require__(64);
|
|
58235
|
+
const compression_1 = __webpack_require__(62);
|
|
58242
58236
|
const constants_1 = __webpack_require__(28);
|
|
58243
58237
|
const MESSAGE_HEADER_SIZE = 16;
|
|
58244
58238
|
const COMPRESSION_DETAILS_SIZE = 9; // originalOpcode + uncompressedSize, compressorID
|
|
@@ -59038,7 +59032,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
59038
59032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59039
59033
|
exports.SocksClientError = exports.SocksClient = void 0;
|
|
59040
59034
|
const events_1 = __webpack_require__(27);
|
|
59041
|
-
const net = __webpack_require__(
|
|
59035
|
+
const net = __webpack_require__(65);
|
|
59042
59036
|
const ip = __webpack_require__(219);
|
|
59043
59037
|
const smart_buffer_1 = __webpack_require__(220);
|
|
59044
59038
|
const constants_1 = __webpack_require__(120);
|
|
@@ -62440,7 +62434,7 @@ const error_1 = __webpack_require__(0);
|
|
|
62440
62434
|
const mongo_types_1 = __webpack_require__(8);
|
|
62441
62435
|
const utils_1 = __webpack_require__(1);
|
|
62442
62436
|
const common_1 = __webpack_require__(10);
|
|
62443
|
-
const events_1 = __webpack_require__(
|
|
62437
|
+
const events_1 = __webpack_require__(63);
|
|
62444
62438
|
const server_1 = __webpack_require__(116);
|
|
62445
62439
|
/** @internal */
|
|
62446
62440
|
const kServer = Symbol('server');
|
|
@@ -63008,8 +63002,8 @@ GridFSBucket.INDEX = 'index';
|
|
|
63008
63002
|
|
|
63009
63003
|
|
|
63010
63004
|
module.exports = function (modules) {
|
|
63011
|
-
const tls = __webpack_require__(
|
|
63012
|
-
const net = __webpack_require__(
|
|
63005
|
+
const tls = __webpack_require__(51);
|
|
63006
|
+
const net = __webpack_require__(65);
|
|
63013
63007
|
const fs = __webpack_require__(13);
|
|
63014
63008
|
const { once } = __webpack_require__(27);
|
|
63015
63009
|
const { SocksClient } = __webpack_require__(119);
|
|
@@ -65709,24 +65703,22 @@ var app_registry_default = /*#__PURE__*/__webpack_require__.n(app_registry);
|
|
|
65709
65703
|
// Workaround for webpack require that overrides global require
|
|
65710
65704
|
function getRealRequire() {
|
|
65711
65705
|
// eslint-disable-next-line camelcase
|
|
65712
|
-
return true ?
|
|
65706
|
+
return true ?
|
|
65707
|
+
// eslint-disable-next-line camelcase, no-undef
|
|
65713
65708
|
require : undefined;
|
|
65714
65709
|
}
|
|
65710
|
+
|
|
65715
65711
|
/**
|
|
65716
65712
|
* @type {{ WorkerRuntime: typeof import('@mongosh/node-runtime-worker-thread').WorkerRuntime }}
|
|
65717
65713
|
*/
|
|
65718
|
-
|
|
65719
|
-
|
|
65720
65714
|
const {
|
|
65721
65715
|
WorkerRuntime
|
|
65722
65716
|
} = (() => {
|
|
65723
65717
|
const require = getRealRequire();
|
|
65724
|
-
|
|
65725
|
-
|
|
65718
|
+
const realModulePath = require.resolve('@mongosh/node-runtime-worker-thread');
|
|
65719
|
+
// Runtime needs to be outside the asar bundle to function properly, so if we
|
|
65726
65720
|
// resolved it inside of one, we will try to import it from outside (and hard
|
|
65727
65721
|
// fail if this didn't work)
|
|
65728
|
-
|
|
65729
|
-
|
|
65730
65722
|
if (/\.asar(?!\.unpacked)/.test(realModulePath)) {
|
|
65731
65723
|
try {
|
|
65732
65724
|
return require(realModulePath.replace('.asar', '.asar.unpacked'));
|
|
@@ -65735,32 +65727,31 @@ const {
|
|
|
65735
65727
|
throw e;
|
|
65736
65728
|
}
|
|
65737
65729
|
}
|
|
65738
|
-
|
|
65739
65730
|
return require(realModulePath);
|
|
65740
65731
|
})();
|
|
65741
65732
|
|
|
65742
|
-
|
|
65743
65733
|
// CONCATENATED MODULE: ./src/modules/runtime.js
|
|
65744
65734
|
|
|
65735
|
+
|
|
65745
65736
|
/**
|
|
65746
65737
|
* The prefix.
|
|
65747
65738
|
*/
|
|
65748
|
-
|
|
65749
65739
|
const PREFIX = 'shell/runtime';
|
|
65740
|
+
|
|
65750
65741
|
/**
|
|
65751
65742
|
* Data service connected.
|
|
65752
65743
|
*/
|
|
65753
|
-
|
|
65754
65744
|
const SETUP_RUNTIME = `${PREFIX}/SETUP_RUNTIME`;
|
|
65745
|
+
|
|
65755
65746
|
/**
|
|
65756
65747
|
* The initial state.
|
|
65757
65748
|
*/
|
|
65758
|
-
|
|
65759
65749
|
const INITIAL_STATE = {
|
|
65760
65750
|
error: null,
|
|
65761
65751
|
dataService: null,
|
|
65762
65752
|
runtime: null
|
|
65763
65753
|
};
|
|
65754
|
+
|
|
65764
65755
|
/**
|
|
65765
65756
|
* Reducer function for handling data service connected actions.
|
|
65766
65757
|
*
|
|
@@ -65769,15 +65760,12 @@ const INITIAL_STATE = {
|
|
|
65769
65760
|
*
|
|
65770
65761
|
* @returns {String} The new state.
|
|
65771
65762
|
*/
|
|
65772
|
-
|
|
65773
65763
|
function reducer(state = INITIAL_STATE, action) {
|
|
65774
65764
|
if (action.type === SETUP_RUNTIME) {
|
|
65775
65765
|
return reduceSetupRuntime(state, action);
|
|
65776
65766
|
}
|
|
65777
|
-
|
|
65778
65767
|
return state;
|
|
65779
65768
|
}
|
|
65780
|
-
|
|
65781
65769
|
function reduceSetupRuntime(state, action) {
|
|
65782
65770
|
if (action.error || !action.dataService) {
|
|
65783
65771
|
return {
|
|
@@ -65786,11 +65774,9 @@ function reduceSetupRuntime(state, action) {
|
|
|
65786
65774
|
runtime: null
|
|
65787
65775
|
};
|
|
65788
65776
|
}
|
|
65789
|
-
|
|
65790
65777
|
if (state.dataService === action.dataService) {
|
|
65791
65778
|
return state;
|
|
65792
65779
|
}
|
|
65793
|
-
|
|
65794
65780
|
const runtime = createWorkerRuntime(action.dataService, action.appRegistry);
|
|
65795
65781
|
return {
|
|
65796
65782
|
error: action.error,
|
|
@@ -65798,6 +65784,7 @@ function reduceSetupRuntime(state, action) {
|
|
|
65798
65784
|
runtime
|
|
65799
65785
|
};
|
|
65800
65786
|
}
|
|
65787
|
+
|
|
65801
65788
|
/**
|
|
65802
65789
|
* Setup the shell runtime with the supplied dataService instance.
|
|
65803
65790
|
*
|
|
@@ -65807,15 +65794,12 @@ function reduceSetupRuntime(state, action) {
|
|
|
65807
65794
|
*
|
|
65808
65795
|
* @returns {Object} The data service connected action.
|
|
65809
65796
|
*/
|
|
65810
|
-
|
|
65811
|
-
|
|
65812
65797
|
const setupRuntime = (error, dataService, appRegistry) => ({
|
|
65813
65798
|
type: SETUP_RUNTIME,
|
|
65814
65799
|
error,
|
|
65815
65800
|
dataService,
|
|
65816
65801
|
appRegistry
|
|
65817
65802
|
});
|
|
65818
|
-
|
|
65819
65803
|
function createWorkerRuntime(dataService, appRegistry) {
|
|
65820
65804
|
const {
|
|
65821
65805
|
url: driverUrl,
|
|
@@ -65824,7 +65808,8 @@ function createWorkerRuntime(dataService, appRegistry) {
|
|
|
65824
65808
|
cliOptions
|
|
65825
65809
|
} = dataService.getMongoClientConnectionOptions();
|
|
65826
65810
|
return new WorkerRuntime(driverUrl, driverOptions, cliOptions !== null && cliOptions !== void 0 ? cliOptions : {}, {
|
|
65827
|
-
env: {
|
|
65811
|
+
env: {
|
|
65812
|
+
...process.env,
|
|
65828
65813
|
ELECTRON_RUN_AS_NODE: 1
|
|
65829
65814
|
},
|
|
65830
65815
|
serialization: 'advanced'
|
|
@@ -65854,7 +65839,6 @@ function store_defineProperty(obj, key, value) { if (key in obj) { Object.define
|
|
|
65854
65839
|
|
|
65855
65840
|
|
|
65856
65841
|
|
|
65857
|
-
|
|
65858
65842
|
const {
|
|
65859
65843
|
log,
|
|
65860
65844
|
debug,
|
|
@@ -65863,28 +65847,22 @@ const {
|
|
|
65863
65847
|
class store_CompassShellStore {
|
|
65864
65848
|
constructor() {
|
|
65865
65849
|
store_defineProperty(this, "globalAppRegistry", null);
|
|
65866
|
-
|
|
65867
65850
|
store_defineProperty(this, "onDataServiceConnected", (error, dataService) => {
|
|
65868
65851
|
this.reduxStore.dispatch(setupRuntime(error, dataService, this.globalAppRegistry));
|
|
65869
65852
|
});
|
|
65870
|
-
|
|
65871
65853
|
store_defineProperty(this, "onDataServiceDisconnected", () => {
|
|
65872
65854
|
const {
|
|
65873
65855
|
runtime: {
|
|
65874
65856
|
runtime
|
|
65875
65857
|
}
|
|
65876
65858
|
} = this.reduxStore.getState();
|
|
65877
|
-
|
|
65878
65859
|
if (runtime) {
|
|
65879
65860
|
runtime.terminate();
|
|
65880
65861
|
}
|
|
65881
|
-
|
|
65882
65862
|
this.reduxStore.dispatch(setupRuntime(null, null, null));
|
|
65883
65863
|
});
|
|
65884
|
-
|
|
65885
65864
|
this.reduxStore = redux_createStore(modules);
|
|
65886
65865
|
}
|
|
65887
|
-
|
|
65888
65866
|
onActivated(appRegistry) {
|
|
65889
65867
|
debug('activated');
|
|
65890
65868
|
this.globalAppRegistry = appRegistry;
|
|
@@ -65902,14 +65880,14 @@ class store_CompassShellStore {
|
|
|
65902
65880
|
}, {
|
|
65903
65881
|
platform: process.platform,
|
|
65904
65882
|
arch: process.arch
|
|
65905
|
-
}, __webpack_require__(
|
|
65883
|
+
}, __webpack_require__(66).version);
|
|
65884
|
+
// We also don't need to pass a proper user id, since that is
|
|
65906
65885
|
// handled by the Compass tracking code.
|
|
65886
|
+
appRegistry.emit('mongosh:new-user', '<compass user>');
|
|
65907
65887
|
|
|
65908
|
-
|
|
65909
|
-
|
|
65888
|
+
// Set the global app registry in the store.
|
|
65910
65889
|
this.reduxStore.dispatch(Object(app_registry["globalAppRegistryActivated"])(appRegistry));
|
|
65911
65890
|
}
|
|
65912
|
-
|
|
65913
65891
|
}
|
|
65914
65892
|
// CONCATENATED MODULE: ./src/stores/index.js
|
|
65915
65893
|
|
|
@@ -65917,11 +65895,9 @@ class store_CompassShellStore {
|
|
|
65917
65895
|
|
|
65918
65896
|
// CONCATENATED MODULE: ./src/modules/get-user-data-file-path.js
|
|
65919
65897
|
const path = __webpack_require__(19);
|
|
65920
|
-
|
|
65921
65898
|
const {
|
|
65922
65899
|
getStoragePaths
|
|
65923
65900
|
} = __webpack_require__(240);
|
|
65924
|
-
|
|
65925
65901
|
const {
|
|
65926
65902
|
appName,
|
|
65927
65903
|
basepath
|
|
@@ -65941,14 +65917,15 @@ var external_path_default = /*#__PURE__*/__webpack_require__.n(external_path_);
|
|
|
65941
65917
|
// CONCATENATED MODULE: ./src/modules/history-storage.js
|
|
65942
65918
|
|
|
65943
65919
|
|
|
65920
|
+
|
|
65944
65921
|
/**
|
|
65945
65922
|
* Persists and retrieves history to / from disk
|
|
65946
65923
|
*/
|
|
65947
|
-
|
|
65948
65924
|
class history_storage_HistoryStorage {
|
|
65949
65925
|
constructor(filePath) {
|
|
65950
65926
|
this.filePath = filePath;
|
|
65951
65927
|
}
|
|
65928
|
+
|
|
65952
65929
|
/**
|
|
65953
65930
|
* Saves the history to disk, it creates the directory and the file if
|
|
65954
65931
|
* not existing and replaces the file content.
|
|
@@ -65956,11 +65933,8 @@ class history_storage_HistoryStorage {
|
|
|
65956
65933
|
* @param {string[]} history - An array of history entries sorted from
|
|
65957
65934
|
* newest to oldest.
|
|
65958
65935
|
*/
|
|
65959
|
-
|
|
65960
|
-
|
|
65961
65936
|
async save(history) {
|
|
65962
65937
|
const targetDir = external_path_default.a.dirname(this.filePath);
|
|
65963
|
-
|
|
65964
65938
|
try {
|
|
65965
65939
|
await external_fs_default.a.promises.mkdir(targetDir, {
|
|
65966
65940
|
recursive: true
|
|
@@ -65970,9 +65944,9 @@ class history_storage_HistoryStorage {
|
|
|
65970
65944
|
throw error;
|
|
65971
65945
|
}
|
|
65972
65946
|
}
|
|
65973
|
-
|
|
65974
65947
|
await external_fs_default.a.promises.writeFile(this.filePath, JSON.stringify(history));
|
|
65975
65948
|
}
|
|
65949
|
+
|
|
65976
65950
|
/**
|
|
65977
65951
|
* Loads the history from disk. Returns an empty array if the file does
|
|
65978
65952
|
* not exist or cannot be accessed.
|
|
@@ -65980,17 +65954,13 @@ class history_storage_HistoryStorage {
|
|
|
65980
65954
|
* @returns {string[]} An array of history entries sorted from
|
|
65981
65955
|
* newest to oldest.
|
|
65982
65956
|
*/
|
|
65983
|
-
|
|
65984
|
-
|
|
65985
65957
|
async load() {
|
|
65986
65958
|
if (!(await this._canAccess(this.filePath))) {
|
|
65987
65959
|
return [];
|
|
65988
65960
|
}
|
|
65989
|
-
|
|
65990
65961
|
const content = await external_fs_default.a.promises.readFile(this.filePath, 'utf-8');
|
|
65991
65962
|
return JSON.parse(content);
|
|
65992
65963
|
}
|
|
65993
|
-
|
|
65994
65964
|
async _canAccess(filePath) {
|
|
65995
65965
|
try {
|
|
65996
65966
|
await external_fs_default.a.promises.access(filePath);
|
|
@@ -65999,7 +65969,6 @@ class history_storage_HistoryStorage {
|
|
|
65999
65969
|
return false;
|
|
66000
65970
|
}
|
|
66001
65971
|
}
|
|
66002
|
-
|
|
66003
65972
|
}
|
|
66004
65973
|
// CONCATENATED MODULE: ./src/plugin.js
|
|
66005
65974
|
|
|
@@ -66007,25 +65976,20 @@ class history_storage_HistoryStorage {
|
|
|
66007
65976
|
|
|
66008
65977
|
|
|
66009
65978
|
|
|
66010
|
-
|
|
66011
65979
|
function createPlugin() {
|
|
66012
65980
|
const store = new stores();
|
|
66013
|
-
|
|
66014
65981
|
function CompassShellPlugin() {
|
|
66015
65982
|
const [ShellComponent, setShellComponent] = Object(external_react_["useState"])(null);
|
|
66016
65983
|
const historyStorage = Object(external_react_["useRef"])(null);
|
|
66017
|
-
|
|
66018
65984
|
if (!historyStorage.current) {
|
|
66019
65985
|
const historyFilePath = getUserDataFilePath('shell-history.json');
|
|
66020
|
-
|
|
66021
65986
|
if (historyFilePath) {
|
|
66022
65987
|
historyStorage.current = new history_storage_HistoryStorage(historyFilePath);
|
|
66023
65988
|
}
|
|
66024
65989
|
}
|
|
66025
|
-
|
|
66026
65990
|
Object(external_react_["useEffect"])(() => {
|
|
66027
65991
|
let mounted = true;
|
|
66028
|
-
Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(2)]).then(__webpack_require__.bind(null,
|
|
65992
|
+
Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(2)]).then(__webpack_require__.bind(null, 473)).then(({
|
|
66029
65993
|
default: Component
|
|
66030
65994
|
}) => {
|
|
66031
65995
|
if (mounted) {
|
|
@@ -66036,7 +66000,6 @@ function createPlugin() {
|
|
|
66036
66000
|
mounted = false;
|
|
66037
66001
|
};
|
|
66038
66002
|
}, []);
|
|
66039
|
-
|
|
66040
66003
|
if (ShellComponent) {
|
|
66041
66004
|
return /*#__PURE__*/external_react_default.a.createElement(es["a" /* Provider */], {
|
|
66042
66005
|
store: store.reduxStore
|
|
@@ -66044,19 +66007,16 @@ function createPlugin() {
|
|
|
66044
66007
|
historyStorage: historyStorage.current
|
|
66045
66008
|
}));
|
|
66046
66009
|
}
|
|
66047
|
-
|
|
66048
66010
|
return null;
|
|
66049
66011
|
}
|
|
66050
|
-
|
|
66051
66012
|
return {
|
|
66052
66013
|
store,
|
|
66053
66014
|
Plugin: CompassShellPlugin
|
|
66054
66015
|
};
|
|
66055
66016
|
}
|
|
66056
|
-
|
|
66057
66017
|
/* harmony default export */ var src_plugin = (createPlugin);
|
|
66058
66018
|
// EXTERNAL MODULE: ./package.json
|
|
66059
|
-
var package_0 = __webpack_require__(
|
|
66019
|
+
var package_0 = __webpack_require__(66);
|
|
66060
66020
|
|
|
66061
66021
|
// CONCATENATED MODULE: ./src/index.js
|
|
66062
66022
|
|
|
@@ -66064,27 +66024,25 @@ const {
|
|
|
66064
66024
|
store: src_store,
|
|
66065
66025
|
Plugin
|
|
66066
66026
|
} = src_plugin();
|
|
66027
|
+
|
|
66067
66028
|
/**
|
|
66068
66029
|
* Activate all the components in the Compass Shell package.
|
|
66069
66030
|
* @param {Object} appRegistry - The Hadron appRegisrty to activate this plugin with.
|
|
66070
66031
|
**/
|
|
66071
|
-
|
|
66072
66032
|
function activate(appRegistry) {
|
|
66073
66033
|
// Register the shell plugin's role in Compass.
|
|
66074
66034
|
appRegistry.registerComponent('Global.Shell', Plugin);
|
|
66075
66035
|
appRegistry.registerStore('CompassShell.Store', src_store);
|
|
66076
66036
|
}
|
|
66037
|
+
|
|
66077
66038
|
/**
|
|
66078
66039
|
* Deactivate all the components in the Compass Shell package.
|
|
66079
66040
|
* @param {Object} appRegistry - The Hadron appRegisrty to deactivate this plugin with.
|
|
66080
66041
|
**/
|
|
66081
|
-
|
|
66082
|
-
|
|
66083
66042
|
function deactivate(appRegistry) {
|
|
66084
66043
|
appRegistry.registerComponent('Global.Shell', Plugin);
|
|
66085
66044
|
appRegistry.deregisterStore('CompassShell.Store');
|
|
66086
66045
|
}
|
|
66087
|
-
|
|
66088
66046
|
/* harmony default export */ var src = __webpack_exports__["default"] = (Plugin);
|
|
66089
66047
|
|
|
66090
66048
|
|