@ms-cloudpack/remote-cache 0.8.12 → 0.8.14
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/{AzureRemoteCacheClient-SXMK4YHG.js → AzureRemoteCacheClient-RYQX2JZE.js} +2 -2
- package/dist/{ReporterDecorator-FPB3SR62.js → ReporterDecorator-V2YEIC5V.js} +2 -2
- package/dist/{chunk-4MIMLTI6.js → chunk-S3ZJNZYB.js} +33 -184
- package/dist/{chunk-OSKYHKJO.js → chunk-WR3ABZS6.js} +149 -49
- package/dist/{getCredential-FLIB2Y4Q.js → getCredential-TGHZRNZU.js} +1304 -491
- package/dist/{getListOfBlobs-LFPGQVDD.js → getListOfBlobs-6GZGACOS.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +5 -5
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
require_commonjs2 as require_commonjs3,
|
|
10
10
|
require_commonjs3 as require_commonjs4,
|
|
11
11
|
require_commonjs4 as require_commonjs5,
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
require_commonjs5 as require_commonjs6
|
|
13
|
+
} from "./chunk-S3ZJNZYB.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
16
16
|
__name,
|
|
@@ -70,7 +70,7 @@ var require_keyCredential = __commonJS({
|
|
|
70
70
|
"use strict";
|
|
71
71
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72
72
|
exports.isKeyCredential = isKeyCredential;
|
|
73
|
-
var core_util_1 =
|
|
73
|
+
var core_util_1 = require_commonjs3();
|
|
74
74
|
function isKeyCredential(credential) {
|
|
75
75
|
return (0, core_util_1.isObjectWithProperties)(credential, ["key"]) && typeof credential.key === "string";
|
|
76
76
|
}
|
|
@@ -85,7 +85,7 @@ var require_azureNamedKeyCredential = __commonJS({
|
|
|
85
85
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
86
86
|
exports.AzureNamedKeyCredential = void 0;
|
|
87
87
|
exports.isNamedKeyCredential = isNamedKeyCredential;
|
|
88
|
-
var core_util_1 =
|
|
88
|
+
var core_util_1 = require_commonjs3();
|
|
89
89
|
var _AzureNamedKeyCredential = class _AzureNamedKeyCredential {
|
|
90
90
|
/**
|
|
91
91
|
* The value of the key to be used in authentication.
|
|
@@ -147,7 +147,7 @@ var require_azureSASCredential = __commonJS({
|
|
|
147
147
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
148
148
|
exports.AzureSASCredential = void 0;
|
|
149
149
|
exports.isSASCredential = isSASCredential;
|
|
150
|
-
var core_util_1 =
|
|
150
|
+
var core_util_1 = require_commonjs3();
|
|
151
151
|
var _AzureSASCredential = class _AzureSASCredential {
|
|
152
152
|
/**
|
|
153
153
|
* The value of the shared access signature to be used in authentication
|
|
@@ -207,7 +207,7 @@ var require_tokenCredential = __commonJS({
|
|
|
207
207
|
});
|
|
208
208
|
|
|
209
209
|
// ../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/index.js
|
|
210
|
-
var
|
|
210
|
+
var require_commonjs7 = __commonJS({
|
|
211
211
|
"../../node_modules/.store/@azure-core-auth-npm-1.8.0-4c3deacbe4/package/dist/commonjs/index.js"(exports) {
|
|
212
212
|
"use strict";
|
|
213
213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -273,7 +273,7 @@ var require_util = __commonJS({
|
|
|
273
273
|
"use strict";
|
|
274
274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
275
275
|
exports.HttpHeaders = exports.toHttpHeadersLike = exports.toWebResourceLike = exports.toPipelineRequest = void 0;
|
|
276
|
-
var core_rest_pipeline_1 =
|
|
276
|
+
var core_rest_pipeline_1 = require_commonjs5();
|
|
277
277
|
var originalRequestSymbol = Symbol("Original PipelineRequest");
|
|
278
278
|
var originalClientRequestSymbol = Symbol.for("@azure/core-client original request");
|
|
279
279
|
function toPipelineRequest(webResource, options = {}) {
|
|
@@ -521,7 +521,7 @@ var require_response = __commonJS({
|
|
|
521
521
|
"use strict";
|
|
522
522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
523
523
|
exports.toPipelineResponse = exports.toCompatResponse = void 0;
|
|
524
|
-
var core_rest_pipeline_1 =
|
|
524
|
+
var core_rest_pipeline_1 = require_commonjs5();
|
|
525
525
|
var util_js_1 = require_util();
|
|
526
526
|
var originalResponse = Symbol("Original FullOperationResponse");
|
|
527
527
|
function toCompatResponse(response, options) {
|
|
@@ -580,8 +580,8 @@ var require_extendedClient = __commonJS({
|
|
|
580
580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
581
581
|
exports.ExtendedServiceClient = void 0;
|
|
582
582
|
var disableKeepAlivePolicy_js_1 = require_disableKeepAlivePolicy();
|
|
583
|
-
var core_rest_pipeline_1 =
|
|
584
|
-
var core_client_1 =
|
|
583
|
+
var core_rest_pipeline_1 = require_commonjs5();
|
|
584
|
+
var core_client_1 = require_commonjs6();
|
|
585
585
|
var response_js_1 = require_response();
|
|
586
586
|
var _ExtendedServiceClient = class _ExtendedServiceClient extends core_client_1.ServiceClient {
|
|
587
587
|
constructor(options) {
|
|
@@ -700,7 +700,7 @@ var require_httpClientAdapter = __commonJS({
|
|
|
700
700
|
});
|
|
701
701
|
|
|
702
702
|
// ../../node_modules/.store/@azure-core-http-compat-npm-2.1.2-a61ffda496/package/dist/commonjs/index.js
|
|
703
|
-
var
|
|
703
|
+
var require_commonjs8 = __commonJS({
|
|
704
704
|
"../../node_modules/.store/@azure-core-http-compat-npm-2.1.2-a61ffda496/package/dist/commonjs/index.js"(exports) {
|
|
705
705
|
"use strict";
|
|
706
706
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2467,9 +2467,9 @@ var require_fxp = __commonJS({
|
|
|
2467
2467
|
}
|
|
2468
2468
|
});
|
|
2469
2469
|
|
|
2470
|
-
// ../../node_modules/.store/@azure-core-xml-npm-1.4.
|
|
2470
|
+
// ../../node_modules/.store/@azure-core-xml-npm-1.4.4-cc6e78ca26/package/dist/commonjs/xml.common.js
|
|
2471
2471
|
var require_xml_common = __commonJS({
|
|
2472
|
-
"../../node_modules/.store/@azure-core-xml-npm-1.4.
|
|
2472
|
+
"../../node_modules/.store/@azure-core-xml-npm-1.4.4-cc6e78ca26/package/dist/commonjs/xml.common.js"(exports) {
|
|
2473
2473
|
"use strict";
|
|
2474
2474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2475
2475
|
exports.XML_CHARKEY = exports.XML_ATTRKEY = void 0;
|
|
@@ -2478,9 +2478,9 @@ var require_xml_common = __commonJS({
|
|
|
2478
2478
|
}
|
|
2479
2479
|
});
|
|
2480
2480
|
|
|
2481
|
-
// ../../node_modules/.store/@azure-core-xml-npm-1.4.
|
|
2481
|
+
// ../../node_modules/.store/@azure-core-xml-npm-1.4.4-cc6e78ca26/package/dist/commonjs/xml.js
|
|
2482
2482
|
var require_xml = __commonJS({
|
|
2483
|
-
"../../node_modules/.store/@azure-core-xml-npm-1.4.
|
|
2483
|
+
"../../node_modules/.store/@azure-core-xml-npm-1.4.4-cc6e78ca26/package/dist/commonjs/xml.js"(exports) {
|
|
2484
2484
|
"use strict";
|
|
2485
2485
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2486
2486
|
exports.stringifyXML = stringifyXML;
|
|
@@ -2539,9 +2539,9 @@ var require_xml = __commonJS({
|
|
|
2539
2539
|
}
|
|
2540
2540
|
});
|
|
2541
2541
|
|
|
2542
|
-
// ../../node_modules/.store/@azure-core-xml-npm-1.4.
|
|
2543
|
-
var
|
|
2544
|
-
"../../node_modules/.store/@azure-core-xml-npm-1.4.
|
|
2542
|
+
// ../../node_modules/.store/@azure-core-xml-npm-1.4.4-cc6e78ca26/package/dist/commonjs/index.js
|
|
2543
|
+
var require_commonjs9 = __commonJS({
|
|
2544
|
+
"../../node_modules/.store/@azure-core-xml-npm-1.4.4-cc6e78ca26/package/dist/commonjs/index.js"(exports) {
|
|
2545
2545
|
"use strict";
|
|
2546
2546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2547
2547
|
exports.XML_CHARKEY = exports.XML_ATTRKEY = exports.parseXML = exports.stringifyXML = void 0;
|
|
@@ -3073,7 +3073,7 @@ var require_poller = __commonJS({
|
|
|
3073
3073
|
exports.buildCreatePoller = void 0;
|
|
3074
3074
|
var operation_js_1 = require_operation();
|
|
3075
3075
|
var constants_js_1 = require_constants();
|
|
3076
|
-
var core_util_1 =
|
|
3076
|
+
var core_util_1 = require_commonjs3();
|
|
3077
3077
|
var createStateProxy = /* @__PURE__ */ __name(() => ({
|
|
3078
3078
|
/**
|
|
3079
3079
|
* The state at this point is created to be of type OperationState<TResult>.
|
|
@@ -3748,7 +3748,7 @@ var require_pollOperation = __commonJS({
|
|
|
3748
3748
|
});
|
|
3749
3749
|
|
|
3750
3750
|
// ../../node_modules/.store/@azure-core-lro-npm-2.7.2-8c7fa05bf6/package/dist/commonjs/index.js
|
|
3751
|
-
var
|
|
3751
|
+
var require_commonjs10 = __commonJS({
|
|
3752
3752
|
"../../node_modules/.store/@azure-core-lro-npm-2.7.2-8c7fa05bf6/package/dist/commonjs/index.js"(exports) {
|
|
3753
3753
|
"use strict";
|
|
3754
3754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -3764,24 +3764,24 @@ var require_commonjs9 = __commonJS({
|
|
|
3764
3764
|
}
|
|
3765
3765
|
});
|
|
3766
3766
|
|
|
3767
|
-
// ../../node_modules/.store/@azure-storage-blob-npm-12.
|
|
3768
|
-
var
|
|
3769
|
-
"../../node_modules/.store/@azure-storage-blob-npm-12.
|
|
3767
|
+
// ../../node_modules/.store/@azure-storage-blob-npm-12.25.0-f8d7543f38/package/dist/index.js
|
|
3768
|
+
var require_dist = __commonJS({
|
|
3769
|
+
"../../node_modules/.store/@azure-storage-blob-npm-12.25.0-f8d7543f38/package/dist/index.js"(exports) {
|
|
3770
3770
|
"use strict";
|
|
3771
3771
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3772
|
-
var coreRestPipeline =
|
|
3772
|
+
var coreRestPipeline = require_commonjs5();
|
|
3773
3773
|
var tslib = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
3774
|
-
var coreAuth =
|
|
3775
|
-
var coreUtil =
|
|
3776
|
-
var coreHttpCompat =
|
|
3777
|
-
var coreClient =
|
|
3778
|
-
var coreXml =
|
|
3774
|
+
var coreAuth = require_commonjs7();
|
|
3775
|
+
var coreUtil = require_commonjs3();
|
|
3776
|
+
var coreHttpCompat = require_commonjs8();
|
|
3777
|
+
var coreClient = require_commonjs6();
|
|
3778
|
+
var coreXml = require_commonjs9();
|
|
3779
3779
|
var logger$1 = require_commonjs();
|
|
3780
|
-
var abortController =
|
|
3780
|
+
var abortController = require_commonjs2();
|
|
3781
3781
|
var crypto = __require("crypto");
|
|
3782
|
-
var coreTracing =
|
|
3782
|
+
var coreTracing = require_commonjs4();
|
|
3783
3783
|
var stream = __require("stream");
|
|
3784
|
-
var coreLro =
|
|
3784
|
+
var coreLro = require_commonjs10();
|
|
3785
3785
|
var events = __require("events");
|
|
3786
3786
|
var fs = __require("fs");
|
|
3787
3787
|
var util = __require("util");
|
|
@@ -3838,8 +3838,8 @@ var require_dist2 = __commonJS({
|
|
|
3838
3838
|
};
|
|
3839
3839
|
__name(_BaseRequestPolicy, "BaseRequestPolicy");
|
|
3840
3840
|
var BaseRequestPolicy = _BaseRequestPolicy;
|
|
3841
|
-
var SDK_VERSION = "12.
|
|
3842
|
-
var SERVICE_VERSION = "2024-
|
|
3841
|
+
var SDK_VERSION = "12.25.0";
|
|
3842
|
+
var SERVICE_VERSION = "2024-11-04";
|
|
3843
3843
|
var BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024;
|
|
3844
3844
|
var BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4e3 * 1024 * 1024;
|
|
3845
3845
|
var BLOCK_BLOB_MAX_BLOCKS = 5e4;
|
|
@@ -14371,7 +14371,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
14371
14371
|
var version = {
|
|
14372
14372
|
parameterPath: "version",
|
|
14373
14373
|
mapper: {
|
|
14374
|
-
defaultValue: "2024-
|
|
14374
|
+
defaultValue: "2024-11-04",
|
|
14375
14375
|
isConstant: true,
|
|
14376
14376
|
serializedName: "x-ms-version",
|
|
14377
14377
|
type: {
|
|
@@ -18956,14 +18956,14 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
18956
18956
|
const defaults = {
|
|
18957
18957
|
requestContentType: "application/json; charset=utf-8"
|
|
18958
18958
|
};
|
|
18959
|
-
const packageDetails = `azsdk-js-azure-storage-blob/12.
|
|
18959
|
+
const packageDetails = `azsdk-js-azure-storage-blob/12.25.0`;
|
|
18960
18960
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
|
|
18961
18961
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
18962
18962
|
userAgentPrefix
|
|
18963
18963
|
}, endpoint: (_b = (_a2 = options.endpoint) !== null && _a2 !== void 0 ? _a2 : options.baseUri) !== null && _b !== void 0 ? _b : "{url}" });
|
|
18964
18964
|
super(optionsWithDefaults);
|
|
18965
18965
|
this.url = url2;
|
|
18966
|
-
this.version = options.version || "2024-
|
|
18966
|
+
this.version = options.version || "2024-11-04";
|
|
18967
18967
|
this.service = new ServiceImpl(this);
|
|
18968
18968
|
this.container = new ContainerImpl(this);
|
|
18969
18969
|
this.blob = new BlobImpl(this);
|
|
@@ -19577,6 +19577,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19577
19577
|
__name(_SASQueryParameters, "SASQueryParameters");
|
|
19578
19578
|
var SASQueryParameters = _SASQueryParameters;
|
|
19579
19579
|
function generateBlobSASQueryParameters(blobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey, accountName) {
|
|
19580
|
+
return generateBlobSASQueryParametersInternal(blobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey, accountName).sasQueryParameters;
|
|
19581
|
+
}
|
|
19582
|
+
__name(generateBlobSASQueryParameters, "generateBlobSASQueryParameters");
|
|
19583
|
+
function generateBlobSASQueryParametersInternal(blobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey, accountName) {
|
|
19580
19584
|
const version2 = blobSASSignatureValues.version ? blobSASSignatureValues.version : SERVICE_VERSION;
|
|
19581
19585
|
const sharedKeyCredential = sharedKeyCredentialOrUserDelegationKey instanceof StorageSharedKeyCredential ? sharedKeyCredentialOrUserDelegationKey : void 0;
|
|
19582
19586
|
let userDelegationKeyCredential;
|
|
@@ -19613,7 +19617,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19613
19617
|
}
|
|
19614
19618
|
throw new RangeError("'version' must be >= '2015-04-05'.");
|
|
19615
19619
|
}
|
|
19616
|
-
__name(
|
|
19620
|
+
__name(generateBlobSASQueryParametersInternal, "generateBlobSASQueryParametersInternal");
|
|
19617
19621
|
function generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKeyCredential) {
|
|
19618
19622
|
blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);
|
|
19619
19623
|
if (!blobSASSignatureValues.identifier && !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {
|
|
@@ -19647,7 +19651,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19647
19651
|
blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : ""
|
|
19648
19652
|
].join("\n");
|
|
19649
19653
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
|
19650
|
-
return
|
|
19654
|
+
return {
|
|
19655
|
+
sasQueryParameters: new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, void 0, void 0, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType),
|
|
19656
|
+
stringToSign
|
|
19657
|
+
};
|
|
19651
19658
|
}
|
|
19652
19659
|
__name(generateBlobSASQueryParameters20150405, "generateBlobSASQueryParameters20150405");
|
|
19653
19660
|
function generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKeyCredential) {
|
|
@@ -19692,7 +19699,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19692
19699
|
blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : ""
|
|
19693
19700
|
].join("\n");
|
|
19694
19701
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
|
19695
|
-
return
|
|
19702
|
+
return {
|
|
19703
|
+
sasQueryParameters: new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, void 0, void 0, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType),
|
|
19704
|
+
stringToSign
|
|
19705
|
+
};
|
|
19696
19706
|
}
|
|
19697
19707
|
__name(generateBlobSASQueryParameters20181109, "generateBlobSASQueryParameters20181109");
|
|
19698
19708
|
function generateBlobSASQueryParameters20201206(blobSASSignatureValues, sharedKeyCredential) {
|
|
@@ -19738,7 +19748,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19738
19748
|
blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : ""
|
|
19739
19749
|
].join("\n");
|
|
19740
19750
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
|
19741
|
-
return
|
|
19751
|
+
return {
|
|
19752
|
+
sasQueryParameters: new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, void 0, void 0, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, void 0, void 0, void 0, blobSASSignatureValues.encryptionScope),
|
|
19753
|
+
stringToSign
|
|
19754
|
+
};
|
|
19742
19755
|
}
|
|
19743
19756
|
__name(generateBlobSASQueryParameters20201206, "generateBlobSASQueryParameters20201206");
|
|
19744
19757
|
function generateBlobSASQueryParametersUDK20181109(blobSASSignatureValues, userDelegationKeyCredential) {
|
|
@@ -19788,7 +19801,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19788
19801
|
blobSASSignatureValues.contentType
|
|
19789
19802
|
].join("\n");
|
|
19790
19803
|
const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);
|
|
19791
|
-
return
|
|
19804
|
+
return {
|
|
19805
|
+
sasQueryParameters: new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, void 0, void 0, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey),
|
|
19806
|
+
stringToSign
|
|
19807
|
+
};
|
|
19792
19808
|
}
|
|
19793
19809
|
__name(generateBlobSASQueryParametersUDK20181109, "generateBlobSASQueryParametersUDK20181109");
|
|
19794
19810
|
function generateBlobSASQueryParametersUDK20200210(blobSASSignatureValues, userDelegationKeyCredential) {
|
|
@@ -19842,7 +19858,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19842
19858
|
blobSASSignatureValues.contentType
|
|
19843
19859
|
].join("\n");
|
|
19844
19860
|
const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);
|
|
19845
|
-
return
|
|
19861
|
+
return {
|
|
19862
|
+
sasQueryParameters: new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, void 0, void 0, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId),
|
|
19863
|
+
stringToSign
|
|
19864
|
+
};
|
|
19846
19865
|
}
|
|
19847
19866
|
__name(generateBlobSASQueryParametersUDK20200210, "generateBlobSASQueryParametersUDK20200210");
|
|
19848
19867
|
function generateBlobSASQueryParametersUDK20201206(blobSASSignatureValues, userDelegationKeyCredential) {
|
|
@@ -19897,7 +19916,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
19897
19916
|
blobSASSignatureValues.contentType
|
|
19898
19917
|
].join("\n");
|
|
19899
19918
|
const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);
|
|
19900
|
-
return
|
|
19919
|
+
return {
|
|
19920
|
+
sasQueryParameters: new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, void 0, void 0, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId, blobSASSignatureValues.encryptionScope),
|
|
19921
|
+
stringToSign
|
|
19922
|
+
};
|
|
19901
19923
|
}
|
|
19902
19924
|
__name(generateBlobSASQueryParametersUDK20201206, "generateBlobSASQueryParametersUDK20201206");
|
|
19903
19925
|
function getCanonicalName(accountName, containerName, blobName) {
|
|
@@ -20816,6 +20838,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
20816
20838
|
/**
|
|
20817
20839
|
* Determines the AvroType from the Avro Schema.
|
|
20818
20840
|
*/
|
|
20841
|
+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
|
|
20819
20842
|
static fromSchema(schema) {
|
|
20820
20843
|
if (typeof schema === "string") {
|
|
20821
20844
|
return _AvroType.fromStringSchema(schema);
|
|
@@ -20847,7 +20870,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
20847
20870
|
const type = schema.type;
|
|
20848
20871
|
try {
|
|
20849
20872
|
return _AvroType.fromStringSchema(type);
|
|
20850
|
-
} catch (
|
|
20873
|
+
} catch (_a2) {
|
|
20851
20874
|
}
|
|
20852
20875
|
switch (type) {
|
|
20853
20876
|
case AvroComplex.RECORD:
|
|
@@ -20894,6 +20917,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
20894
20917
|
super();
|
|
20895
20918
|
this._primitive = primitive;
|
|
20896
20919
|
}
|
|
20920
|
+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
|
|
20897
20921
|
read(stream2, options = {}) {
|
|
20898
20922
|
switch (this._primitive) {
|
|
20899
20923
|
case AvroPrimitive.NULL:
|
|
@@ -20924,6 +20948,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
20924
20948
|
super();
|
|
20925
20949
|
this._symbols = symbols;
|
|
20926
20950
|
}
|
|
20951
|
+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
|
|
20927
20952
|
async read(stream2, options = {}) {
|
|
20928
20953
|
const value = await AvroParser.readInt(stream2, options);
|
|
20929
20954
|
return this._symbols[value];
|
|
@@ -20948,6 +20973,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
20948
20973
|
super();
|
|
20949
20974
|
this._itemType = itemType;
|
|
20950
20975
|
}
|
|
20976
|
+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
|
|
20951
20977
|
read(stream2, options = {}) {
|
|
20952
20978
|
const readItemMethod = /* @__PURE__ */ __name((s, opts) => {
|
|
20953
20979
|
return this._itemType.read(s, opts);
|
|
@@ -20963,6 +20989,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
20963
20989
|
this._fields = fields;
|
|
20964
20990
|
this._name = name;
|
|
20965
20991
|
}
|
|
20992
|
+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
|
|
20966
20993
|
async read(stream2, options = {}) {
|
|
20967
20994
|
const record = {};
|
|
20968
20995
|
record["$schema"] = this._name;
|
|
@@ -21066,7 +21093,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
21066
21093
|
this._itemsRemainingInBlock = yield tslib.__await(AvroParser.readLong(this._dataStream, {
|
|
21067
21094
|
abortSignal: options.abortSignal
|
|
21068
21095
|
}));
|
|
21069
|
-
} catch (
|
|
21096
|
+
} catch (_a2) {
|
|
21070
21097
|
this._itemsRemainingInBlock = 0;
|
|
21071
21098
|
}
|
|
21072
21099
|
if (this._itemsRemainingInBlock > 0) {
|
|
@@ -23101,6 +23128,24 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
23101
23128
|
resolve(appendToURLQuery(this.url, sas));
|
|
23102
23129
|
});
|
|
23103
23130
|
}
|
|
23131
|
+
/**
|
|
23132
|
+
* Only available for BlobClient constructed with a shared key credential.
|
|
23133
|
+
*
|
|
23134
|
+
* Generates string to sign for a Blob Service Shared Access Signature (SAS) URI based on
|
|
23135
|
+
* the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
23136
|
+
*
|
|
23137
|
+
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
|
23138
|
+
*
|
|
23139
|
+
* @param options - Optional parameters.
|
|
23140
|
+
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
23141
|
+
*/
|
|
23142
|
+
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
|
|
23143
|
+
generateSasStringToSign(options) {
|
|
23144
|
+
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
|
23145
|
+
throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
|
23146
|
+
}
|
|
23147
|
+
return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), this.credential).stringToSign;
|
|
23148
|
+
}
|
|
23104
23149
|
/**
|
|
23105
23150
|
* Delete the immutablility policy on the blob.
|
|
23106
23151
|
*
|
|
@@ -23903,6 +23948,7 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
23903
23948
|
blockList.push(blockID);
|
|
23904
23949
|
blockNum++;
|
|
23905
23950
|
await this.stageBlock(blockID, body2, length, {
|
|
23951
|
+
customerProvidedKey: options.customerProvidedKey,
|
|
23906
23952
|
conditions: options.conditions,
|
|
23907
23953
|
encryptionScope: options.encryptionScope,
|
|
23908
23954
|
tracingOptions: updatedOptions.tracingOptions
|
|
@@ -26215,6 +26261,24 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26215
26261
|
resolve(appendToURLQuery(this.url, sas));
|
|
26216
26262
|
});
|
|
26217
26263
|
}
|
|
26264
|
+
/**
|
|
26265
|
+
* Only available for ContainerClient constructed with a shared key credential.
|
|
26266
|
+
*
|
|
26267
|
+
* Generates string to sign for a Blob Container Service Shared Access Signature (SAS) URI
|
|
26268
|
+
* based on the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
26269
|
+
*
|
|
26270
|
+
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
|
26271
|
+
*
|
|
26272
|
+
* @param options - Optional parameters.
|
|
26273
|
+
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
26274
|
+
*/
|
|
26275
|
+
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
|
|
26276
|
+
generateSasStringToSign(options) {
|
|
26277
|
+
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
|
26278
|
+
throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
|
26279
|
+
}
|
|
26280
|
+
return generateBlobSASQueryParametersInternal(Object.assign({ containerName: this._containerName }, options), this.credential).stringToSign;
|
|
26281
|
+
}
|
|
26218
26282
|
/**
|
|
26219
26283
|
* Creates a BlobBatchClient object to conduct batch operations.
|
|
26220
26284
|
*
|
|
@@ -26515,6 +26579,10 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26515
26579
|
__name(_AccountSASServices, "AccountSASServices");
|
|
26516
26580
|
var AccountSASServices = _AccountSASServices;
|
|
26517
26581
|
function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyCredential) {
|
|
26582
|
+
return generateAccountSASQueryParametersInternal(accountSASSignatureValues, sharedKeyCredential).sasQueryParameters;
|
|
26583
|
+
}
|
|
26584
|
+
__name(generateAccountSASQueryParameters, "generateAccountSASQueryParameters");
|
|
26585
|
+
function generateAccountSASQueryParametersInternal(accountSASSignatureValues, sharedKeyCredential) {
|
|
26518
26586
|
const version2 = accountSASSignatureValues.version ? accountSASSignatureValues.version : SERVICE_VERSION;
|
|
26519
26587
|
if (accountSASSignatureValues.permissions && accountSASSignatureValues.permissions.setImmutabilityPolicy && version2 < "2020-08-04") {
|
|
26520
26588
|
throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");
|
|
@@ -26569,9 +26637,12 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
26569
26637
|
].join("\n");
|
|
26570
26638
|
}
|
|
26571
26639
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
|
26572
|
-
return
|
|
26640
|
+
return {
|
|
26641
|
+
sasQueryParameters: new SASQueryParameters(version2, signature, parsedPermissions.toString(), parsedServices, parsedResourceTypes, accountSASSignatureValues.protocol, accountSASSignatureValues.startsOn, accountSASSignatureValues.expiresOn, accountSASSignatureValues.ipRange, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, accountSASSignatureValues.encryptionScope),
|
|
26642
|
+
stringToSign
|
|
26643
|
+
};
|
|
26573
26644
|
}
|
|
26574
|
-
__name(
|
|
26645
|
+
__name(generateAccountSASQueryParametersInternal, "generateAccountSASQueryParametersInternal");
|
|
26575
26646
|
var _BlobServiceClient = class _BlobServiceClient extends StorageClient {
|
|
26576
26647
|
/**
|
|
26577
26648
|
*
|
|
@@ -27226,6 +27297,35 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
27226
27297
|
}, options), this.credential).toString();
|
|
27227
27298
|
return appendToURLQuery(this.url, sas);
|
|
27228
27299
|
}
|
|
27300
|
+
/**
|
|
27301
|
+
* Only available for BlobServiceClient constructed with a shared key credential.
|
|
27302
|
+
*
|
|
27303
|
+
* Generates string to sign for a Blob account Shared Access Signature (SAS) URI based on
|
|
27304
|
+
* the client properties and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
27305
|
+
*
|
|
27306
|
+
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-account-sas
|
|
27307
|
+
*
|
|
27308
|
+
* @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not provided.
|
|
27309
|
+
* @param permissions - Specifies the list of permissions to be associated with the SAS.
|
|
27310
|
+
* @param resourceTypes - Specifies the resource types associated with the shared access signature.
|
|
27311
|
+
* @param options - Optional parameters.
|
|
27312
|
+
* @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
27313
|
+
*/
|
|
27314
|
+
generateSasStringToSign(expiresOn2, permissions = AccountSASPermissions.parse("r"), resourceTypes = "sco", options = {}) {
|
|
27315
|
+
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
|
27316
|
+
throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential");
|
|
27317
|
+
}
|
|
27318
|
+
if (expiresOn2 === void 0) {
|
|
27319
|
+
const now = /* @__PURE__ */ new Date();
|
|
27320
|
+
expiresOn2 = new Date(now.getTime() + 3600 * 1e3);
|
|
27321
|
+
}
|
|
27322
|
+
return generateAccountSASQueryParametersInternal(Object.assign({
|
|
27323
|
+
permissions,
|
|
27324
|
+
expiresOn: expiresOn2,
|
|
27325
|
+
resourceTypes,
|
|
27326
|
+
services: AccountSASServices.parse("b").toString()
|
|
27327
|
+
}, options), this.credential).stringToSign;
|
|
27328
|
+
}
|
|
27229
27329
|
};
|
|
27230
27330
|
__name(_BlobServiceClient, "BlobServiceClient");
|
|
27231
27331
|
var BlobServiceClient = _BlobServiceClient;
|
|
@@ -27277,5 +27377,5 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`;
|
|
|
27277
27377
|
});
|
|
27278
27378
|
|
|
27279
27379
|
export {
|
|
27280
|
-
|
|
27380
|
+
require_dist
|
|
27281
27381
|
};
|