redis-smq-common
Version:
Provides essential components and utilities shared across RedisSMQ packages.
20 lines • 698 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSupportedPlatform = exports.REDIS_SERVER_PLATFORM_LIST = void 0;
const index_js_1 = require("./errors/index.js");
exports.REDIS_SERVER_PLATFORM_LIST = [
'darwin',
'linux',
];
function isSupportedPlatform(platform) {
return exports.REDIS_SERVER_PLATFORM_LIST.includes(platform);
}
const getSupportedPlatform = () => {
const platform = process.platform;
if (isSupportedPlatform(platform)) {
return platform;
}
throw new index_js_1.RedisServerUnsupportedPlatformError();
};
exports.getSupportedPlatform = getSupportedPlatform;
//# sourceMappingURL=get-supported-platform.js.map