@azure/data-tables 13.1.0-alpha.20220315.1 → 13.1.0-alpha.20220325.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,11 +8,12 @@
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
14
15
 
15
- - Updated our `@azure/core-tracing` dependency to the latest version (1.0.0-preview.14)
16
+ - Updated our `@azure/core-tracing` dependency to the latest version (1.0.0)
16
17
  - Notable changes include Removal of `@opentelemetry/api` as a transitive dependency and ensuring that the active context is properly propagated.
17
18
  - Customers who would like to continue using OpenTelemetry driven tracing should visit our [OpenTelemetry Instrumentation](https://www.npmjs.com/package/@azure/opentelemetry-instrumentation-azure-sdk) package for instructions.
18
19
 
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 = "", nextRowKey = "") {
4114
- if (!nextPartitionKey && !nextRowKey) {
4113
+ function encodeContinuationToken(nextPartitionKey, nextRowKey) {
4114
+ if (!nextPartitionKey) {
4115
4115
  return undefined;
4116
4116
  }
4117
- const continuationToken = JSON.stringify({
4118
- nextPartitionKey,
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