@azure/data-tables 13.1.0-alpha.20220318.1 → 13.1.0-alpha.20220331.1
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/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### Bugs Fixed
|
|
10
10
|
|
|
11
|
+
- Fix issue when the Service returns an empty nextRowKey. [#20916](https://github.com/Azure/azure-sdk-for-js/pull/20916).
|
|
11
12
|
- Fix issue with `getStatistics()` operation consistently failing and added test. [#20398](https://github.com/Azure/azure-sdk-for-js/pull/20398)
|
|
12
13
|
|
|
13
14
|
### Other Changes
|
package/dist/index.js
CHANGED
|
@@ -4110,15 +4110,12 @@ function base64Decode(value) {
|
|
|
4110
4110
|
/**
|
|
4111
4111
|
* Encodes the nextPartitionKey and nextRowKey into a single continuation token
|
|
4112
4112
|
*/
|
|
4113
|
-
function encodeContinuationToken(nextPartitionKey
|
|
4114
|
-
if (!nextPartitionKey
|
|
4113
|
+
function encodeContinuationToken(nextPartitionKey, nextRowKey) {
|
|
4114
|
+
if (!nextPartitionKey) {
|
|
4115
4115
|
return undefined;
|
|
4116
4116
|
}
|
|
4117
|
-
const continuationToken =
|
|
4118
|
-
|
|
4119
|
-
nextRowKey,
|
|
4120
|
-
});
|
|
4121
|
-
return base64Encode(continuationToken);
|
|
4117
|
+
const continuationToken = Object.assign({ nextPartitionKey }, (nextRowKey && { nextRowKey }));
|
|
4118
|
+
return base64Encode(JSON.stringify(continuationToken));
|
|
4122
4119
|
}
|
|
4123
4120
|
/**
|
|
4124
4121
|
* Decodes a continuationToken into an object containing a nextPartitionKey and nextRowKey
|