Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logger.debug('storage configure called');
const vaultConfig = {...old_configure.call(_instance, options)};
// set level private for each provider for the vault
Object.keys(vaultConfig).forEach((providerName) => {
if (typeof vaultConfig[providerName] !== 'string') {
vaultConfig[providerName] = { ...vaultConfig[providerName], level: "private" };
}
});
logger.debug('storage vault configure called');
_instance.vault.configure(vaultConfig);
};
}
const Storage = _instance;
Amplify.register(Storage);
export default Storage;
export { StorageClass };
export { StorageProvider };
export * from './Providers';
import APIClass, { graphqlOperation } from './API';
import { GraphQLResult } from './types';
import Amplify, { ConsoleLogger as Logger } from '@aws-amplify/core';
const logger = new Logger('API');
let _instance: APIClass = null;
if (!_instance) {
logger.debug('Create API Instance');
_instance = new APIClass(null);
}
const API = _instance;
Amplify.register(API);
export default API;
export { APIClass, graphqlOperation, GraphQLResult };
* http://aws.amazon.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
import Amplify from '@aws-amplify/core';
import BrowserStorageCache from './BrowserStorageCache';
import InMemoryCache from './InMemoryCache';
import { CacheConfig } from './types';
export { BrowserStorageCache, InMemoryCache, CacheConfig };
export default BrowserStorageCache;
Amplify.register(BrowserStorageCache);
AmazonAIConvertPredictionsProvider, AmazonAIIdentifyPredictionsProvider,
AmazonAIPredictionsProvider, AmazonAIInterpretPredictionsProvider,
} from './Providers';
import { InterpretTextCategories } from './types';
const logger = new Logger('PubSub');
let _instance: PredictionsClass = null;
if (!_instance) {
logger.debug('Create Predictions Instance');
_instance = new PredictionsClass({});
}
const Predictions = _instance;
Amplify.register(Predictions);
export default Predictions;
export {
AmazonAIIdentifyPredictionsProvider, AmazonAIConvertPredictionsProvider,
AmazonAIPredictionsProvider, AmazonAIInterpretPredictionsProvider, InterpretTextCategories
};
return true;
})
.catch(err => {
logger.warn('ensure credentials error', err);
return false;
});
}
}
let _instance: GraphQLAPIClass = null;
if (!_instance) {
logger.debug('Creating GraphQL API Instance');
_instance = new GraphQLAPIClass(null);
Amplify.register(_instance);
}
export { _instance as GraphQLAPI };
} from '@aws-amplify/core';
const logger = new Logger('Analytics');
let endpointUpdated = false;
let authConfigured = false;
let analyticsConfigured = false;
let _instance: AnalyticsClass = null;
if (!_instance) {
logger.debug('Create Analytics Instance');
_instance = new AnalyticsClass();
}
const Analytics = _instance;
Amplify.register(Analytics);
export default Analytics;
export { AnalyticsProvider };
export { AnalyticsClass };
export * from './Providers';
const listener = (capsule) => {
const { channel, payload, source } = capsule;
logger.debug('on hub capsule ' + channel, payload);
switch(channel) {
case 'auth':
authEvent(payload);
break;
case 'storage':
storageEvent(payload);
import Amplify, { ConsoleLogger as Logger, Hub } from '@aws-amplify/core';
const logger = new Logger('Analytics');
let endpointUpdated = false;
let authConfigured = false;
let analyticsConfigured = false;
let _instance: AnalyticsClass = null;
if (!_instance) {
logger.debug('Create Analytics Instance');
_instance = new AnalyticsClass();
}
const Analytics = _instance;
Amplify.register(Analytics);
export default Analytics;
export { AnalyticsProvider };
export { AnalyticsClass };
export * from './Providers';
const listener = capsule => {
const { channel, payload, source } = capsule;
logger.debug('on hub capsule ' + channel, payload);
switch (channel) {
case 'auth':
authEvent(payload);
break;
case 'storage':
storageEvent(payload);
import AuthClass from './Auth';
import { CookieStorage }from 'amazon-cognito-identity-js';
import Amplify, { ConsoleLogger as Logger, Credentials } from '@aws-amplify/core';
const logger = new Logger('Auth');
let _instance: AuthClass = null;
if (!_instance) {
logger.debug('Create Auth Instance');
_instance = new AuthClass(null);
}
const Auth = _instance;
Amplify.register(Auth);
export default Auth;
export { AuthClass, CookieStorage };
*/
import XRClass from './XR';
import Amplify, { ConsoleLogger as Logger } from '@aws-amplify/core';
const logger = new Logger('XR');
let _instance: XRClass = null;
if (!_instance) {
logger.debug('Create XR Instance');
_instance = new XRClass(null);
}
const XR = _instance;
Amplify.register(XR);
export default XR;
export * from './Providers/SumerianProvider';
export {XRClass};
export * from './Errors';
AmazonAIPredictionsProvider,
AmazonAIInterpretPredictionsProvider,
} from './Providers';
import { InterpretTextCategories } from './types';
const logger = new Logger('Predictions');
let _instance: PredictionsClass = null;
if (!_instance) {
logger.debug('Create Predictions Instance');
_instance = new PredictionsClass({});
}
const Predictions = _instance;
Amplify.register(Predictions);
export default Predictions;
export {
AmazonAIIdentifyPredictionsProvider,
AmazonAIConvertPredictionsProvider,
AmazonAIPredictionsProvider,
AmazonAIInterpretPredictionsProvider,
InterpretTextCategories,
};