Bump semver
This commit is contained in:
parent
863a05b28b
commit
4b7eb74ef5
579 changed files with 13988 additions and 29840 deletions
2
node_modules/@azure/storage-blob/README.md
generated
vendored
2
node_modules/@azure/storage-blob/README.md
generated
vendored
|
|
@ -25,7 +25,7 @@ Key links
|
|||
|
||||
### Currently supported environments
|
||||
|
||||
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
||||
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
||||
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
||||
|
||||
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
||||
|
|
|
|||
8
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/BlobDownloadResponse.js
generated
vendored
8
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/BlobDownloadResponse.js
generated
vendored
|
|
@ -307,6 +307,14 @@ export class BlobDownloadResponse {
|
|||
get lastAccessed() {
|
||||
return this.originalResponse.lastAccessed;
|
||||
}
|
||||
/**
|
||||
* Returns the date and time the blob was created.
|
||||
*
|
||||
* @readonly
|
||||
*/
|
||||
get createdOn() {
|
||||
return this.originalResponse.createdOn;
|
||||
}
|
||||
/**
|
||||
* A name-value pair
|
||||
* to associate with a file storage object.
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/BlobServiceClient.js
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/BlobServiceClient.js
generated
vendored
|
|
@ -97,7 +97,7 @@ export class BlobServiceClient extends StorageClient {
|
|||
return new ContainerClient(appendToURLPath(this.url, encodeURIComponent(containerName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Create a Blob container.
|
||||
* Create a Blob container. @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
*
|
||||
* @param containerName - Name of the container to create.
|
||||
* @param options - Options to configure Container Create operation.
|
||||
|
|
|
|||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/BlobServiceClient.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/BlobServiceClient.js.map
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/Clients.js
generated
vendored
8
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/Clients.js
generated
vendored
|
|
@ -50,6 +50,9 @@ export class BlobClient extends StorageClient {
|
|||
// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
|
||||
// The second parameter is undefined. Use anonymous credential.
|
||||
url = urlOrConnectionString;
|
||||
if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
|
||||
options = blobNameOrOptions;
|
||||
}
|
||||
pipeline = newPipeline(new AnonymousCredential(), options);
|
||||
}
|
||||
else if (credentialOrPipelineOrContainerName &&
|
||||
|
|
@ -720,7 +723,7 @@ export class BlobClient extends StorageClient {
|
|||
sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
|
||||
sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
|
||||
sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
|
||||
}, sourceContentMD5: options.sourceContentMD5, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), blobTagsString: toBlobTagsString(options.tags), immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, encryptionScope: options.encryptionScope, copySourceTags: options.copySourceTags }, convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
}, sourceContentMD5: options.sourceContentMD5, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, encryptionScope: options.encryptionScope, copySourceTags: options.copySourceTags }, convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
}
|
||||
catch (e) {
|
||||
span.setStatus({
|
||||
|
|
@ -1353,6 +1356,9 @@ export class BlockBlobClient extends BlobClient {
|
|||
// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
|
||||
// The second parameter is undefined. Use anonymous credential.
|
||||
url = urlOrConnectionString;
|
||||
if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
|
||||
options = blobNameOrOptions;
|
||||
}
|
||||
pipeline = newPipeline(new AnonymousCredential(), options);
|
||||
}
|
||||
else if (credentialOrPipelineOrContainerName &&
|
||||
|
|
|
|||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/Clients.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/Clients.js.map
generated
vendored
File diff suppressed because one or more lines are too long
24
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/ContainerClient.js
generated
vendored
24
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/ContainerClient.js
generated
vendored
|
|
@ -7,7 +7,7 @@ import { Container } from "./generated/src/operations";
|
|||
import { newPipeline, isPipelineLike } from "./Pipeline";
|
||||
import { StorageClient } from "./StorageClient";
|
||||
import { convertTracingToRequestOptionsBase, createSpan } from "./utils/tracing";
|
||||
import { appendToURLPath, appendToURLQuery, BlobNameToString, ConvertInternalResponseOfListBlobFlat, ConvertInternalResponseOfListBlobHierarchy, extractConnectionStringParts, isIpEndpointStyle, parseObjectReplicationRecord, ProcessBlobItems, ProcessBlobPrefixes, toTags, truncatedISO8061Date, } from "./utils/utils.common";
|
||||
import { appendToURLPath, appendToURLQuery, BlobNameToString, ConvertInternalResponseOfListBlobFlat, ConvertInternalResponseOfListBlobHierarchy, EscapePath, extractConnectionStringParts, isIpEndpointStyle, parseObjectReplicationRecord, toTags, truncatedISO8061Date, } from "./utils/utils.common";
|
||||
import { generateBlobSASQueryParameters } from "./sas/BlobSASSignatureValues";
|
||||
import { BlobLeaseClient } from "./BlobLeaseClient";
|
||||
import { AppendBlobClient, BlobClient, BlockBlobClient, PageBlobClient, } from "./Clients";
|
||||
|
|
@ -88,6 +88,7 @@ export class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, the operation fails.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options - Options to Container Create operation.
|
||||
*
|
||||
|
|
@ -122,6 +123,7 @@ export class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, it is not changed.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options -
|
||||
*/
|
||||
|
|
@ -193,7 +195,7 @@ export class ContainerClient extends StorageClient {
|
|||
* @returns A new BlobClient object for the given blob name.
|
||||
*/
|
||||
getBlobClient(blobName) {
|
||||
return new BlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new BlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Creates an {@link AppendBlobClient}
|
||||
|
|
@ -201,7 +203,7 @@ export class ContainerClient extends StorageClient {
|
|||
* @param blobName - An append blob name
|
||||
*/
|
||||
getAppendBlobClient(blobName) {
|
||||
return new AppendBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new AppendBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link BlockBlobClient}
|
||||
|
|
@ -219,7 +221,7 @@ export class ContainerClient extends StorageClient {
|
|||
* ```
|
||||
*/
|
||||
getBlockBlobClient(blobName) {
|
||||
return new BlockBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new BlockBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link PageBlobClient}
|
||||
|
|
@ -227,7 +229,7 @@ export class ContainerClient extends StorageClient {
|
|||
* @param blobName - A page blob name
|
||||
*/
|
||||
getPageBlobClient(blobName) {
|
||||
return new PageBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new PageBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Returns all user-defined metadata and system properties for the specified
|
||||
|
|
@ -559,10 +561,6 @@ export class ContainerClient extends StorageClient {
|
|||
const { span, updatedOptions } = createSpan("ContainerClient-listBlobFlatSegment", options);
|
||||
try {
|
||||
const response = await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
response.segment.blobItems = [];
|
||||
if (response.segment["Blob"] !== undefined) {
|
||||
response.segment.blobItems = ProcessBlobItems(response.segment["Blob"]);
|
||||
}
|
||||
const wrappedResponse = Object.assign(Object.assign({}, response), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListBlobFlat(response._response.parsedBody) }), segment: Object.assign(Object.assign({}, response.segment), { blobItems: response.segment.blobItems.map((blobItemInteral) => {
|
||||
const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name), tags: toTags(blobItemInteral.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInteral.objectReplicationMetadata) });
|
||||
return blobItem;
|
||||
|
|
@ -596,14 +594,6 @@ export class ContainerClient extends StorageClient {
|
|||
const { span, updatedOptions } = createSpan("ContainerClient-listBlobHierarchySegment", options);
|
||||
try {
|
||||
const response = await this.containerContext.listBlobHierarchySegment(delimiter, Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
response.segment.blobItems = [];
|
||||
if (response.segment["Blob"] !== undefined) {
|
||||
response.segment.blobItems = ProcessBlobItems(response.segment["Blob"]);
|
||||
}
|
||||
response.segment.blobPrefixes = [];
|
||||
if (response.segment["BlobPrefix"] !== undefined) {
|
||||
response.segment.blobPrefixes = ProcessBlobPrefixes(response.segment["BlobPrefix"]);
|
||||
}
|
||||
const wrappedResponse = Object.assign(Object.assign({}, response), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListBlobHierarchy(response._response.parsedBody) }), segment: Object.assign(Object.assign({}, response.segment), { blobItems: response.segment.blobItems.map((blobItemInteral) => {
|
||||
const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name), tags: toTags(blobItemInteral.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInteral.objectReplicationMetadata) });
|
||||
return blobItem;
|
||||
|
|
|
|||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/ContainerClient.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/ContainerClient.js.map
generated
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1047,6 +1047,7 @@ export const BlobName = {
|
|||
content: {
|
||||
serializedName: "content",
|
||||
xmlName: "content",
|
||||
xmlIsMsText: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
|
|
@ -1275,7 +1276,8 @@ export const BlobPropertiesInternal = {
|
|||
"P80",
|
||||
"Hot",
|
||||
"Cool",
|
||||
"Archive"
|
||||
"Archive",
|
||||
"Cold"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
@ -3774,6 +3776,13 @@ export const BlobDownloadHeaders = {
|
|||
name: "DateTimeRfc1123"
|
||||
}
|
||||
},
|
||||
createdOn: {
|
||||
serializedName: "x-ms-creation-time",
|
||||
xmlName: "x-ms-creation-time",
|
||||
type: {
|
||||
name: "DateTimeRfc1123"
|
||||
}
|
||||
},
|
||||
metadata: {
|
||||
serializedName: "x-ms-meta",
|
||||
xmlName: "x-ms-meta",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -83,7 +83,7 @@ export const timeoutInSeconds = {
|
|||
export const version = {
|
||||
parameterPath: "version",
|
||||
mapper: {
|
||||
defaultValue: "2021-08-06",
|
||||
defaultValue: "2022-11-02",
|
||||
isConstant: true,
|
||||
serializedName: "x-ms-version",
|
||||
type: {
|
||||
|
|
@ -948,7 +948,8 @@ export const tier = {
|
|||
"P80",
|
||||
"Hot",
|
||||
"Cool",
|
||||
"Archive"
|
||||
"Archive",
|
||||
"Cold"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1175,7 +1176,8 @@ export const tier1 = {
|
|||
"P80",
|
||||
"Hot",
|
||||
"Cool",
|
||||
"Archive"
|
||||
"Archive",
|
||||
"Cold"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -170,6 +170,7 @@ const uploadOperationSpec = {
|
|||
Parameters.blobTagsString,
|
||||
Parameters.legalHold1,
|
||||
Parameters.transactionalContentMD5,
|
||||
Parameters.transactionalContentCrc64,
|
||||
Parameters.contentType1,
|
||||
Parameters.accept2,
|
||||
Parameters.blobType2
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
import * as coreHttp from "@azure/core-http";
|
||||
const packageName = "azure-storage-blob";
|
||||
const packageVersion = "12.11.0";
|
||||
const packageVersion = "12.14.0";
|
||||
export class StorageClientContext extends coreHttp.ServiceClient {
|
||||
/**
|
||||
* Initializes a new instance of the StorageClientContext class.
|
||||
|
|
@ -33,7 +33,7 @@ export class StorageClientContext extends coreHttp.ServiceClient {
|
|||
// Parameter assignments
|
||||
this.url = url;
|
||||
// Assigning values to Constant parameters
|
||||
this.version = options.version || "2021-08-06";
|
||||
this.version = options.version || "2022-11-02";
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=storageClientContext.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"storageClientContext.js","sourceRoot":"","sources":["../../../../../src/generated/src/storageClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,oBAAoB,CAAC;AACzC,MAAM,cAAc,GAAG,SAAS,CAAC;AAEjC,MAAM,OAAO,oBAAqB,SAAQ,QAAQ,CAAC,aAAa;IAI9D;;;;;OAKG;IACH,YAAY,GAAW,EAAE,OAAqC;QAC5D,IAAI,GAAG,KAAK,SAAS,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;SACzC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;QAE3C,wBAAwB;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QAEf,0CAA0C;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC;IACjD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { StorageClientOptionalParams } from \"./models\";\n\nconst packageName = \"azure-storage-blob\";\nconst packageVersion = \"12.11.0\";\n\nexport class StorageClientContext extends coreHttp.ServiceClient {\n url: string;\n version: string;\n\n /**\n * Initializes a new instance of the StorageClientContext class.\n * @param url The URL of the service account, container, or blob that is the target of the desired\n * operation.\n * @param options The parameter options\n */\n constructor(url: string, options?: StorageClientOptionalParams) {\n if (url === undefined) {\n throw new Error(\"'url' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(undefined, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri = options.endpoint || \"{url}\";\n\n // Parameter assignments\n this.url = url;\n\n // Assigning values to Constant parameters\n this.version = options.version || \"2021-08-06\";\n }\n}\n"]}
|
||||
{"version":3,"file":"storageClientContext.js","sourceRoot":"","sources":["../../../../../src/generated/src/storageClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,oBAAoB,CAAC;AACzC,MAAM,cAAc,GAAG,SAAS,CAAC;AAEjC,MAAM,OAAO,oBAAqB,SAAQ,QAAQ,CAAC,aAAa;IAI9D;;;;;OAKG;IACH,YAAY,GAAW,EAAE,OAAqC;QAC5D,IAAI,GAAG,KAAK,SAAS,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;SACzC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;QAE3C,wBAAwB;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QAEf,0CAA0C;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC;IACjD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { StorageClientOptionalParams } from \"./models\";\n\nconst packageName = \"azure-storage-blob\";\nconst packageVersion = \"12.14.0\";\n\nexport class StorageClientContext extends coreHttp.ServiceClient {\n url: string;\n version: string;\n\n /**\n * Initializes a new instance of the StorageClientContext class.\n * @param url The URL of the service account, container, or blob that is the target of the desired\n * operation.\n * @param options The parameter options\n */\n constructor(url: string, options?: StorageClientOptionalParams) {\n if (url === undefined) {\n throw new Error(\"'url' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(undefined, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri = options.endpoint || \"{url}\";\n\n // Parameter assignments\n this.url = url;\n\n // Assigning values to Constant parameters\n this.version = options.version || \"2022-11-02\";\n }\n}\n"]}
|
||||
6
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/generatedModels.js
generated
vendored
6
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/generatedModels.js
generated
vendored
|
|
@ -1,4 +1,8 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export {};
|
||||
/** Known values of {@link EncryptionAlgorithmType} that the service accepts. */
|
||||
export var KnownEncryptionAlgorithmType;
|
||||
(function (KnownEncryptionAlgorithmType) {
|
||||
KnownEncryptionAlgorithmType["AES256"] = "AES256";
|
||||
})(KnownEncryptionAlgorithmType || (KnownEncryptionAlgorithmType = {}));
|
||||
//# sourceMappingURL=generatedModels.js.map
|
||||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/generatedModels.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/generatedModels.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/index.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AAGzD,OAAO,EACL,aAAa,EACb,mBAAmB,EAUnB,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAClB,cAAc,YAAY,CAAC;AAC3B,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0BAA0B,CAAC;AAEzC,cAAc,mBAAmB,CAAC;AAYlC,OAAO,EAAE,SAAS,EAAE,CAAC;AAMrB,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RestError } from \"@azure/core-http\";\n\nexport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nexport * from \"./BlobServiceClient\";\nexport * from \"./Clients\";\nexport * from \"./ContainerClient\";\nexport * from \"./BlobLeaseClient\";\nexport * from \"./sas/AccountSASPermissions\";\nexport * from \"./sas/AccountSASResourceTypes\";\nexport * from \"./sas/AccountSASServices\";\nexport * from \"./sas/AccountSASSignatureValues\";\nexport * from \"./BlobBatch\";\nexport * from \"./BlobBatchClient\";\nexport * from \"./BatchResponse\";\nexport * from \"./sas/BlobSASPermissions\";\nexport * from \"./sas/BlobSASSignatureValues\";\nexport * from \"./StorageBrowserPolicyFactory\";\nexport * from \"./sas/ContainerSASPermissions\";\nexport * from \"./credentials/AnonymousCredential\";\nexport * from \"./credentials/Credential\";\nexport * from \"./credentials/StorageSharedKeyCredential\";\nexport { SasIPRange } from \"./sas/SasIPRange\";\nexport { Range } from \"./Range\";\nexport {\n BlockBlobTier,\n PremiumPageBlobTier,\n Tags,\n BlobDownloadResponseParsed,\n BlobImmutabilityPolicy,\n ObjectReplicationPolicy,\n ObjectReplicationRule,\n ObjectReplicationStatus,\n BlobQueryArrowField,\n BlobQueryArrowFieldType,\n HttpAuthorization,\n StorageBlobAudience,\n} from \"./models\";\nexport * from \"./Pipeline\";\nexport * from \"./policies/AnonymousCredentialPolicy\";\nexport * from \"./policies/CredentialPolicy\";\nexport * from \"./StorageRetryPolicyFactory\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy\";\nexport * from \"./sas/SASQueryParameters\";\nexport { CommonOptions } from \"./StorageClient\";\nexport * from \"./generatedModels\";\nexport {\n AppendBlobRequestConditions,\n BlobRequestConditions,\n Metadata,\n PageBlobRequestConditions,\n TagConditions,\n ContainerRequestConditions,\n ModificationConditions,\n MatchConditions,\n ModifiedAccessConditions,\n} from \"./models\";\nexport { RestError };\nexport {\n PageBlobGetPageRangesDiffResponse,\n PageBlobGetPageRangesResponse,\n PageList,\n} from \"./PageBlobRangeResponse\";\nexport { logger } from \"./log\";\nexport {\n BlobBeginCopyFromUrlPollState,\n CopyPollerBlobClient,\n} from \"./pollers/BlobStartCopyFromUrlPoller\";\n"]}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AAGzD,OAAO,EACL,aAAa,EACb,mBAAmB,EAUnB,mBAAmB,GAEpB,MAAM,UAAU,CAAC;AAClB,cAAc,YAAY,CAAC;AAC3B,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0BAA0B,CAAC;AAEzC,cAAc,mBAAmB,CAAC;AAYlC,OAAO,EAAE,SAAS,EAAE,CAAC;AAMrB,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RestError } from \"@azure/core-http\";\n\nexport { PollOperationState, PollerLike } from \"@azure/core-lro\";\nexport * from \"./BlobServiceClient\";\nexport * from \"./Clients\";\nexport * from \"./ContainerClient\";\nexport * from \"./BlobLeaseClient\";\nexport * from \"./sas/AccountSASPermissions\";\nexport * from \"./sas/AccountSASResourceTypes\";\nexport * from \"./sas/AccountSASServices\";\nexport * from \"./sas/AccountSASSignatureValues\";\nexport * from \"./BlobBatch\";\nexport * from \"./BlobBatchClient\";\nexport * from \"./BatchResponse\";\nexport * from \"./sas/BlobSASPermissions\";\nexport * from \"./sas/BlobSASSignatureValues\";\nexport * from \"./StorageBrowserPolicyFactory\";\nexport * from \"./sas/ContainerSASPermissions\";\nexport * from \"./credentials/AnonymousCredential\";\nexport * from \"./credentials/Credential\";\nexport * from \"./credentials/StorageSharedKeyCredential\";\nexport { SasIPRange } from \"./sas/SasIPRange\";\nexport { Range } from \"./Range\";\nexport {\n BlockBlobTier,\n PremiumPageBlobTier,\n Tags,\n BlobDownloadResponseParsed,\n BlobImmutabilityPolicy,\n ObjectReplicationPolicy,\n ObjectReplicationRule,\n ObjectReplicationStatus,\n BlobQueryArrowField,\n BlobQueryArrowFieldType,\n HttpAuthorization,\n StorageBlobAudience,\n PollerLikeWithCancellation,\n} from \"./models\";\nexport * from \"./Pipeline\";\nexport * from \"./policies/AnonymousCredentialPolicy\";\nexport * from \"./policies/CredentialPolicy\";\nexport * from \"./StorageRetryPolicyFactory\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy\";\nexport * from \"./sas/SASQueryParameters\";\nexport { CommonOptions } from \"./StorageClient\";\nexport * from \"./generatedModels\";\nexport {\n AppendBlobRequestConditions,\n BlobRequestConditions,\n Metadata,\n PageBlobRequestConditions,\n TagConditions,\n ContainerRequestConditions,\n ModificationConditions,\n MatchConditions,\n ModifiedAccessConditions,\n} from \"./models\";\nexport { RestError };\nexport {\n PageBlobGetPageRangesDiffResponse,\n PageBlobGetPageRangesResponse,\n PageList,\n} from \"./PageBlobRangeResponse\";\nexport { logger } from \"./log\";\nexport {\n BlobBeginCopyFromUrlPollState,\n CopyPollerBlobClient,\n} from \"./pollers/BlobStartCopyFromUrlPoller\";\n"]}
|
||||
4
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/models.js
generated
vendored
4
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/models.js
generated
vendored
|
|
@ -15,6 +15,10 @@ export var BlockBlobTier;
|
|||
* Optimized for storing data that is infrequently accessed and stored for at least 30 days.
|
||||
*/
|
||||
BlockBlobTier["Cool"] = "Cool";
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed.
|
||||
*/
|
||||
BlockBlobTier["Cold"] = "Cold";
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed and stored for at least 180 days
|
||||
* with flexible latency requirements (on the order of hours).
|
||||
|
|
|
|||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/models.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/models.js.map
generated
vendored
File diff suppressed because one or more lines are too long
29
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/constants.js
generated
vendored
29
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/constants.js
generated
vendored
|
|
@ -1,13 +1,14 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export const SDK_VERSION = "12.11.0";
|
||||
export const SERVICE_VERSION = "2021-08-06";
|
||||
export const SDK_VERSION = "12.14.0";
|
||||
export const SERVICE_VERSION = "2022-11-02";
|
||||
export const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
|
||||
export const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
|
||||
export const BLOCK_BLOB_MAX_BLOCKS = 50000;
|
||||
export const DEFAULT_BLOCK_BUFFER_SIZE_BYTES = 8 * 1024 * 1024; // 8MB
|
||||
export const DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES = 4 * 1024 * 1024; // 4MB
|
||||
export const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
||||
export const REQUEST_TIMEOUT = 100 * 1000; // In ms
|
||||
/**
|
||||
* The OAuth scope to use with Azure Storage.
|
||||
*/
|
||||
|
|
@ -195,4 +196,28 @@ export const StorageBlobLoggingAllowedQueryParameters = [
|
|||
];
|
||||
export const BlobUsesCustomerSpecifiedEncryptionMsg = "BlobUsesCustomerSpecifiedEncryption";
|
||||
export const BlobDoesNotUseCustomerSpecifiedEncryption = "BlobDoesNotUseCustomerSpecifiedEncryption";
|
||||
/// List of ports used for path style addressing.
|
||||
/// Path style addressing means that storage account is put in URI's Path segment in instead of in host.
|
||||
export const PathStylePorts = [
|
||||
"10000",
|
||||
"10001",
|
||||
"10002",
|
||||
"10003",
|
||||
"10004",
|
||||
"10100",
|
||||
"10101",
|
||||
"10102",
|
||||
"10103",
|
||||
"10104",
|
||||
"11000",
|
||||
"11001",
|
||||
"11002",
|
||||
"11003",
|
||||
"11004",
|
||||
"11100",
|
||||
"11101",
|
||||
"11102",
|
||||
"11103",
|
||||
"11104",
|
||||
];
|
||||
//# sourceMappingURL=constants.js.map
|
||||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/constants.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/constants.js.map
generated
vendored
File diff suppressed because one or more lines are too long
308
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.common.js
generated
vendored
308
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.common.js
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
import { HttpHeaders, isNode, URLBuilder } from "@azure/core-http";
|
||||
import { DevelopmentConnectionString, HeaderConstants, URLConstants } from "./constants";
|
||||
import { DevelopmentConnectionString, HeaderConstants, PathStylePorts, URLConstants, } from "./constants";
|
||||
/**
|
||||
* Reserved URL characters must be properly escaped for Storage services like Blob or File.
|
||||
*
|
||||
|
|
@ -180,7 +180,8 @@ export function appendToURLPath(url, name) {
|
|||
let path = urlParsed.getPath();
|
||||
path = path ? (path.endsWith("/") ? `${path}${name}` : `${path}/${name}`) : name;
|
||||
urlParsed.setPath(path);
|
||||
return urlParsed.toString();
|
||||
const normalizedUrl = new URL(urlParsed.toString());
|
||||
return normalizedUrl.toString();
|
||||
}
|
||||
/**
|
||||
* Set URL parameter name and value. If name exists in URL parameters, old value
|
||||
|
|
@ -471,7 +472,8 @@ export function isIpEndpointStyle(parsedUrl) {
|
|||
// Case 2: localhost(:port), use broad regex to match port part.
|
||||
// Case 3: Ipv4, use broad regex which just check if host contains Ipv4.
|
||||
// For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html.
|
||||
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);
|
||||
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) ||
|
||||
(parsedUrl.getPort() !== undefined && PathStylePorts.includes(parsedUrl.getPort())));
|
||||
}
|
||||
/**
|
||||
* Convert Tags to encoded string.
|
||||
|
|
@ -657,296 +659,6 @@ export function ConvertInternalResponseOfListBlobHierarchy(internalResponse) {
|
|||
}),
|
||||
} });
|
||||
}
|
||||
function decodeBase64String(value) {
|
||||
if (isNode) {
|
||||
return Buffer.from(value, "base64");
|
||||
}
|
||||
else {
|
||||
const byteString = atob(value);
|
||||
const arr = new Uint8Array(byteString.length);
|
||||
for (let i = 0; i < byteString.length; i++) {
|
||||
arr[i] = byteString.charCodeAt(i);
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
function ParseBoolean(content) {
|
||||
if (content === undefined)
|
||||
return undefined;
|
||||
if (content === "true")
|
||||
return true;
|
||||
if (content === "false")
|
||||
return false;
|
||||
return undefined;
|
||||
}
|
||||
function ParseBlobName(blobNameInXML) {
|
||||
if (blobNameInXML["$"] !== undefined && blobNameInXML["#"] !== undefined) {
|
||||
return {
|
||||
encoded: ParseBoolean(blobNameInXML["$"]["Encoded"]),
|
||||
content: blobNameInXML["#"],
|
||||
};
|
||||
}
|
||||
else {
|
||||
return {
|
||||
encoded: false,
|
||||
content: blobNameInXML,
|
||||
};
|
||||
}
|
||||
}
|
||||
function ParseBlobProperties(blobPropertiesInXML) {
|
||||
const blobProperties = blobPropertiesInXML;
|
||||
if (blobPropertiesInXML["Creation-Time"]) {
|
||||
blobProperties.createdOn = new Date(blobPropertiesInXML["Creation-Time"]);
|
||||
delete blobProperties["Creation-Time"];
|
||||
}
|
||||
if (blobPropertiesInXML["Last-Modified"]) {
|
||||
blobProperties.lastModified = new Date(blobPropertiesInXML["Last-Modified"]);
|
||||
delete blobProperties["Last-Modified"];
|
||||
}
|
||||
if (blobPropertiesInXML["Etag"]) {
|
||||
blobProperties.etag = blobPropertiesInXML["Etag"];
|
||||
delete blobProperties["Etag"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Length"]) {
|
||||
blobProperties.contentLength = parseFloat(blobPropertiesInXML["Content-Length"]);
|
||||
delete blobProperties["Content-Length"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Type"]) {
|
||||
blobProperties.contentType = blobPropertiesInXML["Content-Type"];
|
||||
delete blobProperties["Content-Type"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Encoding"]) {
|
||||
blobProperties.contentEncoding = blobPropertiesInXML["Content-Encoding"];
|
||||
delete blobProperties["Content-Encoding"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Language"]) {
|
||||
blobProperties.contentLanguage = blobPropertiesInXML["Content-Language"];
|
||||
delete blobProperties["Content-Language"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-MD5"]) {
|
||||
blobProperties.contentMD5 = decodeBase64String(blobPropertiesInXML["Content-MD5"]);
|
||||
delete blobProperties["Content-MD5"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Disposition"]) {
|
||||
blobProperties.contentDisposition = blobPropertiesInXML["Content-Disposition"];
|
||||
delete blobProperties["Content-Disposition"];
|
||||
}
|
||||
if (blobPropertiesInXML["Cache-Control"]) {
|
||||
blobProperties.cacheControl = blobPropertiesInXML["Cache-Control"];
|
||||
delete blobProperties["Cache-Control"];
|
||||
}
|
||||
if (blobPropertiesInXML["x-ms-blob-sequence-number"]) {
|
||||
blobProperties.blobSequenceNumber = parseFloat(blobPropertiesInXML["x-ms-blob-sequence-number"]);
|
||||
delete blobProperties["x-ms-blob-sequence-number"];
|
||||
}
|
||||
if (blobPropertiesInXML["BlobType"]) {
|
||||
blobProperties.blobType = blobPropertiesInXML["BlobType"];
|
||||
delete blobProperties["BlobType"];
|
||||
}
|
||||
if (blobPropertiesInXML["LeaseStatus"]) {
|
||||
blobProperties.leaseStatus = blobPropertiesInXML["LeaseStatus"];
|
||||
delete blobProperties["LeaseStatus"];
|
||||
}
|
||||
if (blobPropertiesInXML["LeaseState"]) {
|
||||
blobProperties.leaseState = blobPropertiesInXML["LeaseState"];
|
||||
delete blobProperties["LeaseState"];
|
||||
}
|
||||
if (blobPropertiesInXML["LeaseDuration"]) {
|
||||
blobProperties.leaseDuration = blobPropertiesInXML["LeaseDuration"];
|
||||
delete blobProperties["LeaseDuration"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyId"]) {
|
||||
blobProperties.copyId = blobPropertiesInXML["CopyId"];
|
||||
delete blobProperties["CopyId"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyStatus"]) {
|
||||
blobProperties.copyStatus = blobPropertiesInXML["CopyStatus"];
|
||||
delete blobProperties["CopyStatus"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopySource"]) {
|
||||
blobProperties.copySource = blobPropertiesInXML["CopySource"];
|
||||
delete blobProperties["CopySource"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyProgress"]) {
|
||||
blobProperties.copyProgress = blobPropertiesInXML["CopyProgress"];
|
||||
delete blobProperties["CopyProgress"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyCompletionTime"]) {
|
||||
blobProperties.copyCompletedOn = new Date(blobPropertiesInXML["CopyCompletionTime"]);
|
||||
delete blobProperties["CopyCompletionTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyStatusDescription"]) {
|
||||
blobProperties.copyStatusDescription = blobPropertiesInXML["CopyStatusDescription"];
|
||||
delete blobProperties["CopyStatusDescription"];
|
||||
}
|
||||
if (blobPropertiesInXML["ServerEncrypted"]) {
|
||||
blobProperties.serverEncrypted = ParseBoolean(blobPropertiesInXML["ServerEncrypted"]);
|
||||
delete blobProperties["ServerEncrypted"];
|
||||
}
|
||||
if (blobPropertiesInXML["IncrementalCopy"]) {
|
||||
blobProperties.incrementalCopy = ParseBoolean(blobPropertiesInXML["IncrementalCopy"]);
|
||||
delete blobProperties["IncrementalCopy"];
|
||||
}
|
||||
if (blobPropertiesInXML["DestinationSnapshot"]) {
|
||||
blobProperties.destinationSnapshot = blobPropertiesInXML["DestinationSnapshot"];
|
||||
delete blobProperties["DestinationSnapshot"];
|
||||
}
|
||||
if (blobPropertiesInXML["DeletedTime"]) {
|
||||
blobProperties.deletedOn = new Date(blobPropertiesInXML["DeletedTime"]);
|
||||
delete blobProperties["DeletedTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["RemainingRetentionDays"]) {
|
||||
blobProperties.remainingRetentionDays = parseFloat(blobPropertiesInXML["RemainingRetentionDays"]);
|
||||
delete blobProperties["RemainingRetentionDays"];
|
||||
}
|
||||
if (blobPropertiesInXML["AccessTier"]) {
|
||||
blobProperties.accessTier = blobPropertiesInXML["AccessTier"];
|
||||
delete blobProperties["AccessTier"];
|
||||
}
|
||||
if (blobPropertiesInXML["AccessTierInferred"]) {
|
||||
blobProperties.accessTierInferred = ParseBoolean(blobPropertiesInXML["AccessTierInferred"]);
|
||||
delete blobProperties["AccessTierInferred"];
|
||||
}
|
||||
if (blobPropertiesInXML["ArchiveStatus"]) {
|
||||
blobProperties.archiveStatus = blobPropertiesInXML["ArchiveStatus"];
|
||||
delete blobProperties["ArchiveStatus"];
|
||||
}
|
||||
if (blobPropertiesInXML["CustomerProvidedKeySha256"]) {
|
||||
blobProperties.customerProvidedKeySha256 = blobPropertiesInXML["CustomerProvidedKeySha256"];
|
||||
delete blobProperties["CustomerProvidedKeySha256"];
|
||||
}
|
||||
if (blobPropertiesInXML["EncryptionScope"]) {
|
||||
blobProperties.encryptionScope = blobPropertiesInXML["EncryptionScope"];
|
||||
delete blobProperties["EncryptionScope"];
|
||||
}
|
||||
if (blobPropertiesInXML["AccessTierChangeTime"]) {
|
||||
blobProperties.accessTierChangedOn = new Date(blobPropertiesInXML["AccessTierChangeTime"]);
|
||||
delete blobProperties["AccessTierChangeTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["TagCount"]) {
|
||||
blobProperties.tagCount = parseFloat(blobPropertiesInXML["TagCount"]);
|
||||
delete blobProperties["TagCount"];
|
||||
}
|
||||
if (blobPropertiesInXML["Expiry-Time"]) {
|
||||
blobProperties.expiresOn = new Date(blobPropertiesInXML["Expiry-Time"]);
|
||||
delete blobProperties["Expiry-Time"];
|
||||
}
|
||||
if (blobPropertiesInXML["Sealed"]) {
|
||||
blobProperties.isSealed = ParseBoolean(blobPropertiesInXML["Sealed"]);
|
||||
delete blobProperties["Sealed"];
|
||||
}
|
||||
if (blobPropertiesInXML["RehydratePriority"]) {
|
||||
blobProperties.rehydratePriority = blobPropertiesInXML["RehydratePriority"];
|
||||
delete blobProperties["RehydratePriority"];
|
||||
}
|
||||
if (blobPropertiesInXML["LastAccessTime"]) {
|
||||
blobProperties.lastAccessedOn = new Date(blobPropertiesInXML["LastAccessTime"]);
|
||||
delete blobProperties["LastAccessTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["ImmutabilityPolicyUntilDate"]) {
|
||||
blobProperties.immutabilityPolicyExpiresOn = new Date(blobPropertiesInXML["ImmutabilityPolicyUntilDate"]);
|
||||
delete blobProperties["ImmutabilityPolicyUntilDate"];
|
||||
}
|
||||
if (blobPropertiesInXML["ImmutabilityPolicyMode"]) {
|
||||
blobProperties.immutabilityPolicyMode = blobPropertiesInXML["ImmutabilityPolicyMode"];
|
||||
delete blobProperties["ImmutabilityPolicyMode"];
|
||||
}
|
||||
if (blobPropertiesInXML["LegalHold"]) {
|
||||
blobProperties.legalHold = ParseBoolean(blobPropertiesInXML["LegalHold"]);
|
||||
delete blobProperties["LegalHold"];
|
||||
}
|
||||
return blobProperties;
|
||||
}
|
||||
function ParseBlobItem(blobInXML) {
|
||||
const blobItem = blobInXML;
|
||||
blobItem.properties = ParseBlobProperties(blobInXML["Properties"]);
|
||||
delete blobItem["Properties"];
|
||||
blobItem.name = ParseBlobName(blobInXML["Name"]);
|
||||
delete blobItem["Name"];
|
||||
blobItem.deleted = ParseBoolean(blobInXML["Deleted"]);
|
||||
delete blobItem["Deleted"];
|
||||
if (blobInXML["Snapshot"]) {
|
||||
blobItem.snapshot = blobInXML["Snapshot"];
|
||||
delete blobItem["Snapshot"];
|
||||
}
|
||||
if (blobInXML["VersionId"]) {
|
||||
blobItem.versionId = blobInXML["VersionId"];
|
||||
delete blobItem["VersionId"];
|
||||
}
|
||||
if (blobInXML["IsCurrentVersion"]) {
|
||||
blobItem.isCurrentVersion = ParseBoolean(blobInXML["IsCurrentVersion"]);
|
||||
delete blobItem["IsCurrentVersion"];
|
||||
}
|
||||
if (blobInXML["Metadata"]) {
|
||||
blobItem.metadata = blobInXML["Metadata"];
|
||||
delete blobItem["Metadata"];
|
||||
}
|
||||
if (blobInXML["Tags"]) {
|
||||
blobItem.blobTags = ParseBlobTags(blobInXML["Tags"]);
|
||||
delete blobItem["Tags"];
|
||||
}
|
||||
if (blobInXML["OrMetadata"]) {
|
||||
blobItem.objectReplicationMetadata = blobInXML["OrMetadata"];
|
||||
delete blobItem["OrMetadata"];
|
||||
}
|
||||
if (blobInXML["HasVersionsOnly"]) {
|
||||
blobItem.hasVersionsOnly = ParseBoolean(blobInXML["HasVersionsOnly"]);
|
||||
delete blobItem["HasVersionsOnly"];
|
||||
}
|
||||
return blobItem;
|
||||
}
|
||||
function ParseBlobPrefix(blobPrefixInXML) {
|
||||
return {
|
||||
name: ParseBlobName(blobPrefixInXML["Name"]),
|
||||
};
|
||||
}
|
||||
function ParseBlobTag(blobTagInXML) {
|
||||
return {
|
||||
key: blobTagInXML["Key"],
|
||||
value: blobTagInXML["Value"],
|
||||
};
|
||||
}
|
||||
function ParseBlobTags(blobTagsInXML) {
|
||||
if (blobTagsInXML === undefined ||
|
||||
blobTagsInXML["TagSet"] === undefined ||
|
||||
blobTagsInXML["TagSet"]["Tag"] === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
const blobTagSet = [];
|
||||
if (blobTagsInXML["TagSet"]["Tag"] instanceof Array) {
|
||||
blobTagsInXML["TagSet"]["Tag"].forEach((blobTagInXML) => {
|
||||
blobTagSet.push(ParseBlobTag(blobTagInXML));
|
||||
});
|
||||
}
|
||||
else {
|
||||
blobTagSet.push(ParseBlobTag(blobTagsInXML["TagSet"]["Tag"]));
|
||||
}
|
||||
return { blobTagSet: blobTagSet };
|
||||
}
|
||||
export function ProcessBlobItems(blobArrayInXML) {
|
||||
const blobItems = [];
|
||||
if (blobArrayInXML instanceof Array) {
|
||||
blobArrayInXML.forEach((blobInXML) => {
|
||||
blobItems.push(ParseBlobItem(blobInXML));
|
||||
});
|
||||
}
|
||||
else {
|
||||
blobItems.push(ParseBlobItem(blobArrayInXML));
|
||||
}
|
||||
return blobItems;
|
||||
}
|
||||
export function ProcessBlobPrefixes(blobPrefixesInXML) {
|
||||
const blobPrefixes = [];
|
||||
if (blobPrefixesInXML instanceof Array) {
|
||||
blobPrefixesInXML.forEach((blobPrefixInXML) => {
|
||||
blobPrefixes.push(ParseBlobPrefix(blobPrefixInXML));
|
||||
});
|
||||
}
|
||||
else {
|
||||
blobPrefixes.push(ParseBlobPrefix(blobPrefixesInXML));
|
||||
}
|
||||
return blobPrefixes;
|
||||
}
|
||||
export function* ExtractPageRangeInfoItems(getPageRangesSegment) {
|
||||
let pageRange = [];
|
||||
let clearRange = [];
|
||||
|
|
@ -989,4 +701,14 @@ export function* ExtractPageRangeInfoItems(getPageRangesSegment) {
|
|||
};
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Escape the blobName but keep path separator ('/').
|
||||
*/
|
||||
export function EscapePath(blobName) {
|
||||
const split = blobName.split("/");
|
||||
for (let i = 0; i < split.length; i++) {
|
||||
split[i] = encodeURIComponent(split[i]);
|
||||
}
|
||||
return split.join("/");
|
||||
}
|
||||
//# sourceMappingURL=utils.common.js.map
|
||||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.common.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.common.js.map
generated
vendored
File diff suppressed because one or more lines are too long
9
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.node.js
generated
vendored
9
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.node.js
generated
vendored
|
|
@ -2,6 +2,7 @@
|
|||
// Licensed under the MIT license.
|
||||
import * as fs from "fs";
|
||||
import * as util from "util";
|
||||
import { REQUEST_TIMEOUT } from "./constants";
|
||||
/**
|
||||
* Reads a readable stream into buffer. Fill the buffer from offset to end.
|
||||
*
|
||||
|
|
@ -15,8 +16,10 @@ export async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|||
let pos = 0; // Position in stream
|
||||
const count = end - offset; // Total amount of data needed in stream
|
||||
return new Promise((resolve, reject) => {
|
||||
const timeout = setTimeout(() => reject(new Error(`The operation cannot be completed in timeout.`)), REQUEST_TIMEOUT);
|
||||
stream.on("readable", () => {
|
||||
if (pos >= count) {
|
||||
clearTimeout(timeout);
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
|
|
@ -33,12 +36,16 @@ export async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|||
pos += chunkLength;
|
||||
});
|
||||
stream.on("end", () => {
|
||||
clearTimeout(timeout);
|
||||
if (pos < count) {
|
||||
reject(new Error(`Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`));
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
stream.on("error", reject);
|
||||
stream.on("error", (msg) => {
|
||||
clearTimeout(timeout);
|
||||
reject(msg);
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.node.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist-esm/storage-blob/src/utils/utils.node.js.map
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/@azure/storage-blob/dist-esm/storage-internal-avro/src/AvroParser.js
generated
vendored
1
node_modules/@azure/storage-blob/dist-esm/storage-internal-avro/src/AvroParser.js
generated
vendored
|
|
@ -275,6 +275,7 @@ class AvroUnionType extends AvroType {
|
|||
this._types = types;
|
||||
}
|
||||
async read(stream, options = {}) {
|
||||
// eslint-disable-line @typescript-eslint/ban-types
|
||||
const typeIndex = await AvroParser.readInt(stream, options);
|
||||
return this._types[typeIndex].read(stream, options);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"AvroReadableFromBlob.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/AvroReadableFromBlob.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,yCAAyC,CAAC,CAAC;AAE9E,MAAM,OAAO,oBAAqB,SAAQ,YAAY;IAIpD,YAAY,IAAU;QACpB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,IAAY,EAAE,UAAmC,EAAE;QACnE,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QACxD,IAAI,IAAI,IAAI,CAAC,EAAE;YACb,OAAO,IAAI,UAAU,EAAE,CAAC;SACzB;QAED,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;QACpC,OAAO,IAAI,OAAO,CAAa,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAEjD,SAAS,OAAO;gBACd,IAAI,OAAO,CAAC,WAAW,EAAE;oBACvB,OAAO,CAAC,WAAY,CAAC,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;iBACjE;YACH,CAAC;YAED,SAAS,YAAY;gBACnB,UAAU,CAAC,KAAK,EAAE,CAAC;gBACnB,OAAO,EAAE,CAAC;gBACV,MAAM,CAAC,WAAW,CAAC,CAAC;YACtB,CAAC;YAED,IAAI,OAAO,CAAC,WAAW,EAAE;gBACvB,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;aAC7D;YAED,UAAU,CAAC,SAAS,GAAG,CAAC,EAAO,EAAE,EAAE;gBACjC,OAAO,EAAE,CAAC;gBACV,OAAO,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YAC7C,CAAC,CAAC;YAEF,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE;gBACxB,OAAO,EAAE,CAAC;gBACV,MAAM,EAAE,CAAC;YACX,CAAC,CAAC;YAEF,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;QAC3F,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AvroReadable, AvroReadableReadOptions } from \"./AvroReadable\";\nimport { AbortError } from \"@azure/abort-controller\";\n\nconst ABORT_ERROR = new AbortError(\"Reading from the avro blob was aborted.\");\n\nexport class AvroReadableFromBlob extends AvroReadable {\n private _position: number;\n private _blob: Blob;\n\n constructor(blob: Blob) {\n super();\n this._blob = blob;\n this._position = 0;\n }\n\n public get position(): number {\n return this._position;\n }\n\n public async read(size: number, options: AvroReadableReadOptions = {}): Promise<Uint8Array> {\n size = Math.min(size, this._blob.size - this._position);\n if (size <= 0) {\n return new Uint8Array();\n }\n\n const fileReader = new FileReader();\n return new Promise<Uint8Array>((resolve, reject) => {\n\n function cleanUp(): void {\n if (options.abortSignal) {\n options.abortSignal!.removeEventListener(\"abort\", abortHandler);\n }\n }\n\n function abortHandler(): void {\n fileReader.abort();\n cleanUp();\n reject(ABORT_ERROR);\n }\n\n if (options.abortSignal) {\n options.abortSignal.addEventListener(\"abort\", abortHandler);\n }\n\n fileReader.onloadend = (ev: any) => {\n cleanUp();\n resolve(new Uint8Array(ev.target!.result));\n };\n\n fileReader.onerror = () => {\n cleanUp();\n reject();\n };\n\n fileReader.readAsArrayBuffer(this._blob.slice(this._position, (this._position += size)));\n });\n }\n}\n"]}
|
||||
{"version":3,"file":"AvroReadableFromBlob.js","sourceRoot":"","sources":["../../../../storage-internal-avro/src/AvroReadableFromBlob.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,yCAAyC,CAAC,CAAC;AAE9E,MAAM,OAAO,oBAAqB,SAAQ,YAAY;IAIpD,YAAY,IAAU;QACpB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,IAAY,EAAE,UAAmC,EAAE;QACnE,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QACxD,IAAI,IAAI,IAAI,CAAC,EAAE;YACb,OAAO,IAAI,UAAU,EAAE,CAAC;SACzB;QAED,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;QACpC,OAAO,IAAI,OAAO,CAAa,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACjD,SAAS,OAAO;gBACd,IAAI,OAAO,CAAC,WAAW,EAAE;oBACvB,OAAO,CAAC,WAAY,CAAC,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;iBACjE;YACH,CAAC;YAED,SAAS,YAAY;gBACnB,UAAU,CAAC,KAAK,EAAE,CAAC;gBACnB,OAAO,EAAE,CAAC;gBACV,MAAM,CAAC,WAAW,CAAC,CAAC;YACtB,CAAC;YAED,IAAI,OAAO,CAAC,WAAW,EAAE;gBACvB,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;aAC7D;YAED,UAAU,CAAC,SAAS,GAAG,CAAC,EAAO,EAAE,EAAE;gBACjC,OAAO,EAAE,CAAC;gBACV,OAAO,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YAC7C,CAAC,CAAC;YAEF,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE;gBACxB,OAAO,EAAE,CAAC;gBACV,MAAM,EAAE,CAAC;YACX,CAAC,CAAC;YAEF,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;QAC3F,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AvroReadable, AvroReadableReadOptions } from \"./AvroReadable\";\nimport { AbortError } from \"@azure/abort-controller\";\n\nconst ABORT_ERROR = new AbortError(\"Reading from the avro blob was aborted.\");\n\nexport class AvroReadableFromBlob extends AvroReadable {\n private _position: number;\n private _blob: Blob;\n\n constructor(blob: Blob) {\n super();\n this._blob = blob;\n this._position = 0;\n }\n\n public get position(): number {\n return this._position;\n }\n\n public async read(size: number, options: AvroReadableReadOptions = {}): Promise<Uint8Array> {\n size = Math.min(size, this._blob.size - this._position);\n if (size <= 0) {\n return new Uint8Array();\n }\n\n const fileReader = new FileReader();\n return new Promise<Uint8Array>((resolve, reject) => {\n function cleanUp(): void {\n if (options.abortSignal) {\n options.abortSignal!.removeEventListener(\"abort\", abortHandler);\n }\n }\n\n function abortHandler(): void {\n fileReader.abort();\n cleanUp();\n reject(ABORT_ERROR);\n }\n\n if (options.abortSignal) {\n options.abortSignal.addEventListener(\"abort\", abortHandler);\n }\n\n fileReader.onloadend = (ev: any) => {\n cleanUp();\n resolve(new Uint8Array(ev.target!.result));\n };\n\n fileReader.onerror = () => {\n cleanUp();\n reject();\n };\n\n fileReader.readAsArrayBuffer(this._blob.slice(this._position, (this._position += size)));\n });\n }\n}\n"]}
|
||||
420
node_modules/@azure/storage-blob/dist/index.js
generated
vendored
420
node_modules/@azure/storage-blob/dist/index.js
generated
vendored
|
|
@ -1088,6 +1088,7 @@ const BlobName = {
|
|||
content: {
|
||||
serializedName: "content",
|
||||
xmlName: "content",
|
||||
xmlIsMsText: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
|
|
@ -1316,7 +1317,8 @@ const BlobPropertiesInternal = {
|
|||
"P80",
|
||||
"Hot",
|
||||
"Cool",
|
||||
"Archive"
|
||||
"Archive",
|
||||
"Cold"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
@ -3815,6 +3817,13 @@ const BlobDownloadHeaders = {
|
|||
name: "DateTimeRfc1123"
|
||||
}
|
||||
},
|
||||
createdOn: {
|
||||
serializedName: "x-ms-creation-time",
|
||||
xmlName: "x-ms-creation-time",
|
||||
type: {
|
||||
name: "DateTimeRfc1123"
|
||||
}
|
||||
},
|
||||
metadata: {
|
||||
serializedName: "x-ms-meta",
|
||||
xmlName: "x-ms-meta",
|
||||
|
|
@ -8497,7 +8506,7 @@ const timeoutInSeconds = {
|
|||
const version = {
|
||||
parameterPath: "version",
|
||||
mapper: {
|
||||
defaultValue: "2021-08-06",
|
||||
defaultValue: "2022-11-02",
|
||||
isConstant: true,
|
||||
serializedName: "x-ms-version",
|
||||
type: {
|
||||
|
|
@ -9362,7 +9371,8 @@ const tier = {
|
|||
"P80",
|
||||
"Hot",
|
||||
"Cool",
|
||||
"Archive"
|
||||
"Archive",
|
||||
"Cold"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -9589,7 +9599,8 @@ const tier1 = {
|
|||
"P80",
|
||||
"Hot",
|
||||
"Cool",
|
||||
"Archive"
|
||||
"Archive",
|
||||
"Cold"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -13098,6 +13109,7 @@ const uploadOperationSpec = {
|
|||
blobTagsString,
|
||||
legalHold1,
|
||||
transactionalContentMD5,
|
||||
transactionalContentCrc64,
|
||||
contentType1,
|
||||
accept2,
|
||||
blobType2
|
||||
|
|
@ -13325,14 +13337,15 @@ const logger = logger$1.createClientLogger("storage-blob");
|
|||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
const SDK_VERSION = "12.11.0";
|
||||
const SERVICE_VERSION = "2021-08-06";
|
||||
const SDK_VERSION = "12.14.0";
|
||||
const SERVICE_VERSION = "2022-11-02";
|
||||
const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
|
||||
const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
|
||||
const BLOCK_BLOB_MAX_BLOCKS = 50000;
|
||||
const DEFAULT_BLOCK_BUFFER_SIZE_BYTES = 8 * 1024 * 1024; // 8MB
|
||||
const DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES = 4 * 1024 * 1024; // 4MB
|
||||
const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
||||
const REQUEST_TIMEOUT = 100 * 1000; // In ms
|
||||
/**
|
||||
* The OAuth scope to use with Azure Storage.
|
||||
*/
|
||||
|
|
@ -13520,6 +13533,30 @@ const StorageBlobLoggingAllowedQueryParameters = [
|
|||
];
|
||||
const BlobUsesCustomerSpecifiedEncryptionMsg = "BlobUsesCustomerSpecifiedEncryption";
|
||||
const BlobDoesNotUseCustomerSpecifiedEncryption = "BlobDoesNotUseCustomerSpecifiedEncryption";
|
||||
/// List of ports used for path style addressing.
|
||||
/// Path style addressing means that storage account is put in URI's Path segment in instead of in host.
|
||||
const PathStylePorts = [
|
||||
"10000",
|
||||
"10001",
|
||||
"10002",
|
||||
"10003",
|
||||
"10004",
|
||||
"10100",
|
||||
"10101",
|
||||
"10102",
|
||||
"10103",
|
||||
"10104",
|
||||
"11000",
|
||||
"11001",
|
||||
"11002",
|
||||
"11003",
|
||||
"11004",
|
||||
"11100",
|
||||
"11101",
|
||||
"11102",
|
||||
"11103",
|
||||
"11104",
|
||||
];
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
/**
|
||||
|
|
@ -13700,7 +13737,8 @@ function appendToURLPath(url, name) {
|
|||
let path = urlParsed.getPath();
|
||||
path = path ? (path.endsWith("/") ? `${path}${name}` : `${path}/${name}`) : name;
|
||||
urlParsed.setPath(path);
|
||||
return urlParsed.toString();
|
||||
const normalizedUrl = new URL(urlParsed.toString());
|
||||
return normalizedUrl.toString();
|
||||
}
|
||||
/**
|
||||
* Set URL parameter name and value. If name exists in URL parameters, old value
|
||||
|
|
@ -13961,7 +13999,8 @@ function isIpEndpointStyle(parsedUrl) {
|
|||
// Case 2: localhost(:port), use broad regex to match port part.
|
||||
// Case 3: Ipv4, use broad regex which just check if host contains Ipv4.
|
||||
// For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html.
|
||||
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);
|
||||
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) ||
|
||||
(parsedUrl.getPort() !== undefined && PathStylePorts.includes(parsedUrl.getPort())));
|
||||
}
|
||||
/**
|
||||
* Convert Tags to encoded string.
|
||||
|
|
@ -14147,296 +14186,6 @@ function ConvertInternalResponseOfListBlobHierarchy(internalResponse) {
|
|||
}),
|
||||
} });
|
||||
}
|
||||
function decodeBase64String(value) {
|
||||
if (coreHttp.isNode) {
|
||||
return Buffer.from(value, "base64");
|
||||
}
|
||||
else {
|
||||
const byteString = atob(value);
|
||||
const arr = new Uint8Array(byteString.length);
|
||||
for (let i = 0; i < byteString.length; i++) {
|
||||
arr[i] = byteString.charCodeAt(i);
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
function ParseBoolean(content) {
|
||||
if (content === undefined)
|
||||
return undefined;
|
||||
if (content === "true")
|
||||
return true;
|
||||
if (content === "false")
|
||||
return false;
|
||||
return undefined;
|
||||
}
|
||||
function ParseBlobName(blobNameInXML) {
|
||||
if (blobNameInXML["$"] !== undefined && blobNameInXML["#"] !== undefined) {
|
||||
return {
|
||||
encoded: ParseBoolean(blobNameInXML["$"]["Encoded"]),
|
||||
content: blobNameInXML["#"],
|
||||
};
|
||||
}
|
||||
else {
|
||||
return {
|
||||
encoded: false,
|
||||
content: blobNameInXML,
|
||||
};
|
||||
}
|
||||
}
|
||||
function ParseBlobProperties(blobPropertiesInXML) {
|
||||
const blobProperties = blobPropertiesInXML;
|
||||
if (blobPropertiesInXML["Creation-Time"]) {
|
||||
blobProperties.createdOn = new Date(blobPropertiesInXML["Creation-Time"]);
|
||||
delete blobProperties["Creation-Time"];
|
||||
}
|
||||
if (blobPropertiesInXML["Last-Modified"]) {
|
||||
blobProperties.lastModified = new Date(blobPropertiesInXML["Last-Modified"]);
|
||||
delete blobProperties["Last-Modified"];
|
||||
}
|
||||
if (blobPropertiesInXML["Etag"]) {
|
||||
blobProperties.etag = blobPropertiesInXML["Etag"];
|
||||
delete blobProperties["Etag"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Length"]) {
|
||||
blobProperties.contentLength = parseFloat(blobPropertiesInXML["Content-Length"]);
|
||||
delete blobProperties["Content-Length"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Type"]) {
|
||||
blobProperties.contentType = blobPropertiesInXML["Content-Type"];
|
||||
delete blobProperties["Content-Type"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Encoding"]) {
|
||||
blobProperties.contentEncoding = blobPropertiesInXML["Content-Encoding"];
|
||||
delete blobProperties["Content-Encoding"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Language"]) {
|
||||
blobProperties.contentLanguage = blobPropertiesInXML["Content-Language"];
|
||||
delete blobProperties["Content-Language"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-MD5"]) {
|
||||
blobProperties.contentMD5 = decodeBase64String(blobPropertiesInXML["Content-MD5"]);
|
||||
delete blobProperties["Content-MD5"];
|
||||
}
|
||||
if (blobPropertiesInXML["Content-Disposition"]) {
|
||||
blobProperties.contentDisposition = blobPropertiesInXML["Content-Disposition"];
|
||||
delete blobProperties["Content-Disposition"];
|
||||
}
|
||||
if (blobPropertiesInXML["Cache-Control"]) {
|
||||
blobProperties.cacheControl = blobPropertiesInXML["Cache-Control"];
|
||||
delete blobProperties["Cache-Control"];
|
||||
}
|
||||
if (blobPropertiesInXML["x-ms-blob-sequence-number"]) {
|
||||
blobProperties.blobSequenceNumber = parseFloat(blobPropertiesInXML["x-ms-blob-sequence-number"]);
|
||||
delete blobProperties["x-ms-blob-sequence-number"];
|
||||
}
|
||||
if (blobPropertiesInXML["BlobType"]) {
|
||||
blobProperties.blobType = blobPropertiesInXML["BlobType"];
|
||||
delete blobProperties["BlobType"];
|
||||
}
|
||||
if (blobPropertiesInXML["LeaseStatus"]) {
|
||||
blobProperties.leaseStatus = blobPropertiesInXML["LeaseStatus"];
|
||||
delete blobProperties["LeaseStatus"];
|
||||
}
|
||||
if (blobPropertiesInXML["LeaseState"]) {
|
||||
blobProperties.leaseState = blobPropertiesInXML["LeaseState"];
|
||||
delete blobProperties["LeaseState"];
|
||||
}
|
||||
if (blobPropertiesInXML["LeaseDuration"]) {
|
||||
blobProperties.leaseDuration = blobPropertiesInXML["LeaseDuration"];
|
||||
delete blobProperties["LeaseDuration"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyId"]) {
|
||||
blobProperties.copyId = blobPropertiesInXML["CopyId"];
|
||||
delete blobProperties["CopyId"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyStatus"]) {
|
||||
blobProperties.copyStatus = blobPropertiesInXML["CopyStatus"];
|
||||
delete blobProperties["CopyStatus"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopySource"]) {
|
||||
blobProperties.copySource = blobPropertiesInXML["CopySource"];
|
||||
delete blobProperties["CopySource"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyProgress"]) {
|
||||
blobProperties.copyProgress = blobPropertiesInXML["CopyProgress"];
|
||||
delete blobProperties["CopyProgress"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyCompletionTime"]) {
|
||||
blobProperties.copyCompletedOn = new Date(blobPropertiesInXML["CopyCompletionTime"]);
|
||||
delete blobProperties["CopyCompletionTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["CopyStatusDescription"]) {
|
||||
blobProperties.copyStatusDescription = blobPropertiesInXML["CopyStatusDescription"];
|
||||
delete blobProperties["CopyStatusDescription"];
|
||||
}
|
||||
if (blobPropertiesInXML["ServerEncrypted"]) {
|
||||
blobProperties.serverEncrypted = ParseBoolean(blobPropertiesInXML["ServerEncrypted"]);
|
||||
delete blobProperties["ServerEncrypted"];
|
||||
}
|
||||
if (blobPropertiesInXML["IncrementalCopy"]) {
|
||||
blobProperties.incrementalCopy = ParseBoolean(blobPropertiesInXML["IncrementalCopy"]);
|
||||
delete blobProperties["IncrementalCopy"];
|
||||
}
|
||||
if (blobPropertiesInXML["DestinationSnapshot"]) {
|
||||
blobProperties.destinationSnapshot = blobPropertiesInXML["DestinationSnapshot"];
|
||||
delete blobProperties["DestinationSnapshot"];
|
||||
}
|
||||
if (blobPropertiesInXML["DeletedTime"]) {
|
||||
blobProperties.deletedOn = new Date(blobPropertiesInXML["DeletedTime"]);
|
||||
delete blobProperties["DeletedTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["RemainingRetentionDays"]) {
|
||||
blobProperties.remainingRetentionDays = parseFloat(blobPropertiesInXML["RemainingRetentionDays"]);
|
||||
delete blobProperties["RemainingRetentionDays"];
|
||||
}
|
||||
if (blobPropertiesInXML["AccessTier"]) {
|
||||
blobProperties.accessTier = blobPropertiesInXML["AccessTier"];
|
||||
delete blobProperties["AccessTier"];
|
||||
}
|
||||
if (blobPropertiesInXML["AccessTierInferred"]) {
|
||||
blobProperties.accessTierInferred = ParseBoolean(blobPropertiesInXML["AccessTierInferred"]);
|
||||
delete blobProperties["AccessTierInferred"];
|
||||
}
|
||||
if (blobPropertiesInXML["ArchiveStatus"]) {
|
||||
blobProperties.archiveStatus = blobPropertiesInXML["ArchiveStatus"];
|
||||
delete blobProperties["ArchiveStatus"];
|
||||
}
|
||||
if (blobPropertiesInXML["CustomerProvidedKeySha256"]) {
|
||||
blobProperties.customerProvidedKeySha256 = blobPropertiesInXML["CustomerProvidedKeySha256"];
|
||||
delete blobProperties["CustomerProvidedKeySha256"];
|
||||
}
|
||||
if (blobPropertiesInXML["EncryptionScope"]) {
|
||||
blobProperties.encryptionScope = blobPropertiesInXML["EncryptionScope"];
|
||||
delete blobProperties["EncryptionScope"];
|
||||
}
|
||||
if (blobPropertiesInXML["AccessTierChangeTime"]) {
|
||||
blobProperties.accessTierChangedOn = new Date(blobPropertiesInXML["AccessTierChangeTime"]);
|
||||
delete blobProperties["AccessTierChangeTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["TagCount"]) {
|
||||
blobProperties.tagCount = parseFloat(blobPropertiesInXML["TagCount"]);
|
||||
delete blobProperties["TagCount"];
|
||||
}
|
||||
if (blobPropertiesInXML["Expiry-Time"]) {
|
||||
blobProperties.expiresOn = new Date(blobPropertiesInXML["Expiry-Time"]);
|
||||
delete blobProperties["Expiry-Time"];
|
||||
}
|
||||
if (blobPropertiesInXML["Sealed"]) {
|
||||
blobProperties.isSealed = ParseBoolean(blobPropertiesInXML["Sealed"]);
|
||||
delete blobProperties["Sealed"];
|
||||
}
|
||||
if (blobPropertiesInXML["RehydratePriority"]) {
|
||||
blobProperties.rehydratePriority = blobPropertiesInXML["RehydratePriority"];
|
||||
delete blobProperties["RehydratePriority"];
|
||||
}
|
||||
if (blobPropertiesInXML["LastAccessTime"]) {
|
||||
blobProperties.lastAccessedOn = new Date(blobPropertiesInXML["LastAccessTime"]);
|
||||
delete blobProperties["LastAccessTime"];
|
||||
}
|
||||
if (blobPropertiesInXML["ImmutabilityPolicyUntilDate"]) {
|
||||
blobProperties.immutabilityPolicyExpiresOn = new Date(blobPropertiesInXML["ImmutabilityPolicyUntilDate"]);
|
||||
delete blobProperties["ImmutabilityPolicyUntilDate"];
|
||||
}
|
||||
if (blobPropertiesInXML["ImmutabilityPolicyMode"]) {
|
||||
blobProperties.immutabilityPolicyMode = blobPropertiesInXML["ImmutabilityPolicyMode"];
|
||||
delete blobProperties["ImmutabilityPolicyMode"];
|
||||
}
|
||||
if (blobPropertiesInXML["LegalHold"]) {
|
||||
blobProperties.legalHold = ParseBoolean(blobPropertiesInXML["LegalHold"]);
|
||||
delete blobProperties["LegalHold"];
|
||||
}
|
||||
return blobProperties;
|
||||
}
|
||||
function ParseBlobItem(blobInXML) {
|
||||
const blobItem = blobInXML;
|
||||
blobItem.properties = ParseBlobProperties(blobInXML["Properties"]);
|
||||
delete blobItem["Properties"];
|
||||
blobItem.name = ParseBlobName(blobInXML["Name"]);
|
||||
delete blobItem["Name"];
|
||||
blobItem.deleted = ParseBoolean(blobInXML["Deleted"]);
|
||||
delete blobItem["Deleted"];
|
||||
if (blobInXML["Snapshot"]) {
|
||||
blobItem.snapshot = blobInXML["Snapshot"];
|
||||
delete blobItem["Snapshot"];
|
||||
}
|
||||
if (blobInXML["VersionId"]) {
|
||||
blobItem.versionId = blobInXML["VersionId"];
|
||||
delete blobItem["VersionId"];
|
||||
}
|
||||
if (blobInXML["IsCurrentVersion"]) {
|
||||
blobItem.isCurrentVersion = ParseBoolean(blobInXML["IsCurrentVersion"]);
|
||||
delete blobItem["IsCurrentVersion"];
|
||||
}
|
||||
if (blobInXML["Metadata"]) {
|
||||
blobItem.metadata = blobInXML["Metadata"];
|
||||
delete blobItem["Metadata"];
|
||||
}
|
||||
if (blobInXML["Tags"]) {
|
||||
blobItem.blobTags = ParseBlobTags(blobInXML["Tags"]);
|
||||
delete blobItem["Tags"];
|
||||
}
|
||||
if (blobInXML["OrMetadata"]) {
|
||||
blobItem.objectReplicationMetadata = blobInXML["OrMetadata"];
|
||||
delete blobItem["OrMetadata"];
|
||||
}
|
||||
if (blobInXML["HasVersionsOnly"]) {
|
||||
blobItem.hasVersionsOnly = ParseBoolean(blobInXML["HasVersionsOnly"]);
|
||||
delete blobItem["HasVersionsOnly"];
|
||||
}
|
||||
return blobItem;
|
||||
}
|
||||
function ParseBlobPrefix(blobPrefixInXML) {
|
||||
return {
|
||||
name: ParseBlobName(blobPrefixInXML["Name"]),
|
||||
};
|
||||
}
|
||||
function ParseBlobTag(blobTagInXML) {
|
||||
return {
|
||||
key: blobTagInXML["Key"],
|
||||
value: blobTagInXML["Value"],
|
||||
};
|
||||
}
|
||||
function ParseBlobTags(blobTagsInXML) {
|
||||
if (blobTagsInXML === undefined ||
|
||||
blobTagsInXML["TagSet"] === undefined ||
|
||||
blobTagsInXML["TagSet"]["Tag"] === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
const blobTagSet = [];
|
||||
if (blobTagsInXML["TagSet"]["Tag"] instanceof Array) {
|
||||
blobTagsInXML["TagSet"]["Tag"].forEach((blobTagInXML) => {
|
||||
blobTagSet.push(ParseBlobTag(blobTagInXML));
|
||||
});
|
||||
}
|
||||
else {
|
||||
blobTagSet.push(ParseBlobTag(blobTagsInXML["TagSet"]["Tag"]));
|
||||
}
|
||||
return { blobTagSet: blobTagSet };
|
||||
}
|
||||
function ProcessBlobItems(blobArrayInXML) {
|
||||
const blobItems = [];
|
||||
if (blobArrayInXML instanceof Array) {
|
||||
blobArrayInXML.forEach((blobInXML) => {
|
||||
blobItems.push(ParseBlobItem(blobInXML));
|
||||
});
|
||||
}
|
||||
else {
|
||||
blobItems.push(ParseBlobItem(blobArrayInXML));
|
||||
}
|
||||
return blobItems;
|
||||
}
|
||||
function ProcessBlobPrefixes(blobPrefixesInXML) {
|
||||
const blobPrefixes = [];
|
||||
if (blobPrefixesInXML instanceof Array) {
|
||||
blobPrefixesInXML.forEach((blobPrefixInXML) => {
|
||||
blobPrefixes.push(ParseBlobPrefix(blobPrefixInXML));
|
||||
});
|
||||
}
|
||||
else {
|
||||
blobPrefixes.push(ParseBlobPrefix(blobPrefixesInXML));
|
||||
}
|
||||
return blobPrefixes;
|
||||
}
|
||||
function* ExtractPageRangeInfoItems(getPageRangesSegment) {
|
||||
let pageRange = [];
|
||||
let clearRange = [];
|
||||
|
|
@ -14479,6 +14228,16 @@ function* ExtractPageRangeInfoItems(getPageRangesSegment) {
|
|||
};
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Escape the blobName but keep path separator ('/').
|
||||
*/
|
||||
function EscapePath(blobName) {
|
||||
const split = blobName.split("/");
|
||||
for (let i = 0; i < split.length; i++) {
|
||||
split[i] = encodeURIComponent(split[i]);
|
||||
}
|
||||
return split.join("/");
|
||||
}
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
/**
|
||||
|
|
@ -15437,7 +15196,7 @@ class StorageSharedKeyCredential extends Credential {
|
|||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
const packageName = "azure-storage-blob";
|
||||
const packageVersion = "12.11.0";
|
||||
const packageVersion = "12.14.0";
|
||||
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
||||
/**
|
||||
* Initializes a new instance of the StorageClientContext class.
|
||||
|
|
@ -15463,7 +15222,7 @@ class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
|||
// Parameter assignments
|
||||
this.url = url;
|
||||
// Assigning values to Constant parameters
|
||||
this.version = options.version || "2021-08-06";
|
||||
this.version = options.version || "2022-11-02";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -17392,6 +17151,14 @@ class BlobDownloadResponse {
|
|||
get lastAccessed() {
|
||||
return this.originalResponse.lastAccessed;
|
||||
}
|
||||
/**
|
||||
* Returns the date and time the blob was created.
|
||||
*
|
||||
* @readonly
|
||||
*/
|
||||
get createdOn() {
|
||||
return this.originalResponse.createdOn;
|
||||
}
|
||||
/**
|
||||
* A name-value pair
|
||||
* to associate with a file storage object.
|
||||
|
|
@ -17822,6 +17589,7 @@ class AvroUnionType extends AvroType {
|
|||
this._types = types;
|
||||
}
|
||||
async read(stream, options = {}) {
|
||||
// eslint-disable-line @typescript-eslint/ban-types
|
||||
const typeIndex = await AvroParser.readInt(stream, options);
|
||||
return this._types[typeIndex].read(stream, options);
|
||||
}
|
||||
|
|
@ -18545,6 +18313,10 @@ exports.BlockBlobTier = void 0;
|
|||
* Optimized for storing data that is infrequently accessed and stored for at least 30 days.
|
||||
*/
|
||||
BlockBlobTier["Cool"] = "Cool";
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed.
|
||||
*/
|
||||
BlockBlobTier["Cold"] = "Cold";
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed and stored for at least 180 days
|
||||
* with flexible latency requirements (on the order of hours).
|
||||
|
|
@ -19351,8 +19123,10 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|||
let pos = 0; // Position in stream
|
||||
const count = end - offset; // Total amount of data needed in stream
|
||||
return new Promise((resolve, reject) => {
|
||||
const timeout = setTimeout(() => reject(new Error(`The operation cannot be completed in timeout.`)), REQUEST_TIMEOUT);
|
||||
stream.on("readable", () => {
|
||||
if (pos >= count) {
|
||||
clearTimeout(timeout);
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
|
|
@ -19369,12 +19143,16 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|||
pos += chunkLength;
|
||||
});
|
||||
stream.on("end", () => {
|
||||
clearTimeout(timeout);
|
||||
if (pos < count) {
|
||||
reject(new Error(`Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`));
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
stream.on("error", reject);
|
||||
stream.on("error", (msg) => {
|
||||
clearTimeout(timeout);
|
||||
reject(msg);
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
|
@ -19470,6 +19248,9 @@ class BlobClient extends StorageClient {
|
|||
// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
|
||||
// The second parameter is undefined. Use anonymous credential.
|
||||
url = urlOrConnectionString;
|
||||
if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
|
||||
options = blobNameOrOptions;
|
||||
}
|
||||
pipeline = newPipeline(new AnonymousCredential(), options);
|
||||
}
|
||||
else if (credentialOrPipelineOrContainerName &&
|
||||
|
|
@ -20140,7 +19921,7 @@ class BlobClient extends StorageClient {
|
|||
sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
|
||||
sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
|
||||
sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
|
||||
}, sourceContentMD5: options.sourceContentMD5, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), blobTagsString: toBlobTagsString(options.tags), immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, encryptionScope: options.encryptionScope, copySourceTags: options.copySourceTags }, convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
}, sourceContentMD5: options.sourceContentMD5, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, encryptionScope: options.encryptionScope, copySourceTags: options.copySourceTags }, convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
}
|
||||
catch (e) {
|
||||
span.setStatus({
|
||||
|
|
@ -20773,6 +20554,9 @@ class BlockBlobClient extends BlobClient {
|
|||
// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)
|
||||
// The second parameter is undefined. Use anonymous credential.
|
||||
url = urlOrConnectionString;
|
||||
if (blobNameOrOptions && typeof blobNameOrOptions !== "string") {
|
||||
options = blobNameOrOptions;
|
||||
}
|
||||
pipeline = newPipeline(new AnonymousCredential(), options);
|
||||
}
|
||||
else if (credentialOrPipelineOrContainerName &&
|
||||
|
|
@ -22866,6 +22650,7 @@ class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, the operation fails.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options - Options to Container Create operation.
|
||||
*
|
||||
|
|
@ -22900,6 +22685,7 @@ class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, it is not changed.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options -
|
||||
*/
|
||||
|
|
@ -22971,7 +22757,7 @@ class ContainerClient extends StorageClient {
|
|||
* @returns A new BlobClient object for the given blob name.
|
||||
*/
|
||||
getBlobClient(blobName) {
|
||||
return new BlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new BlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Creates an {@link AppendBlobClient}
|
||||
|
|
@ -22979,7 +22765,7 @@ class ContainerClient extends StorageClient {
|
|||
* @param blobName - An append blob name
|
||||
*/
|
||||
getAppendBlobClient(blobName) {
|
||||
return new AppendBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new AppendBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link BlockBlobClient}
|
||||
|
|
@ -22997,7 +22783,7 @@ class ContainerClient extends StorageClient {
|
|||
* ```
|
||||
*/
|
||||
getBlockBlobClient(blobName) {
|
||||
return new BlockBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new BlockBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link PageBlobClient}
|
||||
|
|
@ -23005,7 +22791,7 @@ class ContainerClient extends StorageClient {
|
|||
* @param blobName - A page blob name
|
||||
*/
|
||||
getPageBlobClient(blobName) {
|
||||
return new PageBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
|
||||
return new PageBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Returns all user-defined metadata and system properties for the specified
|
||||
|
|
@ -23337,10 +23123,6 @@ class ContainerClient extends StorageClient {
|
|||
const { span, updatedOptions } = createSpan("ContainerClient-listBlobFlatSegment", options);
|
||||
try {
|
||||
const response = await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
response.segment.blobItems = [];
|
||||
if (response.segment["Blob"] !== undefined) {
|
||||
response.segment.blobItems = ProcessBlobItems(response.segment["Blob"]);
|
||||
}
|
||||
const wrappedResponse = Object.assign(Object.assign({}, response), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListBlobFlat(response._response.parsedBody) }), segment: Object.assign(Object.assign({}, response.segment), { blobItems: response.segment.blobItems.map((blobItemInteral) => {
|
||||
const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name), tags: toTags(blobItemInteral.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInteral.objectReplicationMetadata) });
|
||||
return blobItem;
|
||||
|
|
@ -23374,14 +23156,6 @@ class ContainerClient extends StorageClient {
|
|||
const { span, updatedOptions } = createSpan("ContainerClient-listBlobHierarchySegment", options);
|
||||
try {
|
||||
const response = await this.containerContext.listBlobHierarchySegment(delimiter, Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));
|
||||
response.segment.blobItems = [];
|
||||
if (response.segment["Blob"] !== undefined) {
|
||||
response.segment.blobItems = ProcessBlobItems(response.segment["Blob"]);
|
||||
}
|
||||
response.segment.blobPrefixes = [];
|
||||
if (response.segment["BlobPrefix"] !== undefined) {
|
||||
response.segment.blobPrefixes = ProcessBlobPrefixes(response.segment["BlobPrefix"]);
|
||||
}
|
||||
const wrappedResponse = Object.assign(Object.assign({}, response), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListBlobHierarchy(response._response.parsedBody) }), segment: Object.assign(Object.assign({}, response.segment), { blobItems: response.segment.blobItems.map((blobItemInteral) => {
|
||||
const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name), tags: toTags(blobItemInteral.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInteral.objectReplicationMetadata) });
|
||||
return blobItem;
|
||||
|
|
@ -24593,7 +24367,7 @@ class BlobServiceClient extends StorageClient {
|
|||
return new ContainerClient(appendToURLPath(this.url, encodeURIComponent(containerName)), this.pipeline);
|
||||
}
|
||||
/**
|
||||
* Create a Blob container.
|
||||
* Create a Blob container. @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
*
|
||||
* @param containerName - Name of the container to create.
|
||||
* @param options - Options to configure Container Create operation.
|
||||
|
|
@ -25280,6 +25054,14 @@ class BlobServiceClient extends StorageClient {
|
|||
}
|
||||
}
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/** Known values of {@link EncryptionAlgorithmType} that the service accepts. */
|
||||
exports.KnownEncryptionAlgorithmType = void 0;
|
||||
(function (KnownEncryptionAlgorithmType) {
|
||||
KnownEncryptionAlgorithmType["AES256"] = "AES256";
|
||||
})(exports.KnownEncryptionAlgorithmType || (exports.KnownEncryptionAlgorithmType = {}));
|
||||
|
||||
Object.defineProperty(exports, 'BaseRequestPolicy', {
|
||||
enumerable: true,
|
||||
get: function () { return coreHttp.BaseRequestPolicy; }
|
||||
|
|
|
|||
2
node_modules/@azure/storage-blob/dist/index.js.map
generated
vendored
2
node_modules/@azure/storage-blob/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@azure/storage-blob/node_modules/tslib/README.md
generated
vendored
2
node_modules/@azure/storage-blob/node_modules/tslib/README.md
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
# tslib
|
||||
|
||||
This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
|
||||
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
|
||||
|
||||
This library is primarily used by the `--importHelpers` flag in TypeScript.
|
||||
When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
|
||||
|
|
|
|||
41
node_modules/@azure/storage-blob/node_modules/tslib/SECURITY.md
generated
vendored
Normal file
41
node_modules/@azure/storage-blob/node_modules/tslib/SECURITY.md
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
|
||||
|
||||
## Security
|
||||
|
||||
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
||||
|
||||
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
||||
|
||||
## Reporting Security Issues
|
||||
|
||||
**Please do not report security vulnerabilities through public GitHub issues.**
|
||||
|
||||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
||||
|
||||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
||||
|
||||
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
||||
|
||||
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
||||
|
||||
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
||||
* Full paths of source file(s) related to the manifestation of the issue
|
||||
* The location of the affected source code (tag/branch/commit or direct URL)
|
||||
* Any special configuration required to reproduce the issue
|
||||
* Step-by-step instructions to reproduce the issue
|
||||
* Proof-of-concept or exploit code (if possible)
|
||||
* Impact of the issue, including how an attacker might exploit the issue
|
||||
|
||||
This information will help us triage your report more quickly.
|
||||
|
||||
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
||||
|
||||
## Preferred Languages
|
||||
|
||||
We prefer all communications to be in English.
|
||||
|
||||
## Policy
|
||||
|
||||
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
||||
|
||||
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
||||
37
node_modules/@azure/storage-blob/node_modules/tslib/modules/index.d.ts
generated
vendored
Normal file
37
node_modules/@azure/storage-blob/node_modules/tslib/modules/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// Note: named reexports are used instead of `export *` because
|
||||
// TypeScript itself doesn't resolve the `export *` when checking
|
||||
// if a particular helper exists.
|
||||
export {
|
||||
__extends,
|
||||
__assign,
|
||||
__rest,
|
||||
__decorate,
|
||||
__param,
|
||||
__esDecorate,
|
||||
__runInitializers,
|
||||
__propKey,
|
||||
__setFunctionName,
|
||||
__metadata,
|
||||
__awaiter,
|
||||
__generator,
|
||||
__exportStar,
|
||||
__values,
|
||||
__read,
|
||||
__spread,
|
||||
__spreadArrays,
|
||||
__spreadArray,
|
||||
__await,
|
||||
__asyncGenerator,
|
||||
__asyncDelegator,
|
||||
__asyncValues,
|
||||
__makeTemplateObject,
|
||||
__importStar,
|
||||
__importDefault,
|
||||
__classPrivateFieldGet,
|
||||
__classPrivateFieldSet,
|
||||
__classPrivateFieldIn,
|
||||
__createBinding,
|
||||
__addDisposableResource,
|
||||
__disposeResources,
|
||||
} from '../tslib.js';
|
||||
export * as default from '../tslib.js';
|
||||
13
node_modules/@azure/storage-blob/node_modules/tslib/modules/index.js
generated
vendored
13
node_modules/@azure/storage-blob/node_modules/tslib/modules/index.js
generated
vendored
|
|
@ -5,6 +5,10 @@ const {
|
|||
__rest,
|
||||
__decorate,
|
||||
__param,
|
||||
__esDecorate,
|
||||
__runInitializers,
|
||||
__propKey,
|
||||
__setFunctionName,
|
||||
__metadata,
|
||||
__awaiter,
|
||||
__generator,
|
||||
|
|
@ -25,6 +29,8 @@ const {
|
|||
__classPrivateFieldGet,
|
||||
__classPrivateFieldSet,
|
||||
__classPrivateFieldIn,
|
||||
__addDisposableResource,
|
||||
__disposeResources,
|
||||
} = tslib;
|
||||
export {
|
||||
__extends,
|
||||
|
|
@ -32,6 +38,10 @@ export {
|
|||
__rest,
|
||||
__decorate,
|
||||
__param,
|
||||
__esDecorate,
|
||||
__runInitializers,
|
||||
__propKey,
|
||||
__setFunctionName,
|
||||
__metadata,
|
||||
__awaiter,
|
||||
__generator,
|
||||
|
|
@ -52,4 +62,7 @@ export {
|
|||
__classPrivateFieldGet,
|
||||
__classPrivateFieldSet,
|
||||
__classPrivateFieldIn,
|
||||
__addDisposableResource,
|
||||
__disposeResources,
|
||||
};
|
||||
export default tslib;
|
||||
|
|
|
|||
15
node_modules/@azure/storage-blob/node_modules/tslib/package.json
generated
vendored
15
node_modules/@azure/storage-blob/node_modules/tslib/package.json
generated
vendored
|
|
@ -2,7 +2,7 @@
|
|||
"name": "tslib",
|
||||
"author": "Microsoft Corp.",
|
||||
"homepage": "https://www.typescriptlang.org/",
|
||||
"version": "2.4.0",
|
||||
"version": "2.6.0",
|
||||
"license": "0BSD",
|
||||
"description": "Runtime library for TypeScript helper functions",
|
||||
"keywords": [
|
||||
|
|
@ -28,8 +28,17 @@
|
|||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": {
|
||||
"module": "./tslib.es6.js",
|
||||
"import": "./modules/index.js",
|
||||
"module": {
|
||||
"types": "./tslib/modules/index.d.ts",
|
||||
"default": "./tslib.es6.mjs"
|
||||
},
|
||||
"import": {
|
||||
"node": "./modules/index.js",
|
||||
"default": {
|
||||
"types": "./modules/index.d.ts",
|
||||
"default": "./tslib.es6.mjs"
|
||||
}
|
||||
},
|
||||
"default": "./tslib.js"
|
||||
},
|
||||
"./*": "./*",
|
||||
|
|
|
|||
55
node_modules/@azure/storage-blob/node_modules/tslib/tslib.d.ts
generated
vendored
55
node_modules/@azure/storage-blob/node_modules/tslib/tslib.d.ts
generated
vendored
|
|
@ -58,6 +58,38 @@ export declare function __decorate(decorators: Function[], target: any, key?: st
|
|||
*/
|
||||
export declare function __param(paramIndex: number, decorator: Function): Function;
|
||||
|
||||
/**
|
||||
* Applies decorators to a class or class member, following the native ECMAScript decorator specification.
|
||||
* @param ctor For non-field class members, the class constructor. Otherwise, `null`.
|
||||
* @param descriptorIn The `PropertyDescriptor` to use when unable to look up the property from `ctor`.
|
||||
* @param decorators The decorators to apply
|
||||
* @param contextIn The `DecoratorContext` to clone for each decorator application.
|
||||
* @param initializers An array of field initializer mutation functions into which new initializers are written.
|
||||
* @param extraInitializers An array of extra initializer functions into which new initializers are written.
|
||||
*/
|
||||
export declare function __esDecorate(ctor: Function | null, descriptorIn: object | null, decorators: Function[], contextIn: object, initializers: Function[] | null, extraInitializers: Function[]): void;
|
||||
|
||||
/**
|
||||
* Runs field initializers or extra initializers generated by `__esDecorate`.
|
||||
* @param thisArg The `this` argument to use.
|
||||
* @param initializers The array of initializers to evaluate.
|
||||
* @param value The initial value to pass to the initializers.
|
||||
*/
|
||||
export declare function __runInitializers(thisArg: unknown, initializers: Function[], value?: any): any;
|
||||
|
||||
/**
|
||||
* Converts a computed property name into a `string` or `symbol` value.
|
||||
*/
|
||||
export declare function __propKey(x: any): string | symbol;
|
||||
|
||||
/**
|
||||
* Assigns the name of a function derived from the left-hand side of an assignment.
|
||||
* @param f The function to rename.
|
||||
* @param name The new name for the function.
|
||||
* @param prefix A prefix (such as `"get"` or `"set"`) to insert before the name.
|
||||
*/
|
||||
export declare function __setFunctionName(f: Function, name: string | symbol, prefix?: string): Function;
|
||||
|
||||
/**
|
||||
* Creates a decorator that sets metadata.
|
||||
*
|
||||
|
|
@ -396,3 +428,26 @@ export declare function __classPrivateFieldIn(
|
|||
* @param objectKey The property key to re-export as. Defaults to `key`.
|
||||
*/
|
||||
export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void;
|
||||
|
||||
/**
|
||||
* Adds a disposable resource to a resource-tracking environment object.
|
||||
* @param env A resource-tracking environment object.
|
||||
* @param value Either a Disposable or AsyncDisposable object, `null`, or `undefined`.
|
||||
* @param async When `true`, `AsyncDisposable` resources can be added. When `false`, `AsyncDisposable` resources cannot be added.
|
||||
* @returns The {@link value} argument.
|
||||
*
|
||||
* @throws {TypeError} If {@link value} is not an object, or if either `Symbol.dispose` or `Symbol.asyncDispose` are not
|
||||
* defined, or if {@link value} does not have an appropriate `Symbol.dispose` or `Symbol.asyncDispose` method.
|
||||
*/
|
||||
export declare function __addDisposableResource<T>(env: { stack: { value?: unknown, dispose?: Function, async: boolean }[]; error: unknown; hasError: boolean; }, value: T, async: boolean): T;
|
||||
|
||||
/**
|
||||
* Disposes all resources in a resource-tracking environment object.
|
||||
* @param env A resource-tracking environment object.
|
||||
* @returns A {@link Promise} if any resources in the environment were marked as `async` when added; otherwise, `void`.
|
||||
*
|
||||
* @throws {SuppressedError} if an error thrown during disposal would have suppressed a prior error from disposal or the
|
||||
* error recorded in the resource-tracking environment object.
|
||||
* @seealso {@link __addDisposableResource}
|
||||
*/
|
||||
export declare function __disposeResources(env: { stack: { value?: unknown, dispose?: Function, async: boolean }[]; error: unknown; hasError: boolean; }): any;
|
||||
|
|
|
|||
128
node_modules/@azure/storage-blob/node_modules/tslib/tslib.es6.js
generated
vendored
128
node_modules/@azure/storage-blob/node_modules/tslib/tslib.es6.js
generated
vendored
|
|
@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global Reflect, Promise */
|
||||
/* global Reflect, Promise, SuppressedError, Symbol */
|
||||
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
|
|
@ -63,6 +63,51 @@ export function __param(paramIndex, decorator) {
|
|||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
}
|
||||
|
||||
export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
||||
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
||||
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
||||
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context = {};
|
||||
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
||||
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
if (_ = accept(result.get)) descriptor.get = _;
|
||||
if (_ = accept(result.set)) descriptor.set = _;
|
||||
if (_ = accept(result.init)) initializers.unshift(_);
|
||||
}
|
||||
else if (_ = accept(result)) {
|
||||
if (kind === "field") initializers.unshift(_);
|
||||
else descriptor[key] = _;
|
||||
}
|
||||
}
|
||||
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
||||
done = true;
|
||||
};
|
||||
|
||||
export function __runInitializers(thisArg, initializers, value) {
|
||||
var useValue = arguments.length > 2;
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
||||
}
|
||||
return useValue ? value : void 0;
|
||||
};
|
||||
|
||||
export function __propKey(x) {
|
||||
return typeof x === "symbol" ? x : "".concat(x);
|
||||
};
|
||||
|
||||
export function __setFunctionName(f, name, prefix) {
|
||||
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
||||
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
||||
};
|
||||
|
||||
export function __metadata(metadataKey, metadataValue) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
||||
}
|
||||
|
|
@ -83,7 +128,7 @@ export function __generator(thisArg, body) {
|
|||
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||
function step(op) {
|
||||
if (f) throw new TypeError("Generator is already executing.");
|
||||
while (_) try {
|
||||
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
||||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||
switch (op[0]) {
|
||||
|
|
@ -195,7 +240,7 @@ export function __asyncGenerator(thisArg, _arguments, generator) {
|
|||
export function __asyncDelegator(o) {
|
||||
var i, p;
|
||||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
||||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
||||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
||||
}
|
||||
|
||||
export function __asyncValues(o) {
|
||||
|
|
@ -246,3 +291,80 @@ export function __classPrivateFieldIn(state, receiver) {
|
|||
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
||||
return typeof state === "function" ? receiver === state : state.has(receiver);
|
||||
}
|
||||
|
||||
export function __addDisposableResource(env, value, async) {
|
||||
if (value !== null && value !== void 0) {
|
||||
if (typeof value !== "object") throw new TypeError("Object expected.");
|
||||
var dispose;
|
||||
if (async) {
|
||||
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
||||
dispose = value[Symbol.asyncDispose];
|
||||
}
|
||||
if (dispose === void 0) {
|
||||
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
||||
dispose = value[Symbol.dispose];
|
||||
}
|
||||
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
||||
env.stack.push({ value: value, dispose: dispose, async: async });
|
||||
}
|
||||
else if (async) {
|
||||
env.stack.push({ async: true });
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
export function __disposeResources(env) {
|
||||
function fail(e) {
|
||||
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
||||
env.hasError = true;
|
||||
}
|
||||
function next() {
|
||||
while (env.stack.length) {
|
||||
var rec = env.stack.pop();
|
||||
try {
|
||||
var result = rec.dispose && rec.dispose.call(rec.value);
|
||||
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
||||
}
|
||||
catch (e) {
|
||||
fail(e);
|
||||
}
|
||||
}
|
||||
if (env.hasError) throw env.error;
|
||||
}
|
||||
return next();
|
||||
}
|
||||
|
||||
export default {
|
||||
__extends,
|
||||
__assign,
|
||||
__rest,
|
||||
__decorate,
|
||||
__param,
|
||||
__metadata,
|
||||
__awaiter,
|
||||
__generator,
|
||||
__createBinding,
|
||||
__exportStar,
|
||||
__values,
|
||||
__read,
|
||||
__spread,
|
||||
__spreadArrays,
|
||||
__spreadArray,
|
||||
__await,
|
||||
__asyncGenerator,
|
||||
__asyncDelegator,
|
||||
__asyncValues,
|
||||
__makeTemplateObject,
|
||||
__importStar,
|
||||
__importDefault,
|
||||
__classPrivateFieldGet,
|
||||
__classPrivateFieldSet,
|
||||
__classPrivateFieldIn,
|
||||
__addDisposableResource,
|
||||
__disposeResources,
|
||||
};
|
||||
|
|
|
|||
370
node_modules/@azure/storage-blob/node_modules/tslib/tslib.es6.mjs
generated
vendored
Normal file
370
node_modules/@azure/storage-blob/node_modules/tslib/tslib.es6.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,370 @@
|
|||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global Reflect, Promise, SuppressedError, Symbol */
|
||||
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
|
||||
export function __extends(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
}
|
||||
|
||||
export var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
}
|
||||
return __assign.apply(this, arguments);
|
||||
}
|
||||
|
||||
export function __rest(s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
export function __decorate(decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
}
|
||||
|
||||
export function __param(paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
}
|
||||
|
||||
export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
||||
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
||||
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
||||
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context = {};
|
||||
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
||||
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
if (_ = accept(result.get)) descriptor.get = _;
|
||||
if (_ = accept(result.set)) descriptor.set = _;
|
||||
if (_ = accept(result.init)) initializers.unshift(_);
|
||||
}
|
||||
else if (_ = accept(result)) {
|
||||
if (kind === "field") initializers.unshift(_);
|
||||
else descriptor[key] = _;
|
||||
}
|
||||
}
|
||||
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
||||
done = true;
|
||||
};
|
||||
|
||||
export function __runInitializers(thisArg, initializers, value) {
|
||||
var useValue = arguments.length > 2;
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
||||
}
|
||||
return useValue ? value : void 0;
|
||||
};
|
||||
|
||||
export function __propKey(x) {
|
||||
return typeof x === "symbol" ? x : "".concat(x);
|
||||
};
|
||||
|
||||
export function __setFunctionName(f, name, prefix) {
|
||||
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
||||
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
||||
};
|
||||
|
||||
export function __metadata(metadataKey, metadataValue) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
||||
}
|
||||
|
||||
export function __awaiter(thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
}
|
||||
|
||||
export function __generator(thisArg, body) {
|
||||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||
function step(op) {
|
||||
if (f) throw new TypeError("Generator is already executing.");
|
||||
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
||||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||
switch (op[0]) {
|
||||
case 0: case 1: t = op; break;
|
||||
case 4: _.label++; return { value: op[1], done: false };
|
||||
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||
default:
|
||||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||
if (t[2]) _.ops.pop();
|
||||
_.trys.pop(); continue;
|
||||
}
|
||||
op = body.call(thisArg, _);
|
||||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||
}
|
||||
}
|
||||
|
||||
export var __createBinding = Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
});
|
||||
|
||||
export function __exportStar(m, o) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
||||
}
|
||||
|
||||
export function __values(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
}
|
||||
|
||||
export function __read(o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) return o;
|
||||
var i = m.call(o), r, ar = [], e;
|
||||
try {
|
||||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
||||
}
|
||||
catch (error) { e = { error: error }; }
|
||||
finally {
|
||||
try {
|
||||
if (r && !r.done && (m = i["return"])) m.call(i);
|
||||
}
|
||||
finally { if (e) throw e.error; }
|
||||
}
|
||||
return ar;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export function __spread() {
|
||||
for (var ar = [], i = 0; i < arguments.length; i++)
|
||||
ar = ar.concat(__read(arguments[i]));
|
||||
return ar;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export function __spreadArrays() {
|
||||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
||||
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
||||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
||||
r[k] = a[j];
|
||||
return r;
|
||||
}
|
||||
|
||||
export function __spreadArray(to, from, pack) {
|
||||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||
if (ar || !(i in from)) {
|
||||
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||
ar[i] = from[i];
|
||||
}
|
||||
}
|
||||
return to.concat(ar || Array.prototype.slice.call(from));
|
||||
}
|
||||
|
||||
export function __await(v) {
|
||||
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
||||
}
|
||||
|
||||
export function __asyncGenerator(thisArg, _arguments, generator) {
|
||||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
||||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
||||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
||||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
||||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
||||
function fulfill(value) { resume("next", value); }
|
||||
function reject(value) { resume("throw", value); }
|
||||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
||||
}
|
||||
|
||||
export function __asyncDelegator(o) {
|
||||
var i, p;
|
||||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
||||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
||||
}
|
||||
|
||||
export function __asyncValues(o) {
|
||||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||
var m = o[Symbol.asyncIterator], i;
|
||||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
||||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
||||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||
}
|
||||
|
||||
export function __makeTemplateObject(cooked, raw) {
|
||||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
||||
return cooked;
|
||||
};
|
||||
|
||||
var __setModuleDefault = Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
};
|
||||
|
||||
export function __importStar(mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
}
|
||||
|
||||
export function __importDefault(mod) {
|
||||
return (mod && mod.__esModule) ? mod : { default: mod };
|
||||
}
|
||||
|
||||
export function __classPrivateFieldGet(receiver, state, kind, f) {
|
||||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
||||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
||||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
||||
}
|
||||
|
||||
export function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
||||
if (kind === "m") throw new TypeError("Private method is not writable");
|
||||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
||||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
||||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
||||
}
|
||||
|
||||
export function __classPrivateFieldIn(state, receiver) {
|
||||
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
||||
return typeof state === "function" ? receiver === state : state.has(receiver);
|
||||
}
|
||||
|
||||
export function __addDisposableResource(env, value, async) {
|
||||
if (value !== null && value !== void 0) {
|
||||
if (typeof value !== "object") throw new TypeError("Object expected.");
|
||||
var dispose;
|
||||
if (async) {
|
||||
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
||||
dispose = value[Symbol.asyncDispose];
|
||||
}
|
||||
if (dispose === void 0) {
|
||||
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
||||
dispose = value[Symbol.dispose];
|
||||
}
|
||||
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
||||
env.stack.push({ value: value, dispose: dispose, async: async });
|
||||
}
|
||||
else if (async) {
|
||||
env.stack.push({ async: true });
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
export function __disposeResources(env) {
|
||||
function fail(e) {
|
||||
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
||||
env.hasError = true;
|
||||
}
|
||||
function next() {
|
||||
while (env.stack.length) {
|
||||
var rec = env.stack.pop();
|
||||
try {
|
||||
var result = rec.dispose && rec.dispose.call(rec.value);
|
||||
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
||||
}
|
||||
catch (e) {
|
||||
fail(e);
|
||||
}
|
||||
}
|
||||
if (env.hasError) throw env.error;
|
||||
}
|
||||
return next();
|
||||
}
|
||||
|
||||
export default {
|
||||
__extends,
|
||||
__assign,
|
||||
__rest,
|
||||
__decorate,
|
||||
__param,
|
||||
__metadata,
|
||||
__awaiter,
|
||||
__generator,
|
||||
__createBinding,
|
||||
__exportStar,
|
||||
__values,
|
||||
__read,
|
||||
__spread,
|
||||
__spreadArrays,
|
||||
__spreadArray,
|
||||
__await,
|
||||
__asyncGenerator,
|
||||
__asyncDelegator,
|
||||
__asyncValues,
|
||||
__makeTemplateObject,
|
||||
__importStar,
|
||||
__importDefault,
|
||||
__classPrivateFieldGet,
|
||||
__classPrivateFieldSet,
|
||||
__classPrivateFieldIn,
|
||||
__addDisposableResource,
|
||||
__disposeResources,
|
||||
};
|
||||
110
node_modules/@azure/storage-blob/node_modules/tslib/tslib.js
generated
vendored
110
node_modules/@azure/storage-blob/node_modules/tslib/tslib.js
generated
vendored
|
|
@ -12,12 +12,16 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global global, define, System, Reflect, Promise */
|
||||
/* global global, define, Symbol, Reflect, Promise, SuppressedError */
|
||||
var __extends;
|
||||
var __assign;
|
||||
var __rest;
|
||||
var __decorate;
|
||||
var __param;
|
||||
var __esDecorate;
|
||||
var __runInitializers;
|
||||
var __propKey;
|
||||
var __setFunctionName;
|
||||
var __metadata;
|
||||
var __awaiter;
|
||||
var __generator;
|
||||
|
|
@ -38,6 +42,8 @@ var __classPrivateFieldGet;
|
|||
var __classPrivateFieldSet;
|
||||
var __classPrivateFieldIn;
|
||||
var __createBinding;
|
||||
var __addDisposableResource;
|
||||
var __disposeResources;
|
||||
(function (factory) {
|
||||
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
||||
if (typeof define === "function" && define.amd) {
|
||||
|
|
@ -105,6 +111,51 @@ var __createBinding;
|
|||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
|
||||
__esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
||||
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
||||
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
||||
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context = {};
|
||||
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
||||
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
if (_ = accept(result.get)) descriptor.get = _;
|
||||
if (_ = accept(result.set)) descriptor.set = _;
|
||||
if (_ = accept(result.init)) initializers.unshift(_);
|
||||
}
|
||||
else if (_ = accept(result)) {
|
||||
if (kind === "field") initializers.unshift(_);
|
||||
else descriptor[key] = _;
|
||||
}
|
||||
}
|
||||
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
||||
done = true;
|
||||
};
|
||||
|
||||
__runInitializers = function (thisArg, initializers, value) {
|
||||
var useValue = arguments.length > 2;
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
||||
}
|
||||
return useValue ? value : void 0;
|
||||
};
|
||||
|
||||
__propKey = function (x) {
|
||||
return typeof x === "symbol" ? x : "".concat(x);
|
||||
};
|
||||
|
||||
__setFunctionName = function (f, name, prefix) {
|
||||
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
||||
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
||||
};
|
||||
|
||||
__metadata = function (metadataKey, metadataValue) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
||||
};
|
||||
|
|
@ -125,7 +176,7 @@ var __createBinding;
|
|||
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||
function step(op) {
|
||||
if (f) throw new TypeError("Generator is already executing.");
|
||||
while (_) try {
|
||||
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
||||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||
switch (op[0]) {
|
||||
|
|
@ -237,7 +288,7 @@ var __createBinding;
|
|||
__asyncDelegator = function (o) {
|
||||
var i, p;
|
||||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
||||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
||||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
||||
};
|
||||
|
||||
__asyncValues = function (o) {
|
||||
|
|
@ -289,11 +340,62 @@ var __createBinding;
|
|||
return typeof state === "function" ? receiver === state : state.has(receiver);
|
||||
};
|
||||
|
||||
__addDisposableResource = function (env, value, async) {
|
||||
if (value !== null && value !== void 0) {
|
||||
if (typeof value !== "object") throw new TypeError("Object expected.");
|
||||
var dispose;
|
||||
if (async) {
|
||||
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
||||
dispose = value[Symbol.asyncDispose];
|
||||
}
|
||||
if (dispose === void 0) {
|
||||
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
||||
dispose = value[Symbol.dispose];
|
||||
}
|
||||
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
||||
env.stack.push({ value: value, dispose: dispose, async: async });
|
||||
}
|
||||
else if (async) {
|
||||
env.stack.push({ async: true });
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
||||
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
__disposeResources = function (env) {
|
||||
function fail(e) {
|
||||
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
||||
env.hasError = true;
|
||||
}
|
||||
function next() {
|
||||
while (env.stack.length) {
|
||||
var rec = env.stack.pop();
|
||||
try {
|
||||
var result = rec.dispose && rec.dispose.call(rec.value);
|
||||
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
||||
}
|
||||
catch (e) {
|
||||
fail(e);
|
||||
}
|
||||
}
|
||||
if (env.hasError) throw env.error;
|
||||
}
|
||||
return next();
|
||||
};
|
||||
|
||||
exporter("__extends", __extends);
|
||||
exporter("__assign", __assign);
|
||||
exporter("__rest", __rest);
|
||||
exporter("__decorate", __decorate);
|
||||
exporter("__param", __param);
|
||||
exporter("__esDecorate", __esDecorate);
|
||||
exporter("__runInitializers", __runInitializers);
|
||||
exporter("__propKey", __propKey);
|
||||
exporter("__setFunctionName", __setFunctionName);
|
||||
exporter("__metadata", __metadata);
|
||||
exporter("__awaiter", __awaiter);
|
||||
exporter("__generator", __generator);
|
||||
|
|
@ -314,4 +416,6 @@ var __createBinding;
|
|||
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
||||
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
||||
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
||||
exporter("__addDisposableResource", __addDisposableResource);
|
||||
exporter("__disposeResources", __disposeResources);
|
||||
});
|
||||
|
|
|
|||
18
node_modules/@azure/storage-blob/package.json
generated
vendored
18
node_modules/@azure/storage-blob/package.json
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@azure/storage-blob",
|
||||
"sdk-type": "client",
|
||||
"version": "12.11.0",
|
||||
"version": "12.14.0",
|
||||
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist-esm/storage-blob/src/index.js",
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@azure/abort-controller": "^1.0.0",
|
||||
"@azure/core-http": "^2.0.0",
|
||||
"@azure/core-http": "^3.0.0",
|
||||
"@azure/core-lro": "^2.2.0",
|
||||
"@azure/core-paging": "^1.1.1",
|
||||
"@azure/core-tracing": "1.0.0-preview.13",
|
||||
|
|
@ -147,15 +147,15 @@
|
|||
"@azure/test-utils": "^1.0.0",
|
||||
"@azure-tools/test-recorder": "^1.0.0",
|
||||
"@azure/test-utils-perf": "^1.0.0",
|
||||
"@microsoft/api-extractor": "7.18.11",
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"@types/chai": "^4.1.6",
|
||||
"@types/mocha": "^7.0.2",
|
||||
"@types/node": "^12.0.0",
|
||||
"@types/node": "^14.0.0",
|
||||
"@types/node-fetch": "^2.5.0",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"dotenv": "^8.2.0",
|
||||
"downlevel-dts": "^0.8.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"downlevel-dts": "^0.10.0",
|
||||
"es6-promise": "^4.2.5",
|
||||
"eslint": "^8.0.0",
|
||||
"esm": "^3.2.18",
|
||||
|
|
@ -177,11 +177,11 @@
|
|||
"mocha-junit-reporter": "^2.0.0",
|
||||
"nyc": "^15.0.0",
|
||||
"prettier": "^2.5.1",
|
||||
"puppeteer": "^14.0.0",
|
||||
"puppeteer": "^19.2.2",
|
||||
"rimraf": "^3.0.0",
|
||||
"source-map-support": "^0.5.9",
|
||||
"ts-node": "^10.0.0",
|
||||
"typescript": "~4.2.0",
|
||||
"typescript": "~4.8.0",
|
||||
"util": "^0.12.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
93
node_modules/@azure/storage-blob/types/3.1/storage-blob.d.ts
generated
vendored
93
node_modules/@azure/storage-blob/types/3.1/storage-blob.d.ts
generated
vendored
|
|
@ -2,6 +2,7 @@
|
|||
import { AbortSignalLike } from '@azure/abort-controller';
|
||||
import { AzureLogger } from '@azure/logger';
|
||||
import { BaseRequestPolicy } from '@azure/core-http';
|
||||
import { CancelOnProgress } from '@azure/core-lro';
|
||||
import * as coreHttp from '@azure/core-http';
|
||||
import { deserializationPolicy } from '@azure/core-http';
|
||||
import { HttpHeaders } from '@azure/core-http';
|
||||
|
|
@ -35,7 +36,7 @@ export declare interface AccessPolicy {
|
|||
permissions?: string;
|
||||
}
|
||||
/** Defines values for AccessTier. */
|
||||
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
||||
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive" | "Cold";
|
||||
/** Defines values for AccountKind. */
|
||||
export declare type AccountKind = "Storage" | "BlobStorage" | "StorageV2" | "FileStorage" | "BlockBlobStorage";
|
||||
/**
|
||||
|
|
@ -1579,7 +1580,7 @@ export declare class BlobClient extends StorageClient {
|
|||
* @param copySource - url to the source Azure Blob/File.
|
||||
* @param options - Optional options to the Blob Start Copy From URL operation.
|
||||
*/
|
||||
beginCopyFromURL(copySource: string, options?: BlobBeginCopyFromURLOptions): Promise<PollerLike<PollOperationState<BlobBeginCopyFromURLResponse>, BlobBeginCopyFromURLResponse>>;
|
||||
beginCopyFromURL(copySource: string, options?: BlobBeginCopyFromURLOptions): Promise<PollerLikeWithCancellation<PollOperationState<BlobBeginCopyFromURLResponse>, BlobBeginCopyFromURLResponse>>;
|
||||
/**
|
||||
* Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero
|
||||
* length and full metadata. Version 2012-02-12 and newer.
|
||||
|
|
@ -1890,6 +1891,8 @@ export declare type BlobDeleteResponse = BlobDeleteHeaders & {
|
|||
export declare interface BlobDownloadHeaders {
|
||||
/** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */
|
||||
lastModified?: Date;
|
||||
/** Returns the date and time the blob was created. */
|
||||
createdOn?: Date;
|
||||
metadata?: {
|
||||
[propertyName: string]: string;
|
||||
};
|
||||
|
|
@ -3121,7 +3124,7 @@ export declare class BlobServiceClient extends StorageClient {
|
|||
*/
|
||||
getContainerClient(containerName: string): ContainerClient;
|
||||
/**
|
||||
* Create a Blob container.
|
||||
* Create a Blob container. @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
*
|
||||
* @param containerName - Name of the container to create.
|
||||
* @param options - Options to configure Container Create operation.
|
||||
|
|
@ -3839,6 +3842,11 @@ export declare interface BlobSyncCopyFromURLOptions extends CommonOptions {
|
|||
* Conditions to meet for the source Azure Blob/File when copying from a URL to the blob.
|
||||
*/
|
||||
sourceConditions?: MatchConditions & ModificationConditions;
|
||||
/**
|
||||
* Access tier.
|
||||
* More Details - https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
|
||||
*/
|
||||
tier?: BlockBlobTier | PremiumPageBlobTier | string;
|
||||
/**
|
||||
* Specify the md5 calculated for the range of bytes that must be read from the copy source.
|
||||
*/
|
||||
|
|
@ -4746,6 +4754,10 @@ export declare enum BlockBlobTier {
|
|||
* Optimized for storing data that is infrequently accessed and stored for at least 30 days.
|
||||
*/
|
||||
Cool = "Cool",
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed.
|
||||
*/
|
||||
Cold = "Cold",
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed and stored for at least 180 days
|
||||
* with flexible latency requirements (on the order of hours).
|
||||
|
|
@ -5083,6 +5095,7 @@ export declare class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, the operation fails.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options - Options to Container Create operation.
|
||||
*
|
||||
|
|
@ -5100,6 +5113,7 @@ export declare class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, it is not changed.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options -
|
||||
*/
|
||||
|
|
@ -6457,8 +6471,14 @@ export declare type CredentialPolicyCreator = (nextPolicy: RequestPolicy, option
|
|||
/** Defines values for DeleteSnapshotsOptionType. */
|
||||
export declare type DeleteSnapshotsOptionType = "include" | "only";
|
||||
export { deserializationPolicy };
|
||||
/** Defines values for EncryptionAlgorithmType. */
|
||||
export declare type EncryptionAlgorithmType = "AES256";
|
||||
/**
|
||||
* Defines values for EncryptionAlgorithmType. \
|
||||
* {@link KnownEncryptionAlgorithmType} can be used interchangeably with EncryptionAlgorithmType,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Know values supported by the service
|
||||
* **AES256**
|
||||
*/
|
||||
export declare type EncryptionAlgorithmType = string;
|
||||
/**
|
||||
* Blob info from a {@link BlobServiceClient.findBlobsByTags}
|
||||
*/
|
||||
|
|
@ -6664,6 +6684,10 @@ export { IHttpClient };
|
|||
* @returns true when the argument satisfies the Pipeline contract
|
||||
*/
|
||||
export declare function isPipelineLike(pipeline: unknown): pipeline is PipelineLike;
|
||||
/** Known values of {@link EncryptionAlgorithmType} that the service accepts. */
|
||||
export declare enum KnownEncryptionAlgorithmType {
|
||||
AES256 = "AES256"
|
||||
}
|
||||
/**
|
||||
* The details for a specific lease.
|
||||
*/
|
||||
|
|
@ -8125,6 +8149,65 @@ export declare interface PipelineOptions {
|
|||
httpClient?: IHttpClient;
|
||||
}
|
||||
export { PollerLike };
|
||||
/**
|
||||
* Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with.
|
||||
*/
|
||||
export declare interface PollerLikeWithCancellation<TState extends PollOperationState<TResult>, TResult> {
|
||||
/**
|
||||
* Returns a promise that will resolve once a single polling request finishes.
|
||||
* It does this by calling the update method of the Poller's operation.
|
||||
*/
|
||||
poll(options?: {
|
||||
abortSignal?: AbortSignalLike;
|
||||
}): Promise<void>;
|
||||
/**
|
||||
* Returns a promise that will resolve once the underlying operation is completed.
|
||||
*/
|
||||
pollUntilDone(): Promise<TResult>;
|
||||
/**
|
||||
* Invokes the provided callback after each polling is completed,
|
||||
* sending the current state of the poller's operation.
|
||||
*
|
||||
* It returns a method that can be used to stop receiving updates on the given callback function.
|
||||
*/
|
||||
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
||||
/**
|
||||
* Returns true if the poller has finished polling.
|
||||
*/
|
||||
isDone(): boolean;
|
||||
/**
|
||||
* Stops the poller. After this, no manual or automated requests can be sent.
|
||||
*/
|
||||
stopPolling(): void;
|
||||
/**
|
||||
* Returns true if the poller is stopped.
|
||||
*/
|
||||
isStopped(): boolean;
|
||||
/**
|
||||
* Attempts to cancel the underlying operation.
|
||||
*/
|
||||
cancelOperation(options?: {
|
||||
abortSignal?: AbortSignalLike;
|
||||
}): Promise<void>;
|
||||
/**
|
||||
* Returns the state of the operation.
|
||||
* The TState defined in PollerLike can be a subset of the TState defined in
|
||||
* the Poller implementation.
|
||||
*/
|
||||
getOperationState(): TState;
|
||||
/**
|
||||
* Returns the result value of the operation,
|
||||
* regardless of the state of the poller.
|
||||
* It can return undefined or an incomplete form of the final TResult value
|
||||
* depending on the implementation.
|
||||
*/
|
||||
getResult(): TResult | undefined;
|
||||
/**
|
||||
* Returns a serialized version of the poller's operation
|
||||
* by invoking the operation's toString method.
|
||||
*/
|
||||
toString(): string;
|
||||
}
|
||||
export { PollOperationState };
|
||||
/**
|
||||
* Specifies the page blob tier to set the blob to. This is only applicable to page blobs on premium storage accounts.
|
||||
|
|
|
|||
95
node_modules/@azure/storage-blob/types/latest/storage-blob.d.ts
generated
vendored
95
node_modules/@azure/storage-blob/types/latest/storage-blob.d.ts
generated
vendored
|
|
@ -3,6 +3,7 @@
|
|||
import { AbortSignalLike } from '@azure/abort-controller';
|
||||
import { AzureLogger } from '@azure/logger';
|
||||
import { BaseRequestPolicy } from '@azure/core-http';
|
||||
import { CancelOnProgress } from '@azure/core-lro';
|
||||
import * as coreHttp from '@azure/core-http';
|
||||
import { deserializationPolicy } from '@azure/core-http';
|
||||
import { HttpHeaders } from '@azure/core-http';
|
||||
|
|
@ -38,7 +39,7 @@ export declare interface AccessPolicy {
|
|||
}
|
||||
|
||||
/** Defines values for AccessTier. */
|
||||
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
||||
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive" | "Cold";
|
||||
|
||||
/** Defines values for AccountKind. */
|
||||
export declare type AccountKind = "Storage" | "BlobStorage" | "StorageV2" | "FileStorage" | "BlockBlobStorage";
|
||||
|
|
@ -1625,7 +1626,7 @@ export declare class BlobClient extends StorageClient {
|
|||
* @param copySource - url to the source Azure Blob/File.
|
||||
* @param options - Optional options to the Blob Start Copy From URL operation.
|
||||
*/
|
||||
beginCopyFromURL(copySource: string, options?: BlobBeginCopyFromURLOptions): Promise<PollerLike<PollOperationState<BlobBeginCopyFromURLResponse>, BlobBeginCopyFromURLResponse>>;
|
||||
beginCopyFromURL(copySource: string, options?: BlobBeginCopyFromURLOptions): Promise<PollerLikeWithCancellation<PollOperationState<BlobBeginCopyFromURLResponse>, BlobBeginCopyFromURLResponse>>;
|
||||
/**
|
||||
* Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero
|
||||
* length and full metadata. Version 2012-02-12 and newer.
|
||||
|
|
@ -1950,6 +1951,8 @@ export declare type BlobDeleteResponse = BlobDeleteHeaders & {
|
|||
export declare interface BlobDownloadHeaders {
|
||||
/** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */
|
||||
lastModified?: Date;
|
||||
/** Returns the date and time the blob was created. */
|
||||
createdOn?: Date;
|
||||
metadata?: {
|
||||
[propertyName: string]: string;
|
||||
};
|
||||
|
|
@ -3223,7 +3226,7 @@ export declare class BlobServiceClient extends StorageClient {
|
|||
*/
|
||||
getContainerClient(containerName: string): ContainerClient;
|
||||
/**
|
||||
* Create a Blob container.
|
||||
* Create a Blob container. @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
*
|
||||
* @param containerName - Name of the container to create.
|
||||
* @param options - Options to configure Container Create operation.
|
||||
|
|
@ -3965,6 +3968,11 @@ export declare interface BlobSyncCopyFromURLOptions extends CommonOptions {
|
|||
* Conditions to meet for the source Azure Blob/File when copying from a URL to the blob.
|
||||
*/
|
||||
sourceConditions?: MatchConditions & ModificationConditions;
|
||||
/**
|
||||
* Access tier.
|
||||
* More Details - https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
|
||||
*/
|
||||
tier?: BlockBlobTier | PremiumPageBlobTier | string;
|
||||
/**
|
||||
* Specify the md5 calculated for the range of bytes that must be read from the copy source.
|
||||
*/
|
||||
|
|
@ -4899,6 +4907,10 @@ export declare enum BlockBlobTier {
|
|||
* Optimized for storing data that is infrequently accessed and stored for at least 30 days.
|
||||
*/
|
||||
Cool = "Cool",
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed.
|
||||
*/
|
||||
Cold = "Cold",
|
||||
/**
|
||||
* Optimized for storing data that is rarely accessed and stored for at least 180 days
|
||||
* with flexible latency requirements (on the order of hours).
|
||||
|
|
@ -5250,6 +5262,7 @@ export declare class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, the operation fails.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options - Options to Container Create operation.
|
||||
*
|
||||
|
|
@ -5267,6 +5280,7 @@ export declare class ContainerClient extends StorageClient {
|
|||
* Creates a new container under the specified account. If the container with
|
||||
* the same name already exists, it is not changed.
|
||||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
|
||||
* Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
|
||||
*
|
||||
* @param options -
|
||||
*/
|
||||
|
|
@ -6677,8 +6691,14 @@ export declare type DeleteSnapshotsOptionType = "include" | "only";
|
|||
|
||||
export { deserializationPolicy }
|
||||
|
||||
/** Defines values for EncryptionAlgorithmType. */
|
||||
export declare type EncryptionAlgorithmType = "AES256";
|
||||
/**
|
||||
* Defines values for EncryptionAlgorithmType. \
|
||||
* {@link KnownEncryptionAlgorithmType} can be used interchangeably with EncryptionAlgorithmType,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Know values supported by the service
|
||||
* **AES256**
|
||||
*/
|
||||
export declare type EncryptionAlgorithmType = string;
|
||||
|
||||
/**
|
||||
* Blob info from a {@link BlobServiceClient.findBlobsByTags}
|
||||
|
|
@ -6900,6 +6920,11 @@ export { IHttpClient }
|
|||
*/
|
||||
export declare function isPipelineLike(pipeline: unknown): pipeline is PipelineLike;
|
||||
|
||||
/** Known values of {@link EncryptionAlgorithmType} that the service accepts. */
|
||||
export declare enum KnownEncryptionAlgorithmType {
|
||||
AES256 = "AES256"
|
||||
}
|
||||
|
||||
/**
|
||||
* The details for a specific lease.
|
||||
*/
|
||||
|
|
@ -8429,6 +8454,66 @@ export declare interface PipelineOptions {
|
|||
|
||||
export { PollerLike }
|
||||
|
||||
/**
|
||||
* Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with.
|
||||
*/
|
||||
export declare interface PollerLikeWithCancellation<TState extends PollOperationState<TResult>, TResult> {
|
||||
/**
|
||||
* Returns a promise that will resolve once a single polling request finishes.
|
||||
* It does this by calling the update method of the Poller's operation.
|
||||
*/
|
||||
poll(options?: {
|
||||
abortSignal?: AbortSignalLike;
|
||||
}): Promise<void>;
|
||||
/**
|
||||
* Returns a promise that will resolve once the underlying operation is completed.
|
||||
*/
|
||||
pollUntilDone(): Promise<TResult>;
|
||||
/**
|
||||
* Invokes the provided callback after each polling is completed,
|
||||
* sending the current state of the poller's operation.
|
||||
*
|
||||
* It returns a method that can be used to stop receiving updates on the given callback function.
|
||||
*/
|
||||
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
||||
/**
|
||||
* Returns true if the poller has finished polling.
|
||||
*/
|
||||
isDone(): boolean;
|
||||
/**
|
||||
* Stops the poller. After this, no manual or automated requests can be sent.
|
||||
*/
|
||||
stopPolling(): void;
|
||||
/**
|
||||
* Returns true if the poller is stopped.
|
||||
*/
|
||||
isStopped(): boolean;
|
||||
/**
|
||||
* Attempts to cancel the underlying operation.
|
||||
*/
|
||||
cancelOperation(options?: {
|
||||
abortSignal?: AbortSignalLike;
|
||||
}): Promise<void>;
|
||||
/**
|
||||
* Returns the state of the operation.
|
||||
* The TState defined in PollerLike can be a subset of the TState defined in
|
||||
* the Poller implementation.
|
||||
*/
|
||||
getOperationState(): TState;
|
||||
/**
|
||||
* Returns the result value of the operation,
|
||||
* regardless of the state of the poller.
|
||||
* It can return undefined or an incomplete form of the final TResult value
|
||||
* depending on the implementation.
|
||||
*/
|
||||
getResult(): TResult | undefined;
|
||||
/**
|
||||
* Returns a serialized version of the poller's operation
|
||||
* by invoking the operation's toString method.
|
||||
*/
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
export { PollOperationState }
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue