@iotize/tap
Version:
IoTize Device client for Javascript
32 lines (27 loc) • 780 B
JavaScript
import { defineTapPropertyExtension } from '@iotize/tap';
class TapConfigProvider {
constructor() {
this.config = {
version: '1.0.0',
};
}
get bundles() {
var _a;
return ((_a = this.config.data) === null || _a === void 0 ? void 0 : _a.bundles) || [];
}
get variables() {
return this.bundles.reduce((p, bundle) => {
p.push(...(bundle.variables || []));
return p;
}, []);
}
}
const ɵ0 = (context) => {
return new TapConfigProvider();
};
const _TAP_EXTENSION_CONFIG_ = defineTapPropertyExtension('config', ɵ0);
/**
* Generated bundle index. Do not edit.
*/
export { _TAP_EXTENSION_CONFIG_ };
//# sourceMappingURL=iotize-tap-ext-config.js.map