@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 +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/quickboot.module.d.ts +6 -0
- package/dist/quickboot.module.js +26 -0
- package/dist/quickboot.module.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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,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