@aws-amplify/storage 4.5.2-next.65 → 4.5.2-next.70

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.
@@ -501,7 +501,7 @@ var AWSS3Provider = /** @class */ (function () {
501
501
  AWSS3Provider.prototype.list = function (path, config) {
502
502
  var _a;
503
503
  return tslib_1.__awaiter(this, void 0, void 0, function () {
504
- var credentialsOK, opt, bucket, track, pageSize, pageToken, prefix, final_path, list, MAX_PAGE_SIZE, listResult, params, error_5;
504
+ var credentialsOK, opt, bucket, track, pageSize, nextToken, prefix, final_path, list, MAX_PAGE_SIZE, listResult, params, error_5;
505
505
  var _b, _c;
506
506
  return tslib_1.__generator(this, function (_d) {
507
507
  switch (_d.label) {
@@ -512,7 +512,7 @@ var AWSS3Provider = /** @class */ (function () {
512
512
  throw new Error(StorageErrorStrings_1.StorageErrorStrings.NO_CREDENTIALS);
513
513
  }
514
514
  opt = Object.assign({}, this._config, config);
515
- bucket = opt.bucket, track = opt.track, pageSize = opt.pageSize, pageToken = opt.pageToken;
515
+ bucket = opt.bucket, track = opt.track, pageSize = opt.pageSize, nextToken = opt.nextToken;
516
516
  prefix = this._prefix(opt);
517
517
  final_path = prefix + path;
518
518
  logger.debug('list ' + path + ' from ' + final_path);
@@ -529,9 +529,9 @@ var AWSS3Provider = /** @class */ (function () {
529
529
  Bucket: bucket,
530
530
  Prefix: final_path,
531
531
  MaxKeys: MAX_PAGE_SIZE,
532
- ContinuationToken: pageToken,
532
+ ContinuationToken: nextToken,
533
533
  };
534
- params.ContinuationToken = pageToken;
534
+ params.ContinuationToken = nextToken;
535
535
  if (!(pageSize === 'ALL')) return [3 /*break*/, 7];
536
536
  _d.label = 3;
537
537
  case 3: return [4 /*yield*/, this._list(params, opt, prefix)];
@@ -74,7 +74,7 @@ export declare type S3ProviderListConfig = CommonStorageOptions & {
74
74
  pageSize?: number | 'ALL';
75
75
  provider?: 'AWSS3';
76
76
  identityId?: string;
77
- pageToken?: string;
77
+ nextToken?: string;
78
78
  };
79
79
  export declare type S3ClientOptions = StorageOptions & {
80
80
  credentials: ICredentials;
@@ -499,7 +499,7 @@ var AWSS3Provider = /** @class */ (function () {
499
499
  AWSS3Provider.prototype.list = function (path, config) {
500
500
  var _a;
501
501
  return __awaiter(this, void 0, void 0, function () {
502
- var credentialsOK, opt, bucket, track, pageSize, pageToken, prefix, final_path, list, MAX_PAGE_SIZE, listResult, params, error_5;
502
+ var credentialsOK, opt, bucket, track, pageSize, nextToken, prefix, final_path, list, MAX_PAGE_SIZE, listResult, params, error_5;
503
503
  var _b, _c;
504
504
  return __generator(this, function (_d) {
505
505
  switch (_d.label) {
@@ -510,7 +510,7 @@ var AWSS3Provider = /** @class */ (function () {
510
510
  throw new Error(StorageErrorStrings.NO_CREDENTIALS);
511
511
  }
512
512
  opt = Object.assign({}, this._config, config);
513
- bucket = opt.bucket, track = opt.track, pageSize = opt.pageSize, pageToken = opt.pageToken;
513
+ bucket = opt.bucket, track = opt.track, pageSize = opt.pageSize, nextToken = opt.nextToken;
514
514
  prefix = this._prefix(opt);
515
515
  final_path = prefix + path;
516
516
  logger.debug('list ' + path + ' from ' + final_path);
@@ -527,9 +527,9 @@ var AWSS3Provider = /** @class */ (function () {
527
527
  Bucket: bucket,
528
528
  Prefix: final_path,
529
529
  MaxKeys: MAX_PAGE_SIZE,
530
- ContinuationToken: pageToken,
530
+ ContinuationToken: nextToken,
531
531
  };
532
- params.ContinuationToken = pageToken;
532
+ params.ContinuationToken = nextToken;
533
533
  if (!(pageSize === 'ALL')) return [3 /*break*/, 7];
534
534
  _d.label = 3;
535
535
  case 3: return [4 /*yield*/, this._list(params, opt, prefix)];
@@ -74,7 +74,7 @@ export declare type S3ProviderListConfig = CommonStorageOptions & {
74
74
  pageSize?: number | 'ALL';
75
75
  provider?: 'AWSS3';
76
76
  identityId?: string;
77
- pageToken?: string;
77
+ nextToken?: string;
78
78
  };
79
79
  export declare type S3ClientOptions = StorageOptions & {
80
80
  credentials: ICredentials;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/storage",
3
- "version": "4.5.2-next.65+d714fc7f8",
3
+ "version": "4.5.2-next.70+80da5f14c",
4
4
  "description": "Storage category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -44,7 +44,7 @@
44
44
  "src"
45
45
  ],
46
46
  "dependencies": {
47
- "@aws-amplify/core": "4.6.2-next.65+d714fc7f8",
47
+ "@aws-amplify/core": "4.6.2-next.70+80da5f14c",
48
48
  "@aws-sdk/client-s3": "3.6.1",
49
49
  "@aws-sdk/s3-request-presigner": "3.6.1",
50
50
  "@aws-sdk/util-create-request": "3.6.1",
@@ -102,5 +102,5 @@
102
102
  "devDependencies": {
103
103
  "@types/sinon": "^7.5.1"
104
104
  },
105
- "gitHead": "d714fc7f8d79858313a685a6a0f9b1b32bad7760"
105
+ "gitHead": "80da5f14c8e9373a7a9f1d5f00bcffb2cafbbae2"
106
106
  }
@@ -713,7 +713,7 @@ export class AWSS3Provider implements StorageProvider {
713
713
  throw new Error(StorageErrorStrings.NO_CREDENTIALS);
714
714
  }
715
715
  const opt: S3ClientOptions = Object.assign({}, this._config, config);
716
- const { bucket, track, pageSize, pageToken } = opt;
716
+ const { bucket, track, pageSize, nextToken } = opt;
717
717
  const prefix = this._prefix(opt);
718
718
  const final_path = prefix + path;
719
719
  logger.debug('list ' + path + ' from ' + final_path);
@@ -728,9 +728,9 @@ export class AWSS3Provider implements StorageProvider {
728
728
  Bucket: bucket,
729
729
  Prefix: final_path,
730
730
  MaxKeys: MAX_PAGE_SIZE,
731
- ContinuationToken: pageToken,
731
+ ContinuationToken: nextToken,
732
732
  };
733
- params.ContinuationToken = pageToken;
733
+ params.ContinuationToken = nextToken;
734
734
  if (pageSize === 'ALL') {
735
735
  do {
736
736
  listResult = await this._list(params, opt, prefix);
@@ -108,7 +108,7 @@ export type S3ProviderListConfig = CommonStorageOptions & {
108
108
  pageSize?: number | 'ALL';
109
109
  provider?: 'AWSS3';
110
110
  identityId?: string;
111
- pageToken?: string;
111
+ nextToken?: string;
112
112
  };
113
113
 
114
114
  export type S3ClientOptions = StorageOptions & {