From 443fa910cc6a3b065232d7247c7f58eaf64c814b Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 9 Sep 2023 09:20:52 +0100 Subject: [PATCH] Output package version --- aws/smarthome-lambda.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/smarthome-lambda.js b/aws/smarthome-lambda.js index becb1d0..55308de 100644 --- a/aws/smarthome-lambda.js +++ b/aws/smarthome-lambda.js @@ -4,13 +4,13 @@ const Logger = require('@matthewturner/smartheat-core/core/Logger'); const HandlerRegistry = require('./HandlerRegistry'); const logger = new Logger(process.env.LOG_LEVEL || Logger.DEBUG); -import { version } from './package.json'; +const { version } = require('./package.json'); exports.handler = async (ev, context) => { logger.level = process.env.LOG_LEVEL || Logger.DEBUG; - + logger.debug(`SmartHome Version: ${version}`); - + logEntry(ev, context); const event = extractEvent(ev);