@aws-amplify/core 6.0.1-unstable.588b76b.0 → 6.0.1-unstable.7dde343.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.
package/lib/Hub/index.js CHANGED
@@ -6,8 +6,8 @@ exports.HubInternal = exports.Hub = exports.HubClass = exports.AMPLIFY_SYMBOL =
6
6
  const Logger_1 = require("../Logger");
7
7
  const constants_1 = require("../constants");
8
8
  const errors_1 = require("../errors");
9
- exports.AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'
10
- ? Symbol.for('amplify_default')
9
+ exports.AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined'
10
+ ? Symbol('amplify_default')
11
11
  : '@@amplify_default');
12
12
  const logger = new Logger_1.ConsoleLogger('Hub');
13
13
  class HubClass {
@@ -1 +1 @@
1
- export declare const version = "6.0.1-unstable.588b76b.0+588b76b";
1
+ export declare const version = "6.0.1-unstable.7dde343.0+7dde343";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // generated by genversion
5
- exports.version = '6.0.1-unstable.588b76b.0+588b76b';
5
+ exports.version = '6.0.1-unstable.7dde343.0+7dde343';
@@ -1,4 +1,3 @@
1
1
  export declare const AWS_CLOUDWATCH_CATEGORY = "Logging";
2
- export declare const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER: string | symbol;
3
2
  export declare const USER_AGENT_HEADER = "x-amz-user-agent";
4
3
  export declare const NO_HUBCALLBACK_PROVIDED_EXCEPTION = "NoHubcallbackProvidedException";
package/lib/constants.js CHANGED
@@ -2,17 +2,9 @@
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.NO_HUBCALLBACK_PROVIDED_EXCEPTION = exports.USER_AGENT_HEADER = exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = exports.AWS_CLOUDWATCH_CATEGORY = void 0;
5
+ exports.NO_HUBCALLBACK_PROVIDED_EXCEPTION = exports.USER_AGENT_HEADER = exports.AWS_CLOUDWATCH_CATEGORY = void 0;
6
6
  // Logging constants
7
7
  exports.AWS_CLOUDWATCH_CATEGORY = 'Logging';
8
- /**
9
- * This Symbol is used to reference an internal-only PubSub provider that
10
- * is used for AppSync/GraphQL subscriptions in the API category.
11
- */
12
- const hasSymbol = typeof Symbol !== 'undefined' && typeof Symbol.for === 'function';
13
- exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = hasSymbol
14
- ? Symbol.for('INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER')
15
- : '@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER';
16
8
  exports.USER_AGENT_HEADER = 'x-amz-user-agent';
17
9
  // Error exception code constants
18
10
  exports.NO_HUBCALLBACK_PROVIDED_EXCEPTION = 'NoHubcallbackProvidedException';
@@ -17,7 +17,7 @@ export { AmplifyErrorCode, AmplifyErrorMap, AmplifyErrorParams, AssertionFunctio
17
17
  export { BackgroundProcessManager } from './BackgroundProcessManager';
18
18
  export { Mutex } from './Mutex';
19
19
  export { Reachability } from './Reachability';
20
- export { INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
20
+ export { USER_AGENT_HEADER } from './constants';
21
21
  export { fetchAuthSession } from './singleton/apis/internal/fetchAuthSession';
22
22
  export { AMPLIFY_SYMBOL } from './Hub';
23
23
  export { base64Decoder, base64Encoder } from './utils/convert';
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.AmplifyErrorCode = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.parseAWSExports = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;
7
- exports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = void 0;
6
+ exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.AmplifyErrorCode = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.parseAWSExports = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;
7
+ exports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = void 0;
8
8
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9
9
  // SPDX-License-Identifier: Apache-2.0
10
10
  const WordArray_1 = __importDefault(require("./utils/WordArray"));
@@ -78,7 +78,6 @@ Object.defineProperty(exports, "Mutex", { enumerable: true, get: function () { r
78
78
  var Reachability_1 = require("./Reachability");
79
79
  Object.defineProperty(exports, "Reachability", { enumerable: true, get: function () { return Reachability_1.Reachability; } });
80
80
  var constants_1 = require("./constants");
81
- Object.defineProperty(exports, "INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER", { enumerable: true, get: function () { return constants_1.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER; } });
82
81
  Object.defineProperty(exports, "USER_AGENT_HEADER", { enumerable: true, get: function () { return constants_1.USER_AGENT_HEADER; } });
83
82
  var fetchAuthSession_1 = require("./singleton/apis/internal/fetchAuthSession");
84
83
  Object.defineProperty(exports, "fetchAuthSession", { enumerable: true, get: function () { return fetchAuthSession_1.fetchAuthSession; } });