@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.
@@ -1,6 +1,2 @@
1
- import type { Agent } from "node:http";
2
- /**
3
- * @hidden
4
- */
5
- export declare let defaultHttpsAgent: Agent;
1
+ export {};
6
2
  //# sourceMappingURL=defaultAgent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,eAAO,IAAI,iBAAiB,EAAE,KAAK,CAAC"}
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 https = require("https"); // eslint-disable-line @typescript-eslint/no-require-imports
5
- const tls = require("tls"); // eslint-disable-line @typescript-eslint/no-require-imports
6
- // minVersion only available in Node 10+
7
- if (tls.DEFAULT_MIN_VERSION) {
8
- exports.defaultHttpsAgent = new https.Agent({
9
- keepAlive: true,
10
- minVersion: "TLSv1.2",
11
- });
12
- }
13
- else {
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":";;;AASA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,4DAA4D;AAC5F,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,4DAA4D;AAExF,wCAAwC;AACxC,IAAI,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAC5B,yBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;QAClC,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,8CAA8C;IAC9C,yBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;QAClC,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,gBAAgB;KACjC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,4DAA4D;AAC1F;;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\";\n\n/**\n * @hidden\n */\nexport let defaultHttpsAgent: Agent;\n\nconst https = require(\"https\"); // eslint-disable-line @typescript-eslint/no-require-imports\nconst tls = require(\"tls\"); // eslint-disable-line @typescript-eslint/no-require-imports\n\n// minVersion only available in Node 10+\nif (tls.DEFAULT_MIN_VERSION) {\n defaultHttpsAgent = new https.Agent({\n keepAlive: true,\n minVersion: \"TLSv1.2\",\n });\n} else {\n // Remove when Node 8 support has been dropped\n defaultHttpsAgent = new https.Agent({\n keepAlive: true,\n secureProtocol: \"TLSv1_2_method\",\n });\n}\nconst http = require(\"http\"); // eslint-disable-line @typescript-eslint/no-require-imports\n/**\n * @internal\n */\nexport const defaultHttpAgent: Agent = new http.Agent({\n keepAlive: true,\n});\n"]}
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,6 +1,2 @@
1
- import type { Agent } from "node:http";
2
- /**
3
- * @hidden
4
- */
5
- export declare let defaultHttpsAgent: Agent;
1
+ export {};
6
2
  //# sourceMappingURL=defaultAgent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,eAAO,IAAI,iBAAiB,EAAE,KAAK,CAAC"}
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
- * @hidden
4
+ * @internal
3
5
  */
4
- export let defaultHttpsAgent;
5
- const https = require("https"); // eslint-disable-line @typescript-eslint/no-require-imports
6
- const tls = require("tls"); // eslint-disable-line @typescript-eslint/no-require-imports
7
- // minVersion only available in Node 10+
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":"AAIA;;GAEG;AACH,MAAM,CAAC,IAAI,iBAAwB,CAAC;AAEpC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,4DAA4D;AAC5F,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,4DAA4D;AAExF,wCAAwC;AACxC,IAAI,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAC5B,iBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;QAClC,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,8CAA8C;IAC9C,iBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;QAClC,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,gBAAgB;KACjC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,4DAA4D;AAC1F;;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\";\n\n/**\n * @hidden\n */\nexport let defaultHttpsAgent: Agent;\n\nconst https = require(\"https\"); // eslint-disable-line @typescript-eslint/no-require-imports\nconst tls = require(\"tls\"); // eslint-disable-line @typescript-eslint/no-require-imports\n\n// minVersion only available in Node 10+\nif (tls.DEFAULT_MIN_VERSION) {\n defaultHttpsAgent = new https.Agent({\n keepAlive: true,\n minVersion: \"TLSv1.2\",\n });\n} else {\n // Remove when Node 8 support has been dropped\n defaultHttpsAgent = new https.Agent({\n keepAlive: true,\n secureProtocol: \"TLSv1_2_method\",\n });\n}\nconst http = require(\"http\"); // eslint-disable-line @typescript-eslint/no-require-imports\n/**\n * @internal\n */\nexport const defaultHttpAgent: Agent = new http.Agent({\n keepAlive: true,\n});\n"]}
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,6 +1,2 @@
1
- import type { Agent } from "node:http";
2
- /**
3
- * @hidden
4
- */
5
- export declare let defaultHttpsAgent: Agent;
1
+ export {};
6
2
  //# sourceMappingURL=defaultAgent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultAgent.d.ts","sourceRoot":"","sources":["../../../src/request/defaultAgent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,eAAO,IAAI,iBAAiB,EAAE,KAAK,CAAC"}
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
- * @hidden
4
+ * @internal
3
5
  */
4
- export let defaultHttpsAgent;
5
- const https = require("https"); // eslint-disable-line @typescript-eslint/no-require-imports
6
- const tls = require("tls"); // eslint-disable-line @typescript-eslint/no-require-imports
7
- // minVersion only available in Node 10+
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":"AAIA;;GAEG;AACH,MAAM,CAAC,IAAI,iBAAwB,CAAC;AAEpC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,4DAA4D;AAC5F,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,4DAA4D;AAExF,wCAAwC;AACxC,IAAI,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAC5B,iBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;QAClC,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,8CAA8C;IAC9C,iBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;QAClC,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,gBAAgB;KACjC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,4DAA4D;AAC1F;;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\";\n\n/**\n * @hidden\n */\nexport let defaultHttpsAgent: Agent;\n\nconst https = require(\"https\"); // eslint-disable-line @typescript-eslint/no-require-imports\nconst tls = require(\"tls\"); // eslint-disable-line @typescript-eslint/no-require-imports\n\n// minVersion only available in Node 10+\nif (tls.DEFAULT_MIN_VERSION) {\n defaultHttpsAgent = new https.Agent({\n keepAlive: true,\n minVersion: \"TLSv1.2\",\n });\n} else {\n // Remove when Node 8 support has been dropped\n defaultHttpsAgent = new https.Agent({\n keepAlive: true,\n secureProtocol: \"TLSv1_2_method\",\n });\n}\nconst http = require(\"http\"); // eslint-disable-line @typescript-eslint/no-require-imports\n/**\n * @internal\n */\nexport const defaultHttpAgent: Agent = new http.Agent({\n keepAlive: true,\n});\n"]}
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-alpha.20250514.6",
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": ">=1.0.0-alpha <1.0.0-alphb",
82
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
83
- "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
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",