Bump semver
This commit is contained in:
parent
863a05b28b
commit
4b7eb74ef5
579 changed files with 13988 additions and 29840 deletions
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"]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue