mirror of
https://github.com/parnic/node-intellicenter.git
synced 2025-06-16 10:10:13 -05:00
This allows require() and import to work for even better compatibility between CJS and ESM consumers. I dislike that this kills our ability for top-level awaits in example.ts, but seeing as how my primary use case for this library is a commonjs module, I think this is a fair trade-off. Also changed "messages" to not encapsulate its export under the name "messages" to remove some repetition in importing "messages" and still needing to do "messages." to get the methods out. Now it's simple to import each message by name or group them under something like "messages" as desired on a per-library-user basis. Refs: * https://www.kravchyk.com/typescript-npm-package-json-exports/ * https://arethetypeswrong.github.io/ * https://evertpot.com/universal-commonjs-esm-typescript-packages/
26 lines
2.4 KiB
JavaScript
26 lines
2.4 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SubscribeToUpdates = exports.SetSetpoint = exports.SetObjectStatus = exports.SetHeatMode = exports.GetSystemInformation = exports.GetSystemConfiguration = exports.GetSchedule = exports.GetHeaters = exports.GetCircuitStatus = exports.GetChemicalStatus = exports.GetBodyStatus = void 0;
|
|
const body_status_js_1 = require("./body-status.js");
|
|
Object.defineProperty(exports, "GetBodyStatus", { enumerable: true, get: function () { return body_status_js_1.GetBodyStatus; } });
|
|
const chem_status_js_1 = require("./chem-status.js");
|
|
Object.defineProperty(exports, "GetChemicalStatus", { enumerable: true, get: function () { return chem_status_js_1.GetChemicalStatus; } });
|
|
const circuit_status_js_1 = require("./circuit-status.js");
|
|
Object.defineProperty(exports, "GetCircuitStatus", { enumerable: true, get: function () { return circuit_status_js_1.GetCircuitStatus; } });
|
|
const configuration_js_1 = require("./configuration.js");
|
|
Object.defineProperty(exports, "GetSystemConfiguration", { enumerable: true, get: function () { return configuration_js_1.GetSystemConfiguration; } });
|
|
const get_heater_js_1 = require("./get-heater.js");
|
|
Object.defineProperty(exports, "GetHeaters", { enumerable: true, get: function () { return get_heater_js_1.GetHeaters; } });
|
|
const notify_js_1 = require("./notify.js");
|
|
Object.defineProperty(exports, "SubscribeToUpdates", { enumerable: true, get: function () { return notify_js_1.SubscribeToUpdates; } });
|
|
const schedule_js_1 = require("./schedule.js");
|
|
Object.defineProperty(exports, "GetSchedule", { enumerable: true, get: function () { return schedule_js_1.GetSchedule; } });
|
|
const set_heater_js_1 = require("./set-heater.js");
|
|
Object.defineProperty(exports, "SetHeatMode", { enumerable: true, get: function () { return set_heater_js_1.SetHeatMode; } });
|
|
const set_object_status_js_1 = require("./set-object-status.js");
|
|
Object.defineProperty(exports, "SetObjectStatus", { enumerable: true, get: function () { return set_object_status_js_1.SetObjectStatus; } });
|
|
const setpoint_js_1 = require("./setpoint.js");
|
|
Object.defineProperty(exports, "SetSetpoint", { enumerable: true, get: function () { return setpoint_js_1.SetSetpoint; } });
|
|
const system_info_js_1 = require("./system-info.js");
|
|
Object.defineProperty(exports, "GetSystemInformation", { enumerable: true, get: function () { return system_info_js_1.GetSystemInformation; } });
|
|
//# sourceMappingURL=messages.js.map
|