Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homey-lib

Package Overview
Dependencies
Maintainers
0
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homey-lib - npm Package Compare versions

Comparing version 2.33.0 to 2.33.1

451

assets/app/schema.json

@@ -13,5 +13,3 @@ {

"type": "object",
"required": [
"en"
],
"required": ["en"],
"patternProperties": {

@@ -39,5 +37,3 @@ "^.*$": {

"author": {
"required": [
"name"
],
"required": ["name"],
"properties": {

@@ -56,6 +52,3 @@ "name": {

"images": {
"required": [
"large",
"small"
],
"required": ["large", "small"],
"additionalProperties": false,

@@ -76,6 +69,3 @@ "properties": {

"type": "object",
"required": [
"id",
"title"
],
"required": ["id", "title"],
"properties": {

@@ -93,17 +83,11 @@ "id": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},
"highlight": {
"type": "boolean",
"enum": [
true
]
"enum": [true]
},
"advanced": {
"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -115,6 +99,3 @@ "platforms": {

"type": "string",
"enum": [
"cloud",
"local"
]
"enum": ["cloud", "local"]
}

@@ -126,8 +107,3 @@ },

"type": "string",
"enum": [
"boolean",
"number",
"string",
"image"
]
"enum": ["boolean", "number", "string", "image"]
},

@@ -138,8 +114,3 @@ {

"type": "string",
"enum": [
"boolean",
"number",
"string",
"image"
]
"enum": ["boolean", "number", "string", "image"]
}

@@ -153,6 +124,3 @@ }

"type": "object",
"required": [
"name",
"title"
],
"required": ["name", "title"],
"properties": {

@@ -164,8 +132,3 @@ "name": {

"type": "string",
"enum": [
"boolean",
"number",
"string",
"image"
],
"enum": ["boolean", "number", "string", "image"],
"default": "string"

@@ -198,7 +161,3 @@ },

"type": "object",
"required": [
"name",
"type",
"filter"
],
"required": ["name", "type", "filter"],
"properties": {

@@ -210,5 +169,3 @@ "name": {

"type": "string",
"enum": [
"device"
]
"enum": ["device"]
},

@@ -229,6 +186,3 @@ "filter": {

"type": "object",
"required": [
"name",
"type"
],
"required": ["name", "type"],
"properties": {

@@ -271,6 +225,3 @@ "title": {

"type": "object",
"required": [
"name",
"type"
],
"required": ["name", "type"],
"properties": {

@@ -285,6 +236,3 @@ "title": {

"type": "string",
"enum": [
"number",
"range"
]
"enum": ["number", "range"]
},

@@ -316,7 +264,3 @@ "min": {

"type": "object",
"required": [
"name",
"type",
"values"
],
"required": ["name", "type", "values"],
"properties": {

@@ -331,5 +275,3 @@ "title": {

"type": "string",
"enum": [
"dropdown"
]
"enum": ["dropdown"]
},

@@ -363,16 +305,7 @@ "values": {

"type": "object",
"required": [
"id",
"type",
"title"
],
"required": ["id", "type", "title"],
"properties": {
"type": {
"type": "string",
"enum": [
"text",
"password",
"textarea",
"label"
]
"enum": ["text", "password", "textarea", "label"]
},

@@ -398,14 +331,7 @@ "id": {

"type": "object",
"required": [
"id",
"type",
"title"
],
"required": ["id", "type", "title"],
"properties": {
"type": {
"type": "string",
"enum": [
"number",
"slider"
]
"enum": ["number", "slider"]
},

@@ -441,15 +367,7 @@ "id": {

"type": "object",
"required": [
"id",
"type",
"title",
"values"
],
"required": ["id", "type", "title", "values"],
"properties": {
"type": {
"type": "string",
"enum": [
"radio",
"dropdown"
]
"enum": ["radio", "dropdown"]
},

@@ -472,6 +390,3 @@ "id": {

"type": "object",
"required": [
"id",
"title"
],
"required": ["id", "title"],
"properties": {

@@ -491,13 +406,7 @@ "id": {

"type": "object",
"required": [
"id",
"type",
"title"
],
"required": ["id", "type", "title"],
"properties": {
"type": {
"type": "string",
"enum": [
"checkbox"
]
"enum": ["checkbox"]
},

@@ -520,13 +429,7 @@ "id": {

"type": "object",
"required": [
"type",
"title",
"children"
],
"required": ["type", "title", "children"],
"properties": {
"type": {
"type": "string",
"enum": [
"group"
]
"enum": ["group"]
},

@@ -550,16 +453,7 @@ "title": {

"type": "object",
"required": [
"id",
"type",
"label"
],
"required": ["id", "type", "label"],
"properties": {
"type": {
"type": "string",
"enum": [
"text",
"password",
"textarea",
"label"
]
"enum": ["text", "password", "textarea", "label"]
},

@@ -590,5 +484,3 @@ "id": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -602,14 +494,7 @@ "zwave": {

"type": "object",
"required": [
"id",
"type",
"label"
],
"required": ["id", "type", "label"],
"properties": {
"type": {
"type": "string",
"enum": [
"number",
"slider"
]
"enum": ["number", "slider"]
},

@@ -665,5 +550,3 @@ "id": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -677,15 +560,7 @@ "zwave": {

"type": "object",
"required": [
"id",
"type",
"label",
"values"
],
"required": ["id", "type", "label", "values"],
"properties": {
"type": {
"type": "string",
"enum": [
"radio",
"dropdown"
]
"enum": ["radio", "dropdown"]
},

@@ -715,6 +590,3 @@ "id": {

"type": "object",
"required": [
"id",
"label"
],
"required": ["id", "label"],
"properties": {

@@ -732,5 +604,3 @@ "id": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -744,13 +614,7 @@ "zwave": {

"type": "object",
"required": [
"id",
"type",
"label"
],
"required": ["id", "type", "label"],
"properties": {
"type": {
"type": "string",
"enum": [
"checkbox"
]
"enum": ["checkbox"]
},

@@ -778,5 +642,3 @@ "id": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -790,13 +652,7 @@ "zwave": {

"type": "object",
"required": [
"type",
"label",
"children"
],
"required": ["type", "label", "children"],
"properties": {
"type": {
"type": "string",
"enum": [
"group"
]
"enum": ["group"]
},

@@ -811,5 +667,3 @@ "label": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -826,6 +680,3 @@ "zwave": {

"type": "object",
"required": [
"vendorId",
"productId"
],
"required": ["vendorId", "productId"],
"properties": {

@@ -902,5 +753,3 @@ "vendorId": {

"type": "object",
"required": [
"instruction"
],
"required": ["instruction"],
"properties": {

@@ -919,7 +768,3 @@ "image": {

"type": "object",
"required": [
"manufacturerName",
"productId",
"endpoints"
],
"required": ["manufacturerName", "productId", "endpoints"],
"properties": {

@@ -979,5 +824,3 @@ "manufacturerName": {

"type": "object",
"required": [
"instruction"
],
"required": ["instruction"],
"properties": {

@@ -996,7 +839,3 @@ "image": {

"type": "object",
"required": [
"manufacturerId",
"productTypeId",
"productId"
],
"required": ["manufacturerId", "productTypeId", "productId"],
"properties": {

@@ -1044,5 +883,3 @@ "manufacturerId": {

"type": "object",
"required": [
"instruction"
],
"required": ["instruction"],
"properties": {

@@ -1084,7 +921,3 @@ "image": {

"type": "object",
"required": [
"id",
"size",
"value"
],
"required": ["id", "size", "value"],
"properties": {

@@ -1096,7 +929,3 @@ "id": {

"type": "number",
"enum": [
1,
2,
4
]
"enum": [1, 2, 4]
},

@@ -1117,7 +946,3 @@ "value": {

"type": "object",
"required": [
"class",
"capabilities",
"name"
],
"required": ["class", "capabilities", "name"],
"properties": {

@@ -1149,6 +974,3 @@ "class": {

"type": "object",
"required": [
"index",
"size"
],
"required": ["index", "size"],
"properties": {

@@ -1160,7 +982,3 @@ "index": {

"type": "number",
"enum": [
1,
2,
4
]
"enum": [1, 2, 4]
},

@@ -1173,9 +991,3 @@ "signed": {

},
"required": [
"id",
"name",
"version",
"compatibility",
"author"
],
"required": ["id", "name", "version", "compatibility", "author"],
"properties": {

@@ -1213,6 +1025,3 @@ "id": {

"type": "string",
"enum": [
"cloud",
"local"
]
"enum": ["cloud", "local"]
}

@@ -1224,8 +1033,3 @@ },

"type": "string",
"enum": [
"nfc",
"speaker",
"ledring",
"matter"
]
"enum": ["nfc", "speaker", "ledring", "matter"]
}

@@ -1373,8 +1177,3 @@ },

"type": "object",
"required": [
"id",
"name",
"class",
"capabilities"
],
"required": ["id", "name", "class", "capabilities"],
"properties": {

@@ -1405,5 +1204,3 @@ "id": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -1419,6 +1216,3 @@ "discovery": {

{
"required": [
"usageOn",
"usageOff"
],
"required": ["usageOn", "usageOff"],
"additionalProperties": false,

@@ -1435,5 +1229,3 @@ "properties": {

{
"required": [
"usageConstant"
],
"required": ["usageConstant"],
"additionalProperties": false,

@@ -1450,5 +1242,3 @@ "properties": {

"type": "boolean",
"enum": [
true
]
"enum": [true]
},

@@ -1474,5 +1264,3 @@ "cumulativeImportedCapability": {

"type": "object",
"required": [
"id"
],
"required": ["id"],
"properties": {

@@ -1549,6 +1337,3 @@ "id": {

"type": "string",
"enum": [
"cloud",
"local"
]
"enum": ["cloud", "local"]
}

@@ -1620,5 +1405,3 @@ },

"type": "object",
"required": [
"type"
],
"required": ["type"],
"additionalProperties": false,

@@ -1628,7 +1411,3 @@ "properties": {

"type": "string",
"enum": [
"mdns-sd",
"ssdp",
"mac"
]
"enum": ["mdns-sd", "ssdp", "mac"]
},

@@ -1645,6 +1424,3 @@ "id": {

"type": "object",
"required": [
"field",
"match"
],
"required": ["field", "match"],
"additionalProperties": false,

@@ -1657,6 +1433,3 @@ "properties": {

"type": "object",
"required": [
"type",
"value"
],
"required": ["type", "value"],
"additionalProperties": false,

@@ -1666,6 +1439,3 @@ "properties": {

"type": "string",
"enum": [
"string",
"regex"
]
"enum": ["string", "regex"]
},

@@ -1683,6 +1453,3 @@ "value": {

"type": "object",
"required": [
"name",
"protocol"
],
"required": ["name", "protocol"],
"additionalProperties": false,

@@ -1696,6 +1463,3 @@ "properties": {

"type": "string",
"enum": [
"tcp",
"udp"
]
"enum": ["tcp", "udp"]
}

@@ -1706,5 +1470,3 @@ }

"type": "object",
"required": [
"search"
],
"required": ["search"],
"additionalProperties": false,

@@ -1720,5 +1482,3 @@ "properties": {

"type": "object",
"required": [
"manufacturer"
],
"required": ["manufacturer"],
"additionalProperties": false,

@@ -1748,2 +1508,59 @@ "properties": {

},
"widgets": {
"type": "object",
"patternProperties": {
"^.*$": {
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/i18nObject"
},
"height": {
"type": ["number", "string"]
},
"transparent": {
"type": "boolean"
},
"settings": {
"type": "array"
},
"devices": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["global", "app"] },
"singular": { "type": "boolean" },
"filter": {
"type": "object",
"properties": {
"class": { "type": "string" },
"capabilities": { "type": "string" }
}
}
},
"required": ["type", "singular"]
},
"api": {
"type": "object",
"patternProperties": {
"^.*$": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": ["GET", "POST", "PUT", "DELETE"]
},
"path": { "type": "string" }
},
"required": ["method", "path"]
}
}
},
"id": { "type": "string" },
"deprecated": { "type": "boolean" }
},
"required": ["name", "id"]
}
},
"additionalProperties": false
},
"settings": {

@@ -1753,2 +1570,2 @@ "$ref": "#/definitions/appSettings"

}
}
}

@@ -40,3 +40,3 @@ {

"pl": "Ustaw odcień",
"ko": "색상 설정"
"ko": "색조 설정"
},

@@ -48,3 +48,3 @@ "hint": {

"pl": "Wybierz barwę ze skali odcieni: np. czerwień (0°/360°), żółty (60°) lub niebieski (180°).",
"ko": "색상 스케일에서 색상을 선택하세요. 빨간색은 (0°/360°), 노란색은 (60°), 파란색은 (180°)이에요.",
"ko": "색조 스케일에서 색상을 선택하세요. 빨간색은 (0°/360°), 노란색은 (60°), 파란색은 (180°)이에요.",
"no": "Velg en farge fra fargeskalaen, for eksempel rød (0°/360°), gul (60°) eller blå (180°)."

@@ -51,0 +51,0 @@ },

@@ -168,2 +168,17 @@ /* eslint-disable no-restricted-properties */

for (const [widgetId, widget] of Object.entries(appJson.widgets)) {
if (widget.transparent !== undefined && semver.lt(semver.coerce(appJson.compatibility), '12.1.0')) {
throw new Error(`App widgets transparent property requires a compatibility of at least >=12.1.0. (${this._path})`);
}
if (widget.deprecated !== undefined && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) {
throw new Error(`App widgets deprecated property requires a compatibility of at least >=12.3.0. (${this._path})`);
}
if (widget.devices !== undefined && semver.lt(semver.coerce(appJson.compatibility), '12.3.0')) {
throw new Error(`App widgets devices property requires a compatibility of at least >=12.3.0. (${this._path})`);
}
// if widget.devices && widget.devices.type === 'global'
// require api permission which the app already propbably has
const apiFilePathMjs = join(this._path, 'widgets', widget.id, 'api.mjs');

@@ -438,6 +453,6 @@ const apiFilePathCjs = join(this._path, 'widgets', widget.id, 'api.cjs');

if (typeof driver.energy.cumulativeImportedCapability !== 'string') {
console.warn(`Warning: drivers.${driver.id} has energy.cumulative set to true, but is missing 'cumulativeImportedCapability'.`);
console.warn(`Warning: drivers.${driver.id} has energy.cumulative set to true, but is missing 'cumulativeImportedCapability'. Disregard this warning if the driver does not have \`meter_power\` capabilities.`);
}
if (typeof driver.energy.cumulativeExportedCapability !== 'string') {
console.warn(`Warning: drivers.${driver.id} has energy.cumulative set to true, but is missing 'cumulativeExportedCapability'.`);
console.warn(`Warning: drivers.${driver.id} has energy.cumulative set to true, but is missing 'cumulativeExportedCapability'. Disregard this warning if the driver does not have \`meter_power\` capabilities.`);
}

@@ -444,0 +459,0 @@ if (typeof driver.energy.cumulativeImportedCapability === 'string' && Capability.isInstanceOfId(driver.energy.cumulativeImportedCapability, 'meter_power') === false) {

{
"name": "homey-lib",
"version": "2.33.0",
"version": "2.33.1",
"description": "Shared Library for Homey",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc