@azure/storage-queue 12.20.0-alpha.20230926.1 → 12.20.0-alpha.20230929.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 +71 -49
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
4
|
var crypto = require('crypto');
|
|
7
5
|
var coreUtil = require('@azure/core-util');
|
|
@@ -15,8 +13,7 @@ var abortController = require('@azure/abort-controller');
|
|
|
15
13
|
var coreTracing = require('@azure/core-tracing');
|
|
16
14
|
require('@azure/core-paging');
|
|
17
15
|
|
|
18
|
-
function
|
|
19
|
-
if (e && e.__esModule) return e;
|
|
16
|
+
function _interopNamespaceDefault(e) {
|
|
20
17
|
var n = Object.create(null);
|
|
21
18
|
if (e) {
|
|
22
19
|
Object.keys(e).forEach(function (k) {
|
|
@@ -29,12 +26,12 @@ function _interopNamespace(e) {
|
|
|
29
26
|
}
|
|
30
27
|
});
|
|
31
28
|
}
|
|
32
|
-
n
|
|
29
|
+
n.default = e;
|
|
33
30
|
return Object.freeze(n);
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
var coreHttpCompat__namespace = /*#__PURE__*/
|
|
37
|
-
var coreClient__namespace = /*#__PURE__*/
|
|
33
|
+
var coreHttpCompat__namespace = /*#__PURE__*/_interopNamespaceDefault(coreHttpCompat);
|
|
34
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
38
35
|
|
|
39
36
|
// Copyright (c) Microsoft Corporation.
|
|
40
37
|
// Licensed under the MIT license.
|
|
@@ -565,6 +562,7 @@ function assertResponse(response) {
|
|
|
565
562
|
}
|
|
566
563
|
|
|
567
564
|
// Copyright (c) Microsoft Corporation.
|
|
565
|
+
// Licensed under the MIT license.
|
|
568
566
|
/**
|
|
569
567
|
* Protocols for generated SAS.
|
|
570
568
|
*/
|
|
@@ -697,6 +695,7 @@ class SASQueryParameters {
|
|
|
697
695
|
}
|
|
698
696
|
|
|
699
697
|
// Copyright (c) Microsoft Corporation.
|
|
698
|
+
// Licensed under the MIT license.
|
|
700
699
|
/**
|
|
701
700
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
702
701
|
*
|
|
@@ -794,6 +793,7 @@ class BaseRequestPolicy {
|
|
|
794
793
|
}
|
|
795
794
|
|
|
796
795
|
// Copyright (c) Microsoft Corporation.
|
|
796
|
+
// Licensed under the MIT license.
|
|
797
797
|
/**
|
|
798
798
|
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
|
799
799
|
* abstract class.
|
|
@@ -821,6 +821,7 @@ class CredentialPolicy extends BaseRequestPolicy {
|
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
// Copyright (c) Microsoft Corporation.
|
|
824
|
+
// Licensed under the MIT license.
|
|
824
825
|
/**
|
|
825
826
|
* AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
|
|
826
827
|
* or for use with Shared Access Signatures (SAS).
|
|
@@ -857,6 +858,7 @@ class Credential {
|
|
|
857
858
|
}
|
|
858
859
|
|
|
859
860
|
// Copyright (c) Microsoft Corporation.
|
|
861
|
+
// Licensed under the MIT license.
|
|
860
862
|
/**
|
|
861
863
|
* AnonymousCredential provides a credentialPolicyCreator member used to create
|
|
862
864
|
* AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with
|
|
@@ -1049,6 +1051,7 @@ const StorageBlobLoggingAllowedQueryParameters = [
|
|
|
1049
1051
|
];
|
|
1050
1052
|
|
|
1051
1053
|
// Copyright (c) Microsoft Corporation.
|
|
1054
|
+
// Licensed under the MIT license.
|
|
1052
1055
|
/**
|
|
1053
1056
|
* Set URL parameter name and value. If name exists in URL parameters, old value
|
|
1054
1057
|
* will be replaced by name key. If not provide value, the parameter will be deleted.
|
|
@@ -1163,6 +1166,7 @@ async function delay(timeInMs, aborter, abortError) {
|
|
|
1163
1166
|
}
|
|
1164
1167
|
|
|
1165
1168
|
// Copyright (c) Microsoft Corporation.
|
|
1169
|
+
// Licensed under the MIT license.
|
|
1166
1170
|
/**
|
|
1167
1171
|
* StorageSharedKeyCredentialPolicy is a policy used to sign HTTP request with a shared key.
|
|
1168
1172
|
*/
|
|
@@ -1299,6 +1303,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
|
1299
1303
|
}
|
|
1300
1304
|
|
|
1301
1305
|
// Copyright (c) Microsoft Corporation.
|
|
1306
|
+
// Licensed under the MIT license.
|
|
1302
1307
|
/**
|
|
1303
1308
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
1304
1309
|
*
|
|
@@ -1335,12 +1340,14 @@ class StorageSharedKeyCredential extends Credential {
|
|
|
1335
1340
|
}
|
|
1336
1341
|
|
|
1337
1342
|
// Copyright (c) Microsoft Corporation.
|
|
1343
|
+
// Licensed under the MIT license.
|
|
1338
1344
|
/**
|
|
1339
1345
|
* The `@azure/logger` configuration for this package.
|
|
1340
1346
|
*/
|
|
1341
1347
|
const logger$1 = logger$2.createClientLogger("storage-blob");
|
|
1342
1348
|
|
|
1343
1349
|
// Copyright (c) Microsoft Corporation.
|
|
1350
|
+
// Licensed under the MIT license.
|
|
1344
1351
|
/**
|
|
1345
1352
|
* RetryPolicy types.
|
|
1346
1353
|
*/
|
|
@@ -1537,6 +1544,7 @@ class StorageRetryPolicy extends BaseRequestPolicy {
|
|
|
1537
1544
|
}
|
|
1538
1545
|
|
|
1539
1546
|
// Copyright (c) Microsoft Corporation.
|
|
1547
|
+
// Licensed under the MIT license.
|
|
1540
1548
|
/**
|
|
1541
1549
|
* StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.
|
|
1542
1550
|
*/
|
|
@@ -1560,6 +1568,7 @@ class StorageRetryPolicyFactory {
|
|
|
1560
1568
|
}
|
|
1561
1569
|
|
|
1562
1570
|
// Copyright (c) Microsoft Corporation.
|
|
1571
|
+
// Licensed under the MIT license.
|
|
1563
1572
|
let _defaultHttpClient;
|
|
1564
1573
|
function getCachedDefaultHttpClient() {
|
|
1565
1574
|
if (!_defaultHttpClient) {
|
|
@@ -1569,6 +1578,7 @@ function getCachedDefaultHttpClient() {
|
|
|
1569
1578
|
}
|
|
1570
1579
|
|
|
1571
1580
|
// Copyright (c) Microsoft Corporation.
|
|
1581
|
+
// Licensed under the MIT license.
|
|
1572
1582
|
/**
|
|
1573
1583
|
* The programmatic identifier of the StorageBrowserPolicy.
|
|
1574
1584
|
*/
|
|
@@ -1596,6 +1606,7 @@ function storageBrowserPolicy() {
|
|
|
1596
1606
|
}
|
|
1597
1607
|
|
|
1598
1608
|
// Copyright (c) Microsoft Corporation.
|
|
1609
|
+
// Licensed under the MIT license.
|
|
1599
1610
|
/**
|
|
1600
1611
|
* Name of the {@link storageRetryPolicy}
|
|
1601
1612
|
*/
|
|
@@ -1754,6 +1765,7 @@ function storageRetryPolicy(options = {}) {
|
|
|
1754
1765
|
}
|
|
1755
1766
|
|
|
1756
1767
|
// Copyright (c) Microsoft Corporation.
|
|
1768
|
+
// Licensed under the MIT license.
|
|
1757
1769
|
/**
|
|
1758
1770
|
* The programmatic identifier of the storageSharedKeyCredentialPolicy.
|
|
1759
1771
|
*/
|
|
@@ -1881,6 +1893,7 @@ function storageSharedKeyCredentialPolicy(options) {
|
|
|
1881
1893
|
}
|
|
1882
1894
|
|
|
1883
1895
|
// Copyright (c) Microsoft Corporation.
|
|
1896
|
+
// Licensed under the MIT license.
|
|
1884
1897
|
/**
|
|
1885
1898
|
* StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
|
|
1886
1899
|
*
|
|
@@ -1923,6 +1936,7 @@ class StorageBrowserPolicy extends BaseRequestPolicy {
|
|
|
1923
1936
|
}
|
|
1924
1937
|
|
|
1925
1938
|
// Copyright (c) Microsoft Corporation.
|
|
1939
|
+
// Licensed under the MIT license.
|
|
1926
1940
|
/**
|
|
1927
1941
|
* StorageBrowserPolicyFactory is a factory class helping generating StorageBrowserPolicy objects.
|
|
1928
1942
|
*/
|
|
@@ -1939,6 +1953,7 @@ class StorageBrowserPolicyFactory {
|
|
|
1939
1953
|
}
|
|
1940
1954
|
|
|
1941
1955
|
// Copyright (c) Microsoft Corporation.
|
|
1956
|
+
// Licensed under the MIT license.
|
|
1942
1957
|
/**
|
|
1943
1958
|
* A helper to decide if a given argument satisfies the Pipeline contract
|
|
1944
1959
|
* @param pipeline - An argument that may be a Pipeline
|
|
@@ -3890,54 +3905,54 @@ const MessageIdDeleteExceptionHeaders = {
|
|
|
3890
3905
|
|
|
3891
3906
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
3892
3907
|
__proto__: null,
|
|
3893
|
-
QueueServiceProperties: QueueServiceProperties,
|
|
3894
|
-
Logging: Logging,
|
|
3895
|
-
RetentionPolicy: RetentionPolicy,
|
|
3896
|
-
Metrics: Metrics,
|
|
3897
|
-
CorsRule: CorsRule,
|
|
3898
|
-
StorageError: StorageError,
|
|
3899
|
-
QueueServiceStatistics: QueueServiceStatistics,
|
|
3900
|
-
GeoReplication: GeoReplication,
|
|
3901
|
-
ListQueuesSegmentResponse: ListQueuesSegmentResponse,
|
|
3902
|
-
QueueItem: QueueItem,
|
|
3903
|
-
SignedIdentifier: SignedIdentifier,
|
|
3904
3908
|
AccessPolicy: AccessPolicy,
|
|
3909
|
+
CorsRule: CorsRule,
|
|
3905
3910
|
DequeuedMessageItem: DequeuedMessageItem,
|
|
3906
|
-
QueueMessage: QueueMessage,
|
|
3907
3911
|
EnqueuedMessage: EnqueuedMessage,
|
|
3912
|
+
GeoReplication: GeoReplication,
|
|
3913
|
+
ListQueuesSegmentResponse: ListQueuesSegmentResponse,
|
|
3914
|
+
Logging: Logging,
|
|
3915
|
+
MessageIdDeleteExceptionHeaders: MessageIdDeleteExceptionHeaders,
|
|
3916
|
+
MessageIdDeleteHeaders: MessageIdDeleteHeaders,
|
|
3917
|
+
MessageIdUpdateExceptionHeaders: MessageIdUpdateExceptionHeaders,
|
|
3918
|
+
MessageIdUpdateHeaders: MessageIdUpdateHeaders,
|
|
3919
|
+
MessagesClearExceptionHeaders: MessagesClearExceptionHeaders,
|
|
3920
|
+
MessagesClearHeaders: MessagesClearHeaders,
|
|
3921
|
+
MessagesDequeueExceptionHeaders: MessagesDequeueExceptionHeaders,
|
|
3922
|
+
MessagesDequeueHeaders: MessagesDequeueHeaders,
|
|
3923
|
+
MessagesEnqueueExceptionHeaders: MessagesEnqueueExceptionHeaders,
|
|
3924
|
+
MessagesEnqueueHeaders: MessagesEnqueueHeaders,
|
|
3925
|
+
MessagesPeekExceptionHeaders: MessagesPeekExceptionHeaders,
|
|
3926
|
+
MessagesPeekHeaders: MessagesPeekHeaders,
|
|
3927
|
+
Metrics: Metrics,
|
|
3908
3928
|
PeekedMessageItem: PeekedMessageItem,
|
|
3909
|
-
ServiceSetPropertiesHeaders: ServiceSetPropertiesHeaders,
|
|
3910
|
-
ServiceSetPropertiesExceptionHeaders: ServiceSetPropertiesExceptionHeaders,
|
|
3911
|
-
ServiceGetPropertiesHeaders: ServiceGetPropertiesHeaders,
|
|
3912
|
-
ServiceGetPropertiesExceptionHeaders: ServiceGetPropertiesExceptionHeaders,
|
|
3913
|
-
ServiceGetStatisticsHeaders: ServiceGetStatisticsHeaders,
|
|
3914
|
-
ServiceGetStatisticsExceptionHeaders: ServiceGetStatisticsExceptionHeaders,
|
|
3915
|
-
ServiceListQueuesSegmentHeaders: ServiceListQueuesSegmentHeaders,
|
|
3916
|
-
ServiceListQueuesSegmentExceptionHeaders: ServiceListQueuesSegmentExceptionHeaders,
|
|
3917
|
-
QueueCreateHeaders: QueueCreateHeaders,
|
|
3918
3929
|
QueueCreateExceptionHeaders: QueueCreateExceptionHeaders,
|
|
3919
|
-
|
|
3930
|
+
QueueCreateHeaders: QueueCreateHeaders,
|
|
3920
3931
|
QueueDeleteExceptionHeaders: QueueDeleteExceptionHeaders,
|
|
3921
|
-
|
|
3922
|
-
QueueGetPropertiesExceptionHeaders: QueueGetPropertiesExceptionHeaders,
|
|
3923
|
-
QueueSetMetadataHeaders: QueueSetMetadataHeaders,
|
|
3924
|
-
QueueSetMetadataExceptionHeaders: QueueSetMetadataExceptionHeaders,
|
|
3925
|
-
QueueGetAccessPolicyHeaders: QueueGetAccessPolicyHeaders,
|
|
3932
|
+
QueueDeleteHeaders: QueueDeleteHeaders,
|
|
3926
3933
|
QueueGetAccessPolicyExceptionHeaders: QueueGetAccessPolicyExceptionHeaders,
|
|
3927
|
-
|
|
3934
|
+
QueueGetAccessPolicyHeaders: QueueGetAccessPolicyHeaders,
|
|
3935
|
+
QueueGetPropertiesExceptionHeaders: QueueGetPropertiesExceptionHeaders,
|
|
3936
|
+
QueueGetPropertiesHeaders: QueueGetPropertiesHeaders,
|
|
3937
|
+
QueueItem: QueueItem,
|
|
3938
|
+
QueueMessage: QueueMessage,
|
|
3939
|
+
QueueServiceProperties: QueueServiceProperties,
|
|
3940
|
+
QueueServiceStatistics: QueueServiceStatistics,
|
|
3928
3941
|
QueueSetAccessPolicyExceptionHeaders: QueueSetAccessPolicyExceptionHeaders,
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3942
|
+
QueueSetAccessPolicyHeaders: QueueSetAccessPolicyHeaders,
|
|
3943
|
+
QueueSetMetadataExceptionHeaders: QueueSetMetadataExceptionHeaders,
|
|
3944
|
+
QueueSetMetadataHeaders: QueueSetMetadataHeaders,
|
|
3945
|
+
RetentionPolicy: RetentionPolicy,
|
|
3946
|
+
ServiceGetPropertiesExceptionHeaders: ServiceGetPropertiesExceptionHeaders,
|
|
3947
|
+
ServiceGetPropertiesHeaders: ServiceGetPropertiesHeaders,
|
|
3948
|
+
ServiceGetStatisticsExceptionHeaders: ServiceGetStatisticsExceptionHeaders,
|
|
3949
|
+
ServiceGetStatisticsHeaders: ServiceGetStatisticsHeaders,
|
|
3950
|
+
ServiceListQueuesSegmentExceptionHeaders: ServiceListQueuesSegmentExceptionHeaders,
|
|
3951
|
+
ServiceListQueuesSegmentHeaders: ServiceListQueuesSegmentHeaders,
|
|
3952
|
+
ServiceSetPropertiesExceptionHeaders: ServiceSetPropertiesExceptionHeaders,
|
|
3953
|
+
ServiceSetPropertiesHeaders: ServiceSetPropertiesHeaders,
|
|
3954
|
+
SignedIdentifier: SignedIdentifier,
|
|
3955
|
+
StorageError: StorageError
|
|
3941
3956
|
});
|
|
3942
3957
|
|
|
3943
3958
|
/*
|
|
@@ -4945,7 +4960,7 @@ const deleteOperationSpec = {
|
|
|
4945
4960
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4946
4961
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4947
4962
|
*/
|
|
4948
|
-
|
|
4963
|
+
let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.ExtendedServiceClient {
|
|
4949
4964
|
/**
|
|
4950
4965
|
* Initializes a new instance of the StorageClient class.
|
|
4951
4966
|
* @param url The URL of the service account, queue or message that is the target of the desired
|
|
@@ -4981,9 +4996,10 @@ class StorageClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
|
|
|
4981
4996
|
this.messages = new MessagesImpl(this);
|
|
4982
4997
|
this.messageId = new MessageIdImpl(this);
|
|
4983
4998
|
}
|
|
4984
|
-
}
|
|
4999
|
+
};
|
|
4985
5000
|
|
|
4986
5001
|
// Copyright (c) Microsoft Corporation.
|
|
5002
|
+
// Licensed under the MIT license.
|
|
4987
5003
|
/**
|
|
4988
5004
|
* @internal
|
|
4989
5005
|
*/
|
|
@@ -5000,6 +5016,7 @@ class StorageContextClient extends StorageClient$1 {
|
|
|
5000
5016
|
}
|
|
5001
5017
|
|
|
5002
5018
|
// Copyright (c) Microsoft Corporation.
|
|
5019
|
+
// Licensed under the MIT license.
|
|
5003
5020
|
/**
|
|
5004
5021
|
* A StorageClient represents a based client class for {@link QueueServiceClient}, {@link QueueClient} and etc.
|
|
5005
5022
|
*/
|
|
@@ -5037,6 +5054,7 @@ function getStorageClientContext(url, pipeline) {
|
|
|
5037
5054
|
}
|
|
5038
5055
|
|
|
5039
5056
|
// Copyright (c) Microsoft Corporation.
|
|
5057
|
+
// Licensed under the MIT license.
|
|
5040
5058
|
/**
|
|
5041
5059
|
* Creates a span using the global tracer.
|
|
5042
5060
|
* @internal
|
|
@@ -5130,6 +5148,7 @@ class QueueSASPermissions {
|
|
|
5130
5148
|
}
|
|
5131
5149
|
|
|
5132
5150
|
// Copyright (c) Microsoft Corporation.
|
|
5151
|
+
// Licensed under the MIT license.
|
|
5133
5152
|
/**
|
|
5134
5153
|
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
5135
5154
|
*
|
|
@@ -5182,6 +5201,7 @@ function getCanonicalName(accountName, queueName) {
|
|
|
5182
5201
|
}
|
|
5183
5202
|
|
|
5184
5203
|
// Copyright (c) Microsoft Corporation.
|
|
5204
|
+
// Licensed under the MIT license.
|
|
5185
5205
|
/**
|
|
5186
5206
|
* A QueueClient represents a URL to an Azure Storage Queue's messages allowing you to manipulate its messages.
|
|
5187
5207
|
*/
|
|
@@ -5719,6 +5739,7 @@ class QueueClient extends StorageClient {
|
|
|
5719
5739
|
}
|
|
5720
5740
|
|
|
5721
5741
|
// Copyright (c) Microsoft Corporation.
|
|
5742
|
+
// Licensed under the MIT license.
|
|
5722
5743
|
/**
|
|
5723
5744
|
* A QueueServiceClient represents a URL to the Azure Storage Queue service allowing you
|
|
5724
5745
|
* to manipulate queues.
|
|
@@ -6084,6 +6105,7 @@ class QueueServiceClient extends StorageClient {
|
|
|
6084
6105
|
}
|
|
6085
6106
|
|
|
6086
6107
|
// Copyright (c) Microsoft Corporation.
|
|
6108
|
+
// Licensed under the MIT license.
|
|
6087
6109
|
/**
|
|
6088
6110
|
* The `@azure/logger` configuration for this package.
|
|
6089
6111
|
*/
|