@azure/data-tables 12.2.0-alpha.20211102.1 → 12.2.0-alpha.20211104.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
@@ -3,14 +3,17 @@
3
3
  ## 12.2.0 (Unreleased)
4
4
 
5
5
  ### Features Added
6
- - Take `continuationToken` as a `PageSetting` and expose it in the page when listing entities `byPage`. [#18179](https://github.com/Azure/azure-sdk-for-js/pull/18179)
6
+
7
+ - TableClient `listEntities` expose and can take as PageSetting `continuationToken` as a `PageSetting` when using `byPage`. [#18179](https://github.com/Azure/azure-sdk-for-js/pull/18179)
8
+ - TableServiceClient `listTables` expose and can take PageSetting `continuationToken` as a `PageSetting` when using `byPage`. [#18277](https://github.com/Azure/azure-sdk-for-js/pull/18277)
7
9
 
8
10
  ### Breaking Changes
9
11
 
10
12
  ### Bugs Fixed
13
+
11
14
  - Document usage of SDK with Azurite. [#18211](https://github.com/Azure/azure-sdk-for-js/pull/18211)
12
15
  - Issue #17407 - Correctly handle etag in select filter. [#18211](https://github.com/Azure/azure-sdk-for-js/pull/18211)
13
- - Issue #18079 - Correctly handle creating entities with properties containing empty strings "". Fixes Insert throws "Unknown EDM type object" error with property value { value: "", type: "String" }. [#18211](https://github.com/Azure/azure-sdk-for-js/pull/18211)
16
+ - Issue #18079 - Correctly handle creating entities with properties containing empty strings "". Fixes Insert throws "Unknown EDM type object" error with property value { value: "", type: "String" }. [#18211](https://github.com/Azure/azure-sdk-for-js/pull/18211)
14
17
  - Issue #18148 - Correctly deserialize Decimal numbers checking for isSafeInteger. Fixes listEntities always returns an Int32 type for a value of "1.23456789012346e+24". [#18211](https://github.com/Azure/azure-sdk-for-js/pull/18211)
15
18
 
16
19
  ### Other Changes
package/dist/index.js CHANGED
@@ -3534,6 +3534,9 @@ class TableServiceClient {
3534
3534
  },
3535
3535
  byPage: (settings) => {
3536
3536
  const pageOptions = Object.assign(Object.assign({}, options), { queryOptions: { top: settings === null || settings === void 0 ? void 0 : settings.maxPageSize } });
3537
+ if (settings === null || settings === void 0 ? void 0 : settings.continuationToken) {
3538
+ pageOptions.continuationToken = settings.continuationToken;
3539
+ }
3537
3540
  return this.listTablesPage(pageOptions);
3538
3541
  }
3539
3542
  };
@@ -3542,10 +3545,10 @@ class TableServiceClient {
3542
3545
  return tslib.__asyncGenerator(this, arguments, function* listTablesAll_1() {
3543
3546
  var e_1, _a;
3544
3547
  const firstPage = yield tslib.__await(this._listTables(options));
3545
- const { nextTableName } = firstPage;
3548
+ const { continuationToken } = firstPage;
3546
3549
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(firstPage)));
3547
- if (nextTableName) {
3548
- const optionsWithContinuation = Object.assign(Object.assign({}, options), { nextTableName });
3550
+ if (continuationToken) {
3551
+ const optionsWithContinuation = Object.assign(Object.assign({}, options), { continuationToken });
3549
3552
  try {
3550
3553
  for (var _b = tslib.__asyncValues(this.listTablesPage(optionsWithContinuation)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3551
3554
  const page = _c.value;
@@ -3568,8 +3571,8 @@ class TableServiceClient {
3568
3571
  try {
3569
3572
  let result = yield tslib.__await(this._listTables(updatedOptions));
3570
3573
  yield yield tslib.__await(result);
3571
- while (result.nextTableName) {
3572
- const optionsWithContinuation = Object.assign(Object.assign({}, updatedOptions), { nextTableName: result.nextTableName });
3574
+ while (result.continuationToken) {
3575
+ const optionsWithContinuation = Object.assign(Object.assign({}, updatedOptions), { continuationToken: result.continuationToken });
3573
3576
  result = yield tslib.__await(this._listTables(optionsWithContinuation));
3574
3577
  yield yield tslib.__await(result);
3575
3578
  }
@@ -3583,9 +3586,10 @@ class TableServiceClient {
3583
3586
  }
3584
3587
  });
3585
3588
  }
3586
- async _listTables(options) {
3587
- const { xMsContinuationNextTableName: nextTableName, value = [] } = await this.table.query(options);
3588
- return Object.assign([...value], { nextTableName });
3589
+ async _listTables(options = {}) {
3590
+ const { continuationToken: nextTableName } = options, listOptions = tslib.__rest(options, ["continuationToken"]);
3591
+ const { xMsContinuationNextTableName: continuationToken, value = [] } = await this.table.query(Object.assign(Object.assign({}, listOptions), { nextTableName }));
3592
+ return Object.assign([...value], { continuationToken });
3589
3593
  }
3590
3594
  /**
3591
3595
  *