@azure/storage-file-datalake 12.16.0 → 12.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/clients.js +3 -1
- package/dist-esm/storage-file-datalake/src/clients.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/storage-file-datalake/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/models.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/utils/constants.js +2 -2
- package/dist-esm/storage-file-datalake/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/utils/utils.common.js +3 -8
- package/dist-esm/storage-file-datalake/src/utils/utils.common.js.map +1 -1
- package/package.json +2 -2
- package/types/3.1/storage-file-datalake.d.ts +2 -0
- package/types/latest/storage-file-datalake.d.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -123,8 +123,8 @@ class AnonymousCredential extends Credential {
|
|
|
123
123
|
|
|
124
124
|
// Copyright (c) Microsoft Corporation.
|
|
125
125
|
// Licensed under the MIT license.
|
|
126
|
-
const SDK_VERSION = "12.
|
|
127
|
-
const SERVICE_VERSION = "
|
|
126
|
+
const SDK_VERSION = "12.17.0";
|
|
127
|
+
const SERVICE_VERSION = "2024-05-04";
|
|
128
128
|
const KB = 1024;
|
|
129
129
|
const MB = KB * 1024;
|
|
130
130
|
const DEFAULT_HIGH_LEVEL_CONCURRENCY = 5;
|
|
@@ -1052,7 +1052,6 @@ function isIpEndpointStyle(parsedUrl) {
|
|
|
1052
1052
|
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) ||
|
|
1053
1053
|
(parsedUrl.getPort() !== undefined && PathStylePorts.includes(parsedUrl.getPort())));
|
|
1054
1054
|
}
|
|
1055
|
-
const BugTimeBeginningInMS = 13322188800000;
|
|
1056
1055
|
/**
|
|
1057
1056
|
* This is to convert a Windows File Time ticks to a Date object.
|
|
1058
1057
|
*/
|
|
@@ -1068,12 +1067,6 @@ function windowsFileTimeTicksToTime(timeNumber) {
|
|
|
1068
1067
|
// Here should correct the year number after converting.
|
|
1069
1068
|
const timeNumerInMs = timeNumberInternal / 10000;
|
|
1070
1069
|
const date = new Date(timeNumerInMs);
|
|
1071
|
-
// When initializing date from a miliseconds number the day after 2023-03-01 is still 2023-03-01.
|
|
1072
|
-
// For example, 13322188799999 is 2023-03-01T23:59:59.999Z, while 13322188800000 is 2023-03-01T00:00:00.000Z
|
|
1073
|
-
// Here is to work around the bug.
|
|
1074
|
-
if (timeNumerInMs >= BugTimeBeginningInMS) {
|
|
1075
|
-
date.setUTCDate(date.getUTCDate() + 1);
|
|
1076
|
-
}
|
|
1077
1070
|
date.setUTCFullYear(date.getUTCFullYear() - 369);
|
|
1078
1071
|
return date;
|
|
1079
1072
|
}
|
|
@@ -1114,11 +1107,13 @@ function ParsePathGetPropertiesExtraHeaderValues(rawResponse) {
|
|
|
1114
1107
|
response.owner = ParseHeaderValue(rawResponse, "x-ms-owner");
|
|
1115
1108
|
response.group = ParseHeaderValue(rawResponse, "x-ms-group");
|
|
1116
1109
|
response.permissions = toPermissions(ParseHeaderValue(rawResponse, "x-ms-permissions"));
|
|
1110
|
+
response.acl = toAcl(ParseHeaderValue(rawResponse, "x-ms-acl"));
|
|
1117
1111
|
if ((_a = response._response) === null || _a === void 0 ? void 0 : _a.parsedHeaders) {
|
|
1118
1112
|
response._response.parsedHeaders.encryptionContext = response.encryptionContext;
|
|
1119
1113
|
response._response.parsedHeaders.owner = response.owner;
|
|
1120
1114
|
response._response.parsedHeaders.group = response.group;
|
|
1121
1115
|
response._response.parsedHeaders.permissions = response.permissions;
|
|
1116
|
+
response._response.parsedHeaders.acl = response.acl;
|
|
1122
1117
|
}
|
|
1123
1118
|
return response;
|
|
1124
1119
|
}
|
|
@@ -4002,7 +3997,7 @@ const timeout = {
|
|
|
4002
3997
|
const version = {
|
|
4003
3998
|
parameterPath: "version",
|
|
4004
3999
|
mapper: {
|
|
4005
|
-
defaultValue: "
|
|
4000
|
+
defaultValue: "2024-05-04",
|
|
4006
4001
|
isConstant: true,
|
|
4007
4002
|
serializedName: "x-ms-version",
|
|
4008
4003
|
type: {
|
|
@@ -6434,7 +6429,7 @@ function attachCredential(thing, credential) {
|
|
|
6434
6429
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6435
6430
|
*/
|
|
6436
6431
|
const packageName = "azure-storage-datalake";
|
|
6437
|
-
const packageVersion = "12.
|
|
6432
|
+
const packageVersion = "12.17.0";
|
|
6438
6433
|
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
|
6439
6434
|
/**
|
|
6440
6435
|
* Initializes a new instance of the StorageClientContext class.
|
|
@@ -6460,7 +6455,7 @@ class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
|
|
6460
6455
|
// Parameter assignments
|
|
6461
6456
|
this.url = url;
|
|
6462
6457
|
// Assigning values to Constant parameters
|
|
6463
|
-
this.version = options.version || "
|
|
6458
|
+
this.version = options.version || "2024-05-04";
|
|
6464
6459
|
this.resource = options.resource || "filesystem";
|
|
6465
6460
|
}
|
|
6466
6461
|
}
|
|
@@ -9601,7 +9596,9 @@ class DataLakeFileClient extends DataLakePathClient {
|
|
|
9601
9596
|
async readToFile(filePath, offset = 0, count, options = {}) {
|
|
9602
9597
|
const { span, updatedOptions } = createSpan("DataLakeFileClient-readToFile", options);
|
|
9603
9598
|
try {
|
|
9604
|
-
|
|
9599
|
+
const rawResposne = await this.blockBlobClientInternal.downloadToFile(filePath, offset, count, Object.assign(Object.assign({}, updatedOptions), { customerProvidedKey: toBlobCpkInfo(options.customerProvidedKey) }));
|
|
9600
|
+
const response = ParsePathGetPropertiesExtraHeaderValues(rawResposne);
|
|
9601
|
+
return response;
|
|
9605
9602
|
}
|
|
9606
9603
|
catch (e) {
|
|
9607
9604
|
span.setStatus({
|