@azure/cosmos 4.4.1-alpha.20250514.6 → 4.4.1
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/commonjs/request/defaultAgent.d.ts +1 -5
- package/dist/commonjs/request/defaultAgent.d.ts.map +1 -1
- package/dist/commonjs/request/defaultAgent.js +10 -17
- package/dist/commonjs/request/defaultAgent.js.map +1 -1
- package/dist/esm/request/defaultAgent.d.ts +1 -5
- package/dist/esm/request/defaultAgent.d.ts.map +1 -1
- package/dist/esm/request/defaultAgent.js +7 -19
- package/dist/esm/request/defaultAgent.js.map +1 -1
- package/dist/react-native/request/defaultAgent.d.ts +1 -5
- package/dist/react-native/request/defaultAgent.d.ts.map +1 -1
- package/dist/react-native/request/defaultAgent.js +7 -19
- package/dist/react-native/request/defaultAgent.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultHttpAgent = exports.defaultHttpsAgent = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Remove when Node 8 support has been dropped
|
|
15
|
-
exports.defaultHttpsAgent = new https.Agent({
|
|
16
|
-
keepAlive: true,
|
|
17
|
-
secureProtocol: "TLSv1_2_method",
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
const http = require("http"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const https = tslib_1.__importStar(require("node:https"));
|
|
6
|
+
const http = tslib_1.__importStar(require("node:http"));
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
exports.defaultHttpsAgent = new https.Agent({
|
|
11
|
+
keepAlive: true,
|
|
12
|
+
minVersion: "TLSv1.2",
|
|
13
|
+
});
|
|
21
14
|
/**
|
|
22
15
|
* @internal
|
|
23
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAgent.js","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultAgent.js","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":";;;;AAGA,0DAAoC;AACpC,wDAAkC;AAElC;;GAEG;AACU,QAAA,iBAAiB,GAAU,IAAI,KAAK,CAAC,KAAK,CAAC;IACtD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,gBAAgB,GAAU,IAAI,IAAI,CAAC,KAAK,CAAC;IACpD,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { Agent } from \"node:http\";\nimport * as https from \"node:https\";\nimport * as http from \"node:http\";\n\n/**\n * @internal\n */\nexport const defaultHttpsAgent: Agent = new https.Agent({\n keepAlive: true,\n minVersion: \"TLSv1.2\",\n});\n\n/**\n * @internal\n */\nexport const defaultHttpAgent: Agent = new http.Agent({\n keepAlive: true,\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
+
import * as https from "node:https";
|
|
2
|
+
import * as http from "node:http";
|
|
1
3
|
/**
|
|
2
|
-
* @
|
|
4
|
+
* @internal
|
|
3
5
|
*/
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (tls.DEFAULT_MIN_VERSION) {
|
|
9
|
-
defaultHttpsAgent = new https.Agent({
|
|
10
|
-
keepAlive: true,
|
|
11
|
-
minVersion: "TLSv1.2",
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
// Remove when Node 8 support has been dropped
|
|
16
|
-
defaultHttpsAgent = new https.Agent({
|
|
17
|
-
keepAlive: true,
|
|
18
|
-
secureProtocol: "TLSv1_2_method",
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const http = require("http"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
6
|
+
export const defaultHttpsAgent = new https.Agent({
|
|
7
|
+
keepAlive: true,
|
|
8
|
+
minVersion: "TLSv1.2",
|
|
9
|
+
});
|
|
22
10
|
/**
|
|
23
11
|
* @internal
|
|
24
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAgent.js","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultAgent.js","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAU,IAAI,KAAK,CAAC,KAAK,CAAC;IACtD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAU,IAAI,IAAI,CAAC,KAAK,CAAC;IACpD,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { Agent } from \"node:http\";\nimport * as https from \"node:https\";\nimport * as http from \"node:http\";\n\n/**\n * @internal\n */\nexport const defaultHttpsAgent: Agent = new https.Agent({\n keepAlive: true,\n minVersion: \"TLSv1.2\",\n});\n\n/**\n * @internal\n */\nexport const defaultHttpAgent: Agent = new http.Agent({\n keepAlive: true,\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
+
import * as https from "node:https";
|
|
2
|
+
import * as http from "node:http";
|
|
1
3
|
/**
|
|
2
|
-
* @
|
|
4
|
+
* @internal
|
|
3
5
|
*/
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (tls.DEFAULT_MIN_VERSION) {
|
|
9
|
-
defaultHttpsAgent = new https.Agent({
|
|
10
|
-
keepAlive: true,
|
|
11
|
-
minVersion: "TLSv1.2",
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
// Remove when Node 8 support has been dropped
|
|
16
|
-
defaultHttpsAgent = new https.Agent({
|
|
17
|
-
keepAlive: true,
|
|
18
|
-
secureProtocol: "TLSv1_2_method",
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const http = require("http"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
6
|
+
export const defaultHttpsAgent = new https.Agent({
|
|
7
|
+
keepAlive: true,
|
|
8
|
+
minVersion: "TLSv1.2",
|
|
9
|
+
});
|
|
22
10
|
/**
|
|
23
11
|
* @internal
|
|
24
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAgent.js","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultAgent.js","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAU,IAAI,KAAK,CAAC,KAAK,CAAC;IACtD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAU,IAAI,IAAI,CAAC,KAAK,CAAC;IACpD,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { Agent } from \"node:http\";\nimport * as https from \"node:https\";\nimport * as http from \"node:http\";\n\n/**\n * @internal\n */\nexport const defaultHttpsAgent: Agent = new https.Agent({\n keepAlive: true,\n minVersion: \"TLSv1.2\",\n});\n\n/**\n * @internal\n */\nexport const defaultHttpAgent: Agent = new http.Agent({\n keepAlive: true,\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/cosmos",
|
|
3
|
-
"version": "4.4.1
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"keywords": [
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"tslib": "^2.8.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@azure-tools/test-utils-vitest": "
|
|
82
|
-
"@azure/dev-tool": "
|
|
83
|
-
"@azure/eslint-plugin-azure-sdk": "
|
|
81
|
+
"@azure-tools/test-utils-vitest": "^1.0.0",
|
|
82
|
+
"@azure/dev-tool": "^1.0.0",
|
|
83
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
84
84
|
"@azure/identity": "^4.8.0",
|
|
85
85
|
"@azure/logger": "^1.1.4",
|
|
86
86
|
"@types/debug": "^4.1.4",
|