@digital-alchemy/hass 0.3.7 → 0.3.8

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/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./dynamic";
2
2
  export * from "./extensions";
3
3
  export * from "./hass.module";
4
4
  export * from "./helpers";
5
+ export * from "./quickboot.module";
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./dynamic"), exports);
5
5
  tslib_1.__exportStar(require("./extensions"), exports);
6
6
  tslib_1.__exportStar(require("./hass.module"), exports);
7
7
  tslib_1.__exportStar(require("./helpers"), exports);
8
+ tslib_1.__exportStar(require("./quickboot.module"), exports);
8
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,uDAA6B;AAC7B,wDAA8B;AAC9B,oDAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,uDAA6B;AAC7B,wDAA8B;AAC9B,oDAA0B;AAC1B,6DAAmC"}
@@ -0,0 +1,6 @@
1
+ import { TServiceParams } from "@digital-alchemy/core";
2
+ /**
3
+ * Use from the node command line to probe apis
4
+ * Not for normal application usage
5
+ */
6
+ export declare function QuickBoot(name: string): Promise<TServiceParams>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuickBoot = void 0;
4
+ const core_1 = require("@digital-alchemy/core");
5
+ const _1 = require(".");
6
+ /**
7
+ * Use from the node command line to probe apis
8
+ * Not for normal application usage
9
+ */
10
+ async function QuickBoot(name) {
11
+ let out;
12
+ const app = (0, core_1.CreateApplication)({
13
+ libraries: [_1.LIB_HASS],
14
+ // @ts-expect-error fake app, name used for loading credentials
15
+ name,
16
+ services: {
17
+ Loader(params) {
18
+ out = params;
19
+ },
20
+ },
21
+ });
22
+ await app.bootstrap();
23
+ return out;
24
+ }
25
+ exports.QuickBoot = QuickBoot;
26
+ //# sourceMappingURL=quickboot.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quickboot.module.js","sourceRoot":"","sources":["../src/quickboot.module.ts"],"names":[],"mappings":";;;AAAA,gDAA0E;AAE1E,wBAA6B;AAE7B;;;GAGG;AACI,KAAK,UAAU,SAAS,CAAC,IAAY;IAC1C,IAAI,GAAmB,CAAC;IACxB,MAAM,GAAG,GAAG,IAAA,wBAAiB,EAAC;QAC5B,SAAS,EAAE,CAAC,WAAQ,CAAC;QACrB,+DAA+D;QAC/D,IAAI;QACJ,QAAQ,EAAE;YACR,MAAM,CAAC,MAAsB;gBAC3B,GAAG,GAAG,MAAM,CAAC;YACf,CAAC;SACF;KACF,CAAC,CAAC;IACH,MAAM,GAAG,CAAC,SAAS,EAAE,CAAC;IACtB,OAAO,GAAG,CAAC;AACb,CAAC;AAdD,8BAcC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digital-alchemy/hass",
3
3
  "repository": "https://github.com/Digital-Alchemy-TS/hass",
4
4
  "homepage": "https://docs.digital-alchemy.app/Hass",
5
- "version": "0.3.7",
5
+ "version": "0.3.8",
6
6
  "scripts": {
7
7
  "build": "rm -rf dist/; tsc",
8
8
  "lint": "eslint src",