homey-lib
Advanced tools
Comparing version 2.32.6 to 2.32.7
@@ -160,8 +160,8 @@ /* eslint-disable no-restricted-properties */ | ||
if (Array.isArray(appJson.widgets)) { | ||
if (appJson.widgets != null) { | ||
if (semver.lt(semver.coerce(appJson.compatibility), '12.1.0')) { | ||
throw new Error(`App widgets require a compatibility of at least >=12.1.0. (${path})`); | ||
throw new Error(`App widgets require a compatibility of at least >=12.1.0. (${this._path})`); | ||
} | ||
for (const widget of appJson.widgets) { | ||
for (const [widgetId, widget] of Object.entries(appJson.widgets)) { | ||
const apiFilePathMjs = join(this._path, 'widgets', widget.id, 'api.mjs'); | ||
@@ -168,0 +168,0 @@ const apiFilePathCjs = join(this._path, 'widgets', widget.id, 'api.cjs'); |
{ | ||
"name": "homey-lib", | ||
"version": "2.32.6", | ||
"version": "2.32.7", | ||
"description": "Shared Library for Homey", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
1728919