@mongosh/service-provider-core 2.3.8 → 3.0.2
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/AUTHORS
CHANGED
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.textEncodingPolyfill = void 0;
|
|
4
4
|
if (typeof TextDecoder !== 'function' ||
|
|
5
5
|
typeof TextEncoder !== 'function') {
|
|
6
|
-
|
|
6
|
+
const global = (typeof globalThis === 'object' &&
|
|
7
|
+
(globalThis === null || globalThis === void 0 ? void 0 : globalThis.Object) === Object &&
|
|
8
|
+
globalThis) ||
|
|
9
|
+
Function('return this')();
|
|
10
|
+
Object.assign(global, textEncodingPolyfill());
|
|
7
11
|
}
|
|
8
12
|
function textEncodingPolyfill() {
|
|
9
13
|
class TextEncoder {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textencoder-polyfill.js","sourceRoot":"","sources":["../src/textencoder-polyfill.ts"],"names":[],"mappings":";;;AAIA,IAGE,OAAO,WAAW,KAAK,UAAU;IAGjC,OAAO,WAAW,KAAK,UAAU,EACjC,CAAC;
|
|
1
|
+
{"version":3,"file":"textencoder-polyfill.js","sourceRoot":"","sources":["../src/textencoder-polyfill.ts"],"names":[],"mappings":";;;AAIA,IAGE,OAAO,WAAW,KAAK,UAAU;IAGjC,OAAO,WAAW,KAAK,UAAU,EACjC,CAAC;IACD,MAAM,MAAM,GACV,CAAC,OAAO,UAAU,KAAK,QAAQ;QAC7B,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,MAAM;QAC7B,UAAU,CAAC;QAEb,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;IAC5B,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAChD,CAAC;AAGD,SAAS,oBAAoB;IAC3B,MAAM,WAAW;QACf,MAAM,CAAC,MAAc;YACnB,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;KACF;IACD,MAAM,WAAW;QACf,MAAM,CAAC,KAAiB;YACtB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAChD,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC9C,CAAC;KACF;IACD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AACtC,CAAC;AAEQ,oDAAoB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/service-provider-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "MongoDB Shell Core Service Provider Package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@aws-sdk/credential-providers": "^3.525.0",
|
|
47
|
-
"@mongosh/errors": "2.
|
|
47
|
+
"@mongosh/errors": "2.4.0",
|
|
48
48
|
"bson": "^6.10.1",
|
|
49
49
|
"mongodb": "^6.12.0",
|
|
50
50
|
"mongodb-build-info": "^1.7.2",
|
|
51
|
-
"mongodb-client-encryption": "^6.1.
|
|
51
|
+
"mongodb-client-encryption": "^6.1.1",
|
|
52
52
|
"mongodb-connection-string-url": "^3.0.1"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"mongodb-client-encryption": "^6.1.
|
|
55
|
+
"mongodb-client-encryption": "^6.1.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@mongodb-js/eslint-config-mongosh": "
|
|
58
|
+
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
|
|
59
59
|
"@mongodb-js/prettier-config-devtools": "^1.0.1",
|
|
60
|
-
"@mongodb-js/tsconfig-mongosh": "
|
|
60
|
+
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
|
|
61
61
|
"depcheck": "^1.4.7",
|
|
62
62
|
"eslint": "^7.25.0",
|
|
63
63
|
"prettier": "^2.8.8"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "032d3b89b55f9ddeac19afad76e7c9218a4a83f2"
|
|
66
66
|
}
|
|
@@ -10,8 +10,13 @@ if (
|
|
|
10
10
|
// @ts-ignore
|
|
11
11
|
typeof TextEncoder !== 'function'
|
|
12
12
|
) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const global =
|
|
14
|
+
(typeof globalThis === 'object' &&
|
|
15
|
+
globalThis?.Object === Object &&
|
|
16
|
+
globalThis) ||
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-implied-eval
|
|
18
|
+
Function('return this')();
|
|
19
|
+
Object.assign(global, textEncodingPolyfill());
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
// Basic encoder/decoder polyfill for java-shell environment (see above)
|