@azure/storage-queue 12.20.0-alpha.20230720.6 → 12.20.0-alpha.20230823.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/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js +2 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js +7 -3
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/storageClient.js +1 -1
- package/dist-esm/storage-queue/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-queue/src/utils/utils.common.js +7 -3
- package/dist-esm/storage-queue/src/utils/utils.common.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -465,7 +465,11 @@ function extractConnectionStringParts(connectionString) {
|
|
|
465
465
|
else {
|
|
466
466
|
// SAS connection string
|
|
467
467
|
const accountSas = getValueInConnString(connectionString, "SharedAccessSignature");
|
|
468
|
-
|
|
468
|
+
let accountName = getValueInConnString(connectionString, "AccountName");
|
|
469
|
+
// if accountName is empty, try to read it from BlobEndpoint
|
|
470
|
+
if (!accountName) {
|
|
471
|
+
accountName = getAccountNameFromUrl(queueEndpoint);
|
|
472
|
+
}
|
|
469
473
|
if (!queueEndpoint) {
|
|
470
474
|
throw new Error("Invalid QueueEndpoint in the provided SAS Connection String");
|
|
471
475
|
}
|
|
@@ -522,10 +526,10 @@ function getAccountNameFromUrl(url) {
|
|
|
522
526
|
function isIpEndpointStyle(parsedUrl) {
|
|
523
527
|
const host = parsedUrl.host;
|
|
524
528
|
// Case 1: Ipv6, use a broad regex to find out candidates whose host contains two ':'.
|
|
525
|
-
// Case 2: localhost(:port), use broad regex to match port part.
|
|
529
|
+
// Case 2: localhost(:port) or host.docker.internal, use broad regex to match port part.
|
|
526
530
|
// Case 3: Ipv4, use broad regex which just check if host contains Ipv4.
|
|
527
531
|
// For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html.
|
|
528
|
-
return (/^.*:.*:.*$|^localhost(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(host) ||
|
|
532
|
+
return (/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(host) ||
|
|
529
533
|
(Boolean(parsedUrl.port) && PathStylePorts.includes(parsedUrl.port)));
|
|
530
534
|
}
|
|
531
535
|
/**
|
|
@@ -4019,7 +4023,7 @@ const timeoutInSeconds = {
|
|
|
4019
4023
|
const version = {
|
|
4020
4024
|
parameterPath: "version",
|
|
4021
4025
|
mapper: {
|
|
4022
|
-
defaultValue: "
|
|
4026
|
+
defaultValue: "2023-01-03",
|
|
4023
4027
|
isConstant: true,
|
|
4024
4028
|
serializedName: "x-ms-version",
|
|
4025
4029
|
type: {
|
|
@@ -4971,7 +4975,7 @@ class StorageClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
|
|
|
4971
4975
|
// Parameter assignments
|
|
4972
4976
|
this.url = url;
|
|
4973
4977
|
// Assigning values to Constant parameters
|
|
4974
|
-
this.version = options.version || "
|
|
4978
|
+
this.version = options.version || "2023-01-03";
|
|
4975
4979
|
this.service = new ServiceImpl(this);
|
|
4976
4980
|
this.queue = new QueueImpl(this);
|
|
4977
4981
|
this.messages = new MessagesImpl(this);
|