@aws-amplify/api-graphql 4.0.1-console-preview.3d7f188.0 → 4.0.1-console-preview.d745d43.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.
@@ -5,7 +5,6 @@ var tslib_1 = require("tslib");
5
5
  // SPDX-License-Identifier: Apache-2.0
6
6
  var rxjs_1 = require("rxjs");
7
7
  var graphql_1 = require("graphql");
8
- var buffer_1 = require("buffer");
9
8
  var core_1 = require("@aws-amplify/core");
10
9
  var aws_client_utils_1 = require("@aws-amplify/core/internals/aws-client-utils");
11
10
  var utils_1 = require("@aws-amplify/core/internals/utils");
@@ -510,8 +509,8 @@ var AWSAppSyncRealTimeProvider = /** @class */ (function () {
510
509
  case 2:
511
510
  authHeader = _a.sent();
512
511
  headerString = authHeader ? JSON.stringify(authHeader) : '';
513
- headerQs = buffer_1.Buffer.from(headerString).toString('base64');
514
- payloadQs = buffer_1.Buffer.from(payloadString).toString('base64');
512
+ headerQs = utils_1.base64Encoder.convert(headerString);
513
+ payloadQs = utils_1.base64Encoder.convert(payloadString);
515
514
  discoverableEndpoint = appSyncGraphqlEndpoint !== null && appSyncGraphqlEndpoint !== void 0 ? appSyncGraphqlEndpoint : '';
516
515
  if (this.isCustomDomain(discoverableEndpoint)) {
517
516
  discoverableEndpoint =
@@ -310,8 +310,8 @@
310
310
  "signature": "7ff4a57062957569fa70577e4fb0ef893804bae8eccb89ebf2cf28c0db7bcdf3"
311
311
  },
312
312
  "../../../node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts": {
313
- "version": "101be3d47c34bea6401674fdfc8ed7b3381f7d18cd243eb4501910a63793a6e8",
314
- "signature": "101be3d47c34bea6401674fdfc8ed7b3381f7d18cd243eb4501910a63793a6e8"
313
+ "version": "3d9d5b9465229d7332fcdf2a3e92bbc1225ee21e6da15bdde7669f07c4f34f92",
314
+ "signature": "3d9d5b9465229d7332fcdf2a3e92bbc1225ee21e6da15bdde7669f07c4f34f92"
315
315
  },
316
316
  "../../../node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts": {
317
317
  "version": "9129af06d1ece3d7600ec411acec47e00028d69b000abc09a1c8ed3f96204cf9",
@@ -398,8 +398,8 @@
398
398
  "signature": "fbe4c5bb0f5d68e5c208cb66a207fee4e58a9820509b5ba4a0f70870ff4c9007"
399
399
  },
400
400
  "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts": {
401
- "version": "28f79de8d3c97bc0147eb2c0315a8b618174a1941d3dea9f8c059a673081627c",
402
- "signature": "28f79de8d3c97bc0147eb2c0315a8b618174a1941d3dea9f8c059a673081627c"
401
+ "version": "3cdf731d5353977f748c57c4feba10556293e3f5634b8f33feea0aa3f438f4e4",
402
+ "signature": "3cdf731d5353977f748c57c4feba10556293e3f5634b8f33feea0aa3f438f4e4"
403
403
  },
404
404
  "../../../node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts": {
405
405
  "version": "99680f4af782bfeefa4363d4b91ba88d080c214868de7c453d5381f34a352f54",
@@ -717,6 +717,10 @@
717
717
  "version": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533",
718
718
  "signature": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533"
719
719
  },
720
+ "../../core/lib-esm/singleton/Predictions/types.d.ts": {
721
+ "version": "6b4d2feae3805d4b377b0fe3c5c43fd5681d8f5f0939d634eaa28571f3c39e07",
722
+ "signature": "6b4d2feae3805d4b377b0fe3c5c43fd5681d8f5f0939d634eaa28571f3c39e07"
723
+ },
720
724
  "../../core/lib-esm/singleton/Storage/types.d.ts": {
721
725
  "version": "9b1f66012e58888f1bd2f5b8b749784d7d592ad7d5ac48972511e2e942161e96",
722
726
  "signature": "9b1f66012e58888f1bd2f5b8b749784d7d592ad7d5ac48972511e2e942161e96"
@@ -738,8 +742,8 @@
738
742
  "signature": "2d7a0242ee0f800cc80aca2e29dabb43a39cad63c1994fe5240995e1c3592863"
739
743
  },
740
744
  "../../core/lib-esm/singleton/types.d.ts": {
741
- "version": "b71dcec228296664b1099cb99d82154471041d0461161d176e7e51a8c68b7d82",
742
- "signature": "b71dcec228296664b1099cb99d82154471041d0461161d176e7e51a8c68b7d82"
745
+ "version": "762172ab5f8b42e8823b1387c98057bd38d1dd04d2c304a9dc2ef8216791db09",
746
+ "signature": "762172ab5f8b42e8823b1387c98057bd38d1dd04d2c304a9dc2ef8216791db09"
743
747
  },
744
748
  "../../core/lib-esm/singleton/Auth/index.d.ts": {
745
749
  "version": "702d32653e4f248e6abac940c03a9f1ab1cf87bbde61493e1a491648cc7f73bf",
@@ -850,8 +854,8 @@
850
854
  "signature": "fbf60648061688363789fe5933399ce8fcf8832c7ea9237746e29e0b0b7bedaf"
851
855
  },
852
856
  "../../core/lib-esm/index.d.ts": {
853
- "version": "6b7583787f85102c2714731b76c6e02fa4e2146bf8a57bdabc06f4762e3970f7",
854
- "signature": "6b7583787f85102c2714731b76c6e02fa4e2146bf8a57bdabc06f4762e3970f7"
857
+ "version": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244",
858
+ "signature": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244"
855
859
  },
856
860
  "../../core/lib-esm/utils/generateRandomString.d.ts": {
857
861
  "version": "965d3c681888cb11242d0c6e581d8d96c2050cce857bb426f5d20279881f58b6",
@@ -1510,7 +1514,7 @@
1510
1514
  "signature": "b0afc2803af9e818fad28464e4e62ee1b255d282f8f19ba8a2459b7bab4d789e"
1511
1515
  },
1512
1516
  "../src/Providers/AWSAppSyncRealTimeProvider/index.ts": {
1513
- "version": "aec055db9e7f58eb302fadd1be1c3fbad92dc762904c07c3f995f724c382230b",
1517
+ "version": "eb063e942bde023cf983955bc6b66a4e445ce8eac90e81cbd08b7c7a268f9a9a",
1514
1518
  "signature": "a0b33c7e48bd2303e38353d9e7dc79fd0581dcb2eca7144554eed22a91d03d85"
1515
1519
  },
1516
1520
  "../src/utils/errors/APIError.ts": {
@@ -2094,7 +2098,9 @@
2094
2098
  "../../../node_modules/@smithy/types/dist-types/ts3.4/client.d.ts",
2095
2099
  "../../../node_modules/@smithy/types/dist-types/ts3.4/http.d.ts",
2096
2100
  "../../../node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts",
2101
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts",
2097
2102
  "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts",
2103
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts",
2098
2104
  "../../../node_modules/@types/node/index.d.ts"
2099
2105
  ],
2100
2106
  "../../../node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts": [
@@ -2586,6 +2592,10 @@
2586
2592
  "../../../node_modules/@types/node/base.d.ts",
2587
2593
  "../../../node_modules/@types/node/index.d.ts"
2588
2594
  ],
2595
+ "../../core/lib-esm/singleton/Predictions/types.d.ts": [
2596
+ "../../../node_modules/@types/node/base.d.ts",
2597
+ "../../../node_modules/@types/node/index.d.ts"
2598
+ ],
2589
2599
  "../../core/lib-esm/singleton/Storage/types.d.ts": [
2590
2600
  "../../../node_modules/@types/node/base.d.ts",
2591
2601
  "../../../node_modules/@types/node/index.d.ts"
@@ -2615,6 +2625,7 @@
2615
2625
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
2616
2626
  "../../core/lib-esm/singleton/Auth/types.d.ts",
2617
2627
  "../../core/lib-esm/singleton/Geo/types.d.ts",
2628
+ "../../core/lib-esm/singleton/Predictions/types.d.ts",
2618
2629
  "../../core/lib-esm/singleton/Storage/types.d.ts",
2619
2630
  "../../core/lib-esm/singleton/Notifications/types.d.ts",
2620
2631
  "../../core/lib-esm/singleton/Interactions/types.d.ts",
@@ -3835,7 +3846,6 @@
3835
3846
  ],
3836
3847
  "../src/Providers/AWSAppSyncRealTimeProvider/index.ts": [
3837
3848
  "../../../node_modules/graphql/index.d.ts",
3838
- "../../../node_modules/@types/node/base.d.ts",
3839
3849
  "../../core/lib-esm/index.d.ts",
3840
3850
  "../../core/lib-esm/clients/index.d.ts",
3841
3851
  "../../core/lib-esm/libraryUtils.d.ts",
@@ -3843,6 +3853,7 @@
3843
3853
  "../src/Providers/constants.ts",
3844
3854
  "../src/utils/ConnectionStateMonitor.ts",
3845
3855
  "../src/utils/ReconnectionMonitor.ts",
3856
+ "../../../node_modules/@types/node/base.d.ts",
3846
3857
  "../../../node_modules/@types/node/index.d.ts"
3847
3858
  ],
3848
3859
  "../src/utils/errors/APIError.ts": [
@@ -4295,6 +4306,7 @@
4295
4306
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
4296
4307
  "../../core/lib-esm/singleton/Auth/types.d.ts",
4297
4308
  "../../core/lib-esm/singleton/Geo/types.d.ts",
4309
+ "../../core/lib-esm/singleton/Predictions/types.d.ts",
4298
4310
  "../../core/lib-esm/singleton/Storage/types.d.ts",
4299
4311
  "../../core/lib-esm/singleton/Notifications/types.d.ts",
4300
4312
  "../../core/lib-esm/singleton/Interactions/types.d.ts",
@@ -4810,7 +4822,9 @@
4810
4822
  "../../../node_modules/@smithy/types/dist-types/ts3.4/client.d.ts",
4811
4823
  "../../../node_modules/@smithy/types/dist-types/ts3.4/http.d.ts",
4812
4824
  "../../../node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts",
4825
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts",
4813
4826
  "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts",
4827
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts",
4814
4828
  "../../../node_modules/@types/node/index.d.ts"
4815
4829
  ],
4816
4830
  "../../../node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts": [
@@ -6021,6 +6035,10 @@
6021
6035
  "../../../node_modules/@types/node/base.d.ts",
6022
6036
  "../../../node_modules/@types/node/index.d.ts"
6023
6037
  ],
6038
+ "../../core/lib-esm/singleton/Predictions/types.d.ts": [
6039
+ "../../../node_modules/@types/node/base.d.ts",
6040
+ "../../../node_modules/@types/node/index.d.ts"
6041
+ ],
6024
6042
  "../../core/lib-esm/singleton/Geo/types.d.ts": [
6025
6043
  "../../../node_modules/@types/node/base.d.ts",
6026
6044
  "../../../node_modules/@types/node/index.d.ts"
@@ -6365,6 +6383,7 @@
6365
6383
  "../../core/lib-esm/providers/personalize/types/index.d.ts",
6366
6384
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
6367
6385
  "../../core/lib-esm/singleton/Geo/types.d.ts",
6386
+ "../../core/lib-esm/singleton/Predictions/types.d.ts",
6368
6387
  "../../core/lib-esm/singleton/Storage/types.d.ts",
6369
6388
  "../../core/lib-esm/singleton/Notifications/InAppMessaging/types.d.ts",
6370
6389
  "../../core/lib-esm/singleton/Notifications/PushNotification/types.d.ts",
@@ -3,10 +3,9 @@ import { __assign, __awaiter, __generator, __read } from "tslib";
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import { Observable } from 'rxjs';
5
5
  import { GraphQLError } from 'graphql';
6
- import { Buffer } from 'buffer';
7
6
  import { Hub, fetchAuthSession, ConsoleLogger } from '@aws-amplify/core';
8
7
  import { signRequest } from '@aws-amplify/core/internals/aws-client-utils';
9
- import { NonRetryableError, USER_AGENT_HEADER, getAmplifyUserAgent, isNonRetryableError, jitteredExponentialRetry, amplifyUuid, AmplifyUrl, } from '@aws-amplify/core/internals/utils';
8
+ import { base64Encoder, NonRetryableError, USER_AGENT_HEADER, getAmplifyUserAgent, isNonRetryableError, jitteredExponentialRetry, amplifyUuid, AmplifyUrl, } from '@aws-amplify/core/internals/utils';
10
9
  import { CONTROL_MSG, ConnectionState, } from '../../types/PubSub';
11
10
  import { AMPLIFY_SYMBOL, AWS_APPSYNC_REALTIME_HEADERS, CONNECTION_INIT_TIMEOUT, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT, MAX_DELAY_MS, MESSAGE_TYPES, NON_RETRYABLE_CODES, SOCKET_STATUS, START_ACK_TIMEOUT, SUBSCRIPTION_STATUS, CONNECTION_STATE_CHANGE, } from '../constants';
12
11
  import { ConnectionStateMonitor, CONNECTION_CHANGE, } from '../../utils/ConnectionStateMonitor';
@@ -508,8 +507,8 @@ var AWSAppSyncRealTimeProvider = /** @class */ (function () {
508
507
  case 2:
509
508
  authHeader = _a.sent();
510
509
  headerString = authHeader ? JSON.stringify(authHeader) : '';
511
- headerQs = Buffer.from(headerString).toString('base64');
512
- payloadQs = Buffer.from(payloadString).toString('base64');
510
+ headerQs = base64Encoder.convert(headerString);
511
+ payloadQs = base64Encoder.convert(payloadString);
513
512
  discoverableEndpoint = appSyncGraphqlEndpoint !== null && appSyncGraphqlEndpoint !== void 0 ? appSyncGraphqlEndpoint : '';
514
513
  if (this.isCustomDomain(discoverableEndpoint)) {
515
514
  discoverableEndpoint =
@@ -310,8 +310,8 @@
310
310
  "signature": "7ff4a57062957569fa70577e4fb0ef893804bae8eccb89ebf2cf28c0db7bcdf3"
311
311
  },
312
312
  "../../../node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts": {
313
- "version": "101be3d47c34bea6401674fdfc8ed7b3381f7d18cd243eb4501910a63793a6e8",
314
- "signature": "101be3d47c34bea6401674fdfc8ed7b3381f7d18cd243eb4501910a63793a6e8"
313
+ "version": "3d9d5b9465229d7332fcdf2a3e92bbc1225ee21e6da15bdde7669f07c4f34f92",
314
+ "signature": "3d9d5b9465229d7332fcdf2a3e92bbc1225ee21e6da15bdde7669f07c4f34f92"
315
315
  },
316
316
  "../../../node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts": {
317
317
  "version": "9129af06d1ece3d7600ec411acec47e00028d69b000abc09a1c8ed3f96204cf9",
@@ -398,8 +398,8 @@
398
398
  "signature": "fbe4c5bb0f5d68e5c208cb66a207fee4e58a9820509b5ba4a0f70870ff4c9007"
399
399
  },
400
400
  "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts": {
401
- "version": "28f79de8d3c97bc0147eb2c0315a8b618174a1941d3dea9f8c059a673081627c",
402
- "signature": "28f79de8d3c97bc0147eb2c0315a8b618174a1941d3dea9f8c059a673081627c"
401
+ "version": "3cdf731d5353977f748c57c4feba10556293e3f5634b8f33feea0aa3f438f4e4",
402
+ "signature": "3cdf731d5353977f748c57c4feba10556293e3f5634b8f33feea0aa3f438f4e4"
403
403
  },
404
404
  "../../../node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts": {
405
405
  "version": "99680f4af782bfeefa4363d4b91ba88d080c214868de7c453d5381f34a352f54",
@@ -717,6 +717,10 @@
717
717
  "version": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533",
718
718
  "signature": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533"
719
719
  },
720
+ "../../core/lib-esm/singleton/Predictions/types.d.ts": {
721
+ "version": "6b4d2feae3805d4b377b0fe3c5c43fd5681d8f5f0939d634eaa28571f3c39e07",
722
+ "signature": "6b4d2feae3805d4b377b0fe3c5c43fd5681d8f5f0939d634eaa28571f3c39e07"
723
+ },
720
724
  "../../core/lib-esm/singleton/Storage/types.d.ts": {
721
725
  "version": "9b1f66012e58888f1bd2f5b8b749784d7d592ad7d5ac48972511e2e942161e96",
722
726
  "signature": "9b1f66012e58888f1bd2f5b8b749784d7d592ad7d5ac48972511e2e942161e96"
@@ -738,8 +742,8 @@
738
742
  "signature": "2d7a0242ee0f800cc80aca2e29dabb43a39cad63c1994fe5240995e1c3592863"
739
743
  },
740
744
  "../../core/lib-esm/singleton/types.d.ts": {
741
- "version": "b71dcec228296664b1099cb99d82154471041d0461161d176e7e51a8c68b7d82",
742
- "signature": "b71dcec228296664b1099cb99d82154471041d0461161d176e7e51a8c68b7d82"
745
+ "version": "762172ab5f8b42e8823b1387c98057bd38d1dd04d2c304a9dc2ef8216791db09",
746
+ "signature": "762172ab5f8b42e8823b1387c98057bd38d1dd04d2c304a9dc2ef8216791db09"
743
747
  },
744
748
  "../../core/lib-esm/singleton/Auth/index.d.ts": {
745
749
  "version": "702d32653e4f248e6abac940c03a9f1ab1cf87bbde61493e1a491648cc7f73bf",
@@ -850,8 +854,8 @@
850
854
  "signature": "fbf60648061688363789fe5933399ce8fcf8832c7ea9237746e29e0b0b7bedaf"
851
855
  },
852
856
  "../../core/lib-esm/index.d.ts": {
853
- "version": "6b7583787f85102c2714731b76c6e02fa4e2146bf8a57bdabc06f4762e3970f7",
854
- "signature": "6b7583787f85102c2714731b76c6e02fa4e2146bf8a57bdabc06f4762e3970f7"
857
+ "version": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244",
858
+ "signature": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244"
855
859
  },
856
860
  "../../core/lib-esm/utils/generateRandomString.d.ts": {
857
861
  "version": "965d3c681888cb11242d0c6e581d8d96c2050cce857bb426f5d20279881f58b6",
@@ -1510,7 +1514,7 @@
1510
1514
  "signature": "b0afc2803af9e818fad28464e4e62ee1b255d282f8f19ba8a2459b7bab4d789e"
1511
1515
  },
1512
1516
  "../src/Providers/AWSAppSyncRealTimeProvider/index.ts": {
1513
- "version": "aec055db9e7f58eb302fadd1be1c3fbad92dc762904c07c3f995f724c382230b",
1517
+ "version": "eb063e942bde023cf983955bc6b66a4e445ce8eac90e81cbd08b7c7a268f9a9a",
1514
1518
  "signature": "a0b33c7e48bd2303e38353d9e7dc79fd0581dcb2eca7144554eed22a91d03d85"
1515
1519
  },
1516
1520
  "../src/utils/errors/APIError.ts": {
@@ -2094,7 +2098,9 @@
2094
2098
  "../../../node_modules/@smithy/types/dist-types/ts3.4/client.d.ts",
2095
2099
  "../../../node_modules/@smithy/types/dist-types/ts3.4/http.d.ts",
2096
2100
  "../../../node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts",
2101
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts",
2097
2102
  "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts",
2103
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts",
2098
2104
  "../../../node_modules/@types/node/index.d.ts"
2099
2105
  ],
2100
2106
  "../../../node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts": [
@@ -2586,6 +2592,10 @@
2586
2592
  "../../../node_modules/@types/node/base.d.ts",
2587
2593
  "../../../node_modules/@types/node/index.d.ts"
2588
2594
  ],
2595
+ "../../core/lib-esm/singleton/Predictions/types.d.ts": [
2596
+ "../../../node_modules/@types/node/base.d.ts",
2597
+ "../../../node_modules/@types/node/index.d.ts"
2598
+ ],
2589
2599
  "../../core/lib-esm/singleton/Storage/types.d.ts": [
2590
2600
  "../../../node_modules/@types/node/base.d.ts",
2591
2601
  "../../../node_modules/@types/node/index.d.ts"
@@ -2615,6 +2625,7 @@
2615
2625
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
2616
2626
  "../../core/lib-esm/singleton/Auth/types.d.ts",
2617
2627
  "../../core/lib-esm/singleton/Geo/types.d.ts",
2628
+ "../../core/lib-esm/singleton/Predictions/types.d.ts",
2618
2629
  "../../core/lib-esm/singleton/Storage/types.d.ts",
2619
2630
  "../../core/lib-esm/singleton/Notifications/types.d.ts",
2620
2631
  "../../core/lib-esm/singleton/Interactions/types.d.ts",
@@ -3835,7 +3846,6 @@
3835
3846
  ],
3836
3847
  "../src/Providers/AWSAppSyncRealTimeProvider/index.ts": [
3837
3848
  "../../../node_modules/graphql/index.d.ts",
3838
- "../../../node_modules/@types/node/base.d.ts",
3839
3849
  "../../core/lib-esm/index.d.ts",
3840
3850
  "../../core/lib-esm/clients/index.d.ts",
3841
3851
  "../../core/lib-esm/libraryUtils.d.ts",
@@ -3843,6 +3853,7 @@
3843
3853
  "../src/Providers/constants.ts",
3844
3854
  "../src/utils/ConnectionStateMonitor.ts",
3845
3855
  "../src/utils/ReconnectionMonitor.ts",
3856
+ "../../../node_modules/@types/node/base.d.ts",
3846
3857
  "../../../node_modules/@types/node/index.d.ts"
3847
3858
  ],
3848
3859
  "../src/utils/errors/APIError.ts": [
@@ -4295,6 +4306,7 @@
4295
4306
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
4296
4307
  "../../core/lib-esm/singleton/Auth/types.d.ts",
4297
4308
  "../../core/lib-esm/singleton/Geo/types.d.ts",
4309
+ "../../core/lib-esm/singleton/Predictions/types.d.ts",
4298
4310
  "../../core/lib-esm/singleton/Storage/types.d.ts",
4299
4311
  "../../core/lib-esm/singleton/Notifications/types.d.ts",
4300
4312
  "../../core/lib-esm/singleton/Interactions/types.d.ts",
@@ -4810,7 +4822,9 @@
4810
4822
  "../../../node_modules/@smithy/types/dist-types/ts3.4/client.d.ts",
4811
4823
  "../../../node_modules/@smithy/types/dist-types/ts3.4/http.d.ts",
4812
4824
  "../../../node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts",
4825
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts",
4813
4826
  "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts",
4827
+ "../../../node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts",
4814
4828
  "../../../node_modules/@types/node/index.d.ts"
4815
4829
  ],
4816
4830
  "../../../node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts": [
@@ -6021,6 +6035,10 @@
6021
6035
  "../../../node_modules/@types/node/base.d.ts",
6022
6036
  "../../../node_modules/@types/node/index.d.ts"
6023
6037
  ],
6038
+ "../../core/lib-esm/singleton/Predictions/types.d.ts": [
6039
+ "../../../node_modules/@types/node/base.d.ts",
6040
+ "../../../node_modules/@types/node/index.d.ts"
6041
+ ],
6024
6042
  "../../core/lib-esm/singleton/Geo/types.d.ts": [
6025
6043
  "../../../node_modules/@types/node/base.d.ts",
6026
6044
  "../../../node_modules/@types/node/index.d.ts"
@@ -6365,6 +6383,7 @@
6365
6383
  "../../core/lib-esm/providers/personalize/types/index.d.ts",
6366
6384
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
6367
6385
  "../../core/lib-esm/singleton/Geo/types.d.ts",
6386
+ "../../core/lib-esm/singleton/Predictions/types.d.ts",
6368
6387
  "../../core/lib-esm/singleton/Storage/types.d.ts",
6369
6388
  "../../core/lib-esm/singleton/Notifications/InAppMessaging/types.d.ts",
6370
6389
  "../../core/lib-esm/singleton/Notifications/PushNotification/types.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api-graphql",
3
- "version": "4.0.1-console-preview.3d7f188.0+3d7f188",
3
+ "version": "4.0.1-console-preview.d745d43.0+d745d43",
4
4
  "description": "Api-graphql category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -47,9 +47,9 @@
47
47
  "internals"
48
48
  ],
49
49
  "dependencies": {
50
- "@aws-amplify/api-rest": "4.0.1-console-preview.3d7f188.0+3d7f188",
51
- "@aws-amplify/auth": "6.0.1-console-preview.3d7f188.0+3d7f188",
52
- "@aws-amplify/core": "6.0.1-console-preview.3d7f188.0+3d7f188",
50
+ "@aws-amplify/api-rest": "4.0.1-console-preview.d745d43.0+d745d43",
51
+ "@aws-amplify/auth": "6.0.1-console-preview.d745d43.0+d745d43",
52
+ "@aws-amplify/core": "6.0.1-console-preview.d745d43.0+d745d43",
53
53
  "@aws-sdk/types": "3.387.0",
54
54
  "graphql": "15.8.0",
55
55
  "rxjs": "^7.8.1",
@@ -120,5 +120,5 @@
120
120
  "<rootDir>/__tests__"
121
121
  ]
122
122
  },
123
- "gitHead": "3d7f18818c2f9e0790157aac2d0a0bfe90f21aff"
123
+ "gitHead": "d745d43595a690928a86070deff39f3eed526437"
124
124
  }
@@ -2,10 +2,10 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Observable, SubscriptionLike } from 'rxjs';
4
4
  import { GraphQLError } from 'graphql';
5
- import { Buffer } from 'buffer';
6
5
  import { Hub, fetchAuthSession, ConsoleLogger } from '@aws-amplify/core';
7
6
  import { signRequest } from '@aws-amplify/core/internals/aws-client-utils';
8
7
  import {
8
+ base64Encoder,
9
9
  GraphQLAuthMode,
10
10
  CustomUserAgentDetails,
11
11
  NonRetryableError,
@@ -699,9 +699,9 @@ export class AWSAppSyncRealTimeProvider {
699
699
  });
700
700
 
701
701
  const headerString = authHeader ? JSON.stringify(authHeader) : '';
702
- const headerQs = Buffer.from(headerString).toString('base64');
702
+ const headerQs = base64Encoder.convert(headerString);
703
703
 
704
- const payloadQs = Buffer.from(payloadString).toString('base64');
704
+ const payloadQs = base64Encoder.convert(payloadString);
705
705
 
706
706
  let discoverableEndpoint = appSyncGraphqlEndpoint ?? '';
707
707