@azure/service-bus 7.10.0-alpha.20251030.3 → 7.10.0-alpha.20251103.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.
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeInfo.d.ts","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAYvC"}
1
+ {"version":3,"file":"runtimeInfo.d.ts","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAcvC"}
@@ -11,14 +11,19 @@ const node_os_1 = tslib_1.__importDefault(require("node:os"));
11
11
  * @internal
12
12
  */
13
13
  function getRuntimeInfo() {
14
- const runtimeInfo = {
15
- key: "Node",
16
- value: process.version,
17
- };
18
- const osInfo = {
19
- key: "OS",
20
- value: `(${node_os_1.default.arch()}-${node_os_1.default.type()}-${node_os_1.default.release()})`,
21
- };
22
- return `${runtimeInfo.key}/${runtimeInfo.value} ${osInfo.key}/${osInfo.value}`;
14
+ if (process && process.versions) {
15
+ const osInfo = `${node_os_1.default.type()} ${node_os_1.default.release()}; ${node_os_1.default.arch()}`;
16
+ const versions = process.versions;
17
+ if (versions.bun) {
18
+ return `Bun/${versions.bun} (${osInfo})`;
19
+ }
20
+ else if (versions.deno) {
21
+ return `Deno/${versions.deno} (${osInfo})`;
22
+ }
23
+ else if (versions.node) {
24
+ return `Node/${versions.node} (${osInfo})`;
25
+ }
26
+ }
27
+ return "";
23
28
  }
24
29
  //# sourceMappingURL=runtimeInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeInfo.js","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AASlC,wCAYC;;AAnBD,8DAAyB;AAEzB;;;;GAIG;AACH,SAAgB,cAAc;IAC5B,MAAM,WAAW,GAAG;QAClB,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,OAAO,CAAC,OAAO;KACvB,CAAC;IAEF,MAAM,MAAM,GAAG;QACb,GAAG,EAAE,IAAI;QACT,KAAK,EAAE,IAAI,iBAAE,CAAC,IAAI,EAAE,IAAI,iBAAE,CAAC,IAAI,EAAE,IAAI,iBAAE,CAAC,OAAO,EAAE,GAAG;KACrD,CAAC;IAEF,OAAO,GAAG,WAAW,CAAC,GAAG,IAAI,WAAW,CAAC,KAAK,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport os from \"node:os\";\n\n/**\n * Returns information about the platform this function is being run on.\n * @hidden\n * @internal\n */\nexport function getRuntimeInfo(): string {\n const runtimeInfo = {\n key: \"Node\",\n value: process.version,\n };\n\n const osInfo = {\n key: \"OS\",\n value: `(${os.arch()}-${os.type()}-${os.release()})`,\n };\n\n return `${runtimeInfo.key}/${runtimeInfo.value} ${osInfo.key}/${osInfo.value}`;\n}\n"]}
1
+ {"version":3,"file":"runtimeInfo.js","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiBlC,wCAcC;;AA7BD,8DAAyB;AAUzB;;;;GAIG;AACH,SAAgB,cAAc;IAC5B,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QAChC,MAAM,MAAM,GAAG,GAAG,iBAAE,CAAC,IAAI,EAAE,IAAI,iBAAE,CAAC,OAAO,EAAE,KAAK,iBAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAoC,CAAC;QAC9D,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACjB,OAAO,OAAO,QAAQ,CAAC,GAAG,KAAK,MAAM,GAAG,CAAC;QAC3C,CAAC;aAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,QAAQ,QAAQ,CAAC,IAAI,KAAK,MAAM,GAAG,CAAC;QAC7C,CAAC;aAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,QAAQ,QAAQ,CAAC,IAAI,KAAK,MAAM,GAAG,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport os from \"node:os\";\n\n/**\n * @internal\n */\ninterface ExtendedPlatformVersions extends NodeJS.ProcessVersions {\n bun?: string;\n deno?: string;\n}\n\n/**\n * Returns information about the platform this function is being run on.\n * @hidden\n * @internal\n */\nexport function getRuntimeInfo(): string {\n if (process && process.versions) {\n const osInfo = `${os.type()} ${os.release()}; ${os.arch()}`;\n const versions = process.versions as ExtendedPlatformVersions;\n if (versions.bun) {\n return `Bun/${versions.bun} (${osInfo})`;\n } else if (versions.deno) {\n return `Deno/${versions.deno} (${osInfo})`;\n } else if (versions.node) {\n return `Node/${versions.node} (${osInfo})`;\n }\n }\n\n return \"\";\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeInfo.d.ts","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAYvC"}
1
+ {"version":3,"file":"runtimeInfo.d.ts","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAcvC"}
@@ -7,14 +7,19 @@ import os from "node:os";
7
7
  * @internal
8
8
  */
9
9
  export function getRuntimeInfo() {
10
- const runtimeInfo = {
11
- key: "Node",
12
- value: process.version,
13
- };
14
- const osInfo = {
15
- key: "OS",
16
- value: `(${os.arch()}-${os.type()}-${os.release()})`,
17
- };
18
- return `${runtimeInfo.key}/${runtimeInfo.value} ${osInfo.key}/${osInfo.value}`;
10
+ if (process && process.versions) {
11
+ const osInfo = `${os.type()} ${os.release()}; ${os.arch()}`;
12
+ const versions = process.versions;
13
+ if (versions.bun) {
14
+ return `Bun/${versions.bun} (${osInfo})`;
15
+ }
16
+ else if (versions.deno) {
17
+ return `Deno/${versions.deno} (${osInfo})`;
18
+ }
19
+ else if (versions.node) {
20
+ return `Node/${versions.node} (${osInfo})`;
21
+ }
22
+ }
23
+ return "";
19
24
  }
20
25
  //# sourceMappingURL=runtimeInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeInfo.js","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,WAAW,GAAG;QAClB,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,OAAO,CAAC,OAAO;KACvB,CAAC;IAEF,MAAM,MAAM,GAAG;QACb,GAAG,EAAE,IAAI;QACT,KAAK,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG;KACrD,CAAC;IAEF,OAAO,GAAG,WAAW,CAAC,GAAG,IAAI,WAAW,CAAC,KAAK,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport os from \"node:os\";\n\n/**\n * Returns information about the platform this function is being run on.\n * @hidden\n * @internal\n */\nexport function getRuntimeInfo(): string {\n const runtimeInfo = {\n key: \"Node\",\n value: process.version,\n };\n\n const osInfo = {\n key: \"OS\",\n value: `(${os.arch()}-${os.type()}-${os.release()})`,\n };\n\n return `${runtimeInfo.key}/${runtimeInfo.value} ${osInfo.key}/${osInfo.value}`;\n}\n"]}
1
+ {"version":3,"file":"runtimeInfo.js","sourceRoot":"","sources":["../../../src/util/runtimeInfo.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,SAAS,CAAC;AAUzB;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QAChC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAoC,CAAC;QAC9D,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;YACjB,OAAO,OAAO,QAAQ,CAAC,GAAG,KAAK,MAAM,GAAG,CAAC;QAC3C,CAAC;aAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,QAAQ,QAAQ,CAAC,IAAI,KAAK,MAAM,GAAG,CAAC;QAC7C,CAAC;aAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,QAAQ,QAAQ,CAAC,IAAI,KAAK,MAAM,GAAG,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport os from \"node:os\";\n\n/**\n * @internal\n */\ninterface ExtendedPlatformVersions extends NodeJS.ProcessVersions {\n bun?: string;\n deno?: string;\n}\n\n/**\n * Returns information about the platform this function is being run on.\n * @hidden\n * @internal\n */\nexport function getRuntimeInfo(): string {\n if (process && process.versions) {\n const osInfo = `${os.type()} ${os.release()}; ${os.arch()}`;\n const versions = process.versions as ExtendedPlatformVersions;\n if (versions.bun) {\n return `Bun/${versions.bun} (${osInfo})`;\n } else if (versions.deno) {\n return `Deno/${versions.deno} (${osInfo})`;\n } else if (versions.node) {\n return `Node/${versions.node} (${osInfo})`;\n }\n }\n\n return \"\";\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeInfo-react-native.d.mts","sourceRoot":"","sources":["../../../src/util/runtimeInfo-react-native.mts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAavC"}
1
+ {"version":3,"file":"runtimeInfo-react-native.d.mts","sourceRoot":"","sources":["../../../src/util/runtimeInfo-react-native.mts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAGvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeInfo-react-native.mjs","sourceRoot":"","sources":["../../../src/util/runtimeInfo-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,4DAA4D;AAE1G;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC;IACtE,MAAM,WAAW,GAAG;QAClB,GAAG,EAAE,cAAc;QACnB,KAAK,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,EAAE;KACpC,CAAC;IAEF,MAAM,MAAM,GAAG;QACb,GAAG,EAAE,IAAI;QACT,KAAK,EAAE,GAAG,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,OAAO,EAAE;KAC5C,CAAC;IAEF,OAAO,GAAG,WAAW,CAAC,GAAG,IAAI,WAAW,CAAC,KAAK,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * NOTE: When moving this file, please update \"react-native\" section in package.json.\n */\nconst { Platform } = require(\"react-native\"); // eslint-disable-line @typescript-eslint/no-require-imports\n\n/**\n * Returns information about the platform this function is being run on.\n * @hidden\n * @internal\n */\nexport function getRuntimeInfo(): string {\n const { major, minor, patch } = Platform.constants.reactNativeVersion;\n const runtimeInfo = {\n key: \"react-native\",\n value: `${major}.${minor}.${patch}`,\n };\n\n const osInfo = {\n key: \"OS\",\n value: `${Platform.OS}-${Platform.Version}`,\n };\n\n return `${runtimeInfo.key}/${runtimeInfo.value} ${osInfo.key}/${osInfo.value}`;\n}\n"]}
1
+ {"version":3,"file":"runtimeInfo-react-native.mjs","sourceRoot":"","sources":["../../../src/util/runtimeInfo-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,4DAA4D;AAE1G;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC;IACtE,OAAO,gBAAgB,KAAK,IAAI,KAAK,IAAI,KAAK,KAAK,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,OAAO,GAAG,CAAC;AACxF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nconst { Platform } = require(\"react-native\"); // eslint-disable-line @typescript-eslint/no-require-imports\n\n/**\n * Returns information about the platform this function is being run on.\n * @hidden\n * @internal\n */\nexport function getRuntimeInfo(): string {\n const { major, minor, patch } = Platform.constants.reactNativeVersion;\n return `react-native/${major}.${minor}.${patch} (${Platform.OS} ${Platform.Version})`;\n}\n"]}
@@ -1,8 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- /*
4
- * NOTE: When moving this file, please update "react-native" section in package.json.
5
- */
6
3
  const { Platform } = require("react-native"); // eslint-disable-line @typescript-eslint/no-require-imports
7
4
  /**
8
5
  * Returns information about the platform this function is being run on.
@@ -11,14 +8,6 @@ const { Platform } = require("react-native"); // eslint-disable-line @typescript
11
8
  */
12
9
  export function getRuntimeInfo() {
13
10
  const { major, minor, patch } = Platform.constants.reactNativeVersion;
14
- const runtimeInfo = {
15
- key: "react-native",
16
- value: `${major}.${minor}.${patch}`,
17
- };
18
- const osInfo = {
19
- key: "OS",
20
- value: `${Platform.OS}-${Platform.Version}`,
21
- };
22
- return `${runtimeInfo.key}/${runtimeInfo.value} ${osInfo.key}/${osInfo.value}`;
11
+ return `react-native/${major}.${minor}.${patch} (${Platform.OS} ${Platform.Version})`;
23
12
  }
24
13
  //# sourceMappingURL=runtimeInfo-react-native.mjs.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@azure/service-bus",
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
- "version": "7.10.0-alpha.20251030.3",
5
+ "version": "7.10.0-alpha.20251103.2",
6
6
  "license": "MIT",
7
7
  "description": "Azure Service Bus SDK for JavaScript",
8
8
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicebus/service-bus/",
@@ -107,11 +107,11 @@
107
107
  "typescript": "~5.9.3",
108
108
  "vitest": "^3.2.3",
109
109
  "ws": "^8.0.0",
110
- "@azure-tools/test-credential": "^2.1.2",
111
110
  "@azure-tools/test-recorder": "^4.1.1",
112
111
  "@azure-tools/test-utils-vitest": "^2.0.1",
113
- "@azure/eslint-plugin-azure-sdk": "^3.0.0",
114
- "@azure/dev-tool": "^1.0.0"
112
+ "@azure/dev-tool": "^1.0.0",
113
+ "@azure-tools/test-credential": "^2.1.2",
114
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0"
115
115
  },
116
116
  "type": "module",
117
117
  "tshy": {