UNPKG

2.37 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.LegacyTypes = exports.uuid = void 0;
4exports.HAPLibraryVersion = HAPLibraryVersion;
5const tslib_1 = require("tslib");
6require("source-map-support/register"); // registering node-source-map-support for typescript stack traces
7require("./lib/definitions"); // must be loaded before Characteristic and Service class
8const debug_1 = tslib_1.__importDefault(require("debug"));
9/**
10 * @group Utils
11 */
12exports.uuid = tslib_1.__importStar(require("./lib/util/uuid"));
13tslib_1.__exportStar(require("./lib/model/HAPStorage"), exports);
14tslib_1.__exportStar(require("./lib/Accessory"), exports);
15tslib_1.__exportStar(require("./lib/Bridge"), exports);
16tslib_1.__exportStar(require("./lib/Service"), exports);
17tslib_1.__exportStar(require("./lib/Characteristic"), exports);
18tslib_1.__exportStar(require("./lib/camera"), exports);
19tslib_1.__exportStar(require("./lib/tv/AccessControlManagement"), exports);
20tslib_1.__exportStar(require("./lib/HAPServer"), exports);
21tslib_1.__exportStar(require("./lib/datastream"), exports);
22tslib_1.__exportStar(require("./lib/controller"), exports);
23tslib_1.__exportStar(require("./lib/model/AccessoryInfo"), exports);
24tslib_1.__exportStar(require("./lib/util/clone"), exports);
25tslib_1.__exportStar(require("./lib/util/once"), exports);
26tslib_1.__exportStar(require("./lib/util/tlv"), exports);
27tslib_1.__exportStar(require("./lib/util/hapStatusError"), exports);
28tslib_1.__exportStar(require("./lib/util/color-utils"), exports);
29tslib_1.__exportStar(require("./lib/util/time"), exports);
30tslib_1.__exportStar(require("./lib/util/eventedhttp"), exports);
31tslib_1.__exportStar(require("./types"), exports);
32/**
33 * @group Utils
34 */
35exports.LegacyTypes = tslib_1.__importStar(require("./accessories/types"));
36const debug = (0, debug_1.default)("HAP-NodeJS:Advertiser");
37/**
38 * This method can be used to retrieve the current running library version of the HAP-NodeJS framework.
39 * @returns The SemVer version string.
40 *
41 * @group Utils
42 */
43function HAPLibraryVersion() {
44 // eslint-disable-next-line @typescript-eslint/no-var-requires
45 const packageJson = require("../package.json");
46 return packageJson.version;
47}
48function printInit() {
49 debug("Initializing HAP-NodeJS v%s ...", HAPLibraryVersion());
50}
51printInit();
52//# sourceMappingURL=index.js.map
\No newline at end of file