@platformos/pos-cli
Version:
Manage your platformOS application
16 lines • 530 B
JavaScript
import { getCurrentHub } from '@sentry/hub';
import { logger } from '@sentry/utils';
/**
* Internal function to create a new SDK client instance. The client is
* installed and then bound to the current scope.
*
* @param clientClass The client class to instanciate.
* @param options Options to pass to the client.
*/
export function initAndBind(clientClass, options) {
if (options.debug === true) {
logger.enable();
}
getCurrentHub().bindClient(new clientClass(options));
}
//# sourceMappingURL=sdk.js.map