UNPKG

@fdm-monster/server

Version:

FDM Monster is a bulk OctoPrint manager to set up, configure and monitor 3D printers. Our aim is to provide extremely optimized websocket performance and reliability.

32 lines (31 loc) 817 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { getServiceName: function() { return getServiceName; }, isMoonrakerType: function() { return isMoonrakerType; }, isOctoPrintType: function() { return isOctoPrintType; } }); function isOctoPrintType(printerType) { return printerType === 0; } function isMoonrakerType(printerType) { return printerType === 1; } function getServiceName(printerType) { return isOctoPrintType(printerType) ? "OctoPrint" : isMoonrakerType(printerType) ? "Moonraker" : "Unknown"; } //# sourceMappingURL=printer-type.utils.js.map