New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

homey-lib

Package Overview
Dependencies
Maintainers
0
Versions
236
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.31.4 to 2.32.0

assets/capability/capabilities/alarm_bin_full.json

99

assets/capability/capabilities.json

@@ -73,3 +73,100 @@ [

"speaker_duration",
"speaker_position"
"speaker_position",
"alarm_bin_full",
"alarm_bin_missing",
"alarm_cleaning_pad_missing",
"alarm_cold",
"alarm_connectivity",
"alarm_door_fault",
"alarm_gas",
"alarm_light",
"alarm_lost",
"alarm_moisture",
"alarm_noise",
"alarm_occupancy",
"alarm_pm01",
"alarm_pm1",
"alarm_pm10",
"alarm_power",
"alarm_presence",
"alarm_problem",
"alarm_pump_device",
"alarm_pump_supply",
"alarm_running",
"alarm_safety",
"alarm_stuck",
"alarm_tank_empty",
"alarm_tank_missing",
"alarm_tank_open",
"alarm_vibration",
"audio_output",
"battery_charging_state",
"dishwasher_program",
"docked",
"fan_mode",
"fan_speed",
"heater_operation_mode",
"measure_hepa_filter",
"hot_water_mode",
"laundry_washer_cycles",
"laundry_washer_program",
"laundry_washer_speed",
"level_aqi",
"level_carbon_filter",
"level_ch2o",
"level_co",
"level_co2",
"level_nox",
"level_o3",
"level_pm1",
"level_pm01",
"level_pm10",
"level_pm25",
"level_radon",
"level_so2",
"level_tvoc",
"measure_aqi",
"measure_carbon_filter",
"measure_ch2o",
"measure_content_volume",
"measure_data_rate",
"measure_data_size",
"measure_distance",
"measure_frequency",
"level_hepa_filter",
"measure_moisture",
"measure_monetary",
"measure_nox",
"measure_o3",
"measure_odor",
"measure_ph",
"measure_pm1",
"measure_pm01",
"measure_pm10",
"measure_radon",
"measure_rain_intensity",
"measure_rotation",
"measure_signal_strength",
"measure_so2",
"measure_speed",
"measure_tvoc",
"measure_tvoc_index",
"measure_weight",
"media_input",
"mower_state",
"operational_state",
"oscillating",
"pump_mode",
"pump_setpoint",
"refrigerator_mode",
"speaker_stop",
"swing_mode",
"target_humidity_max",
"target_humidity_min",
"target_humidity",
"target_temperature_level",
"target_temperature_max",
"target_temperature_min",
"vacuumcleaner_job_mode",
"valve_position"
]

2

assets/capability/capabilities/alarm_battery.json

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

"en": "Battery alarm",
"nl": "Batterij alarm",
"nl": "Batterij-alarm",
"de": "Batterie-Alarm",

@@ -8,0 +8,0 @@ "fr": "Alarme batterie",

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

"en": "CO alarm",
"nl": "CO alarm",
"nl": "CO-alarm",
"de": "CO-Alarm",

@@ -35,3 +35,3 @@ "fr": "Alarme CO",

"en": "CO alarm turned on",
"nl": "CO alarm ging af",
"nl": "CO-alarm ging af",
"de": "CO-Alarm ist angegangen",

@@ -50,3 +50,3 @@ "fr": "L'alarme CO est activée",

"en": "CO alarm turned off",
"nl": "CO alarm ging uit",
"nl": "CO-alarm ging uit",
"de": "CO-Alarm ist ausgegangen",

@@ -73,3 +73,3 @@ "fr": "L'alarme CO est désactivée",

"en": "The CO alarm turned on",
"nl": "Het CO alarm gaat aan",
"nl": "Het CO-alarm gaat aan",
"de": "Der CO-Alarm ist angegangen",

@@ -91,3 +91,3 @@ "fr": "L'alarme CO s'est activée",

"en": "The CO alarm turned off",
"nl": "Het CO alarm gaat uit",
"nl": "Het CO-alarm gaat uit",
"de": "Der CO-Alarm ist ausgegangen",

@@ -111,3 +111,3 @@ "fr": "L'alarme CO s'est désactivée",

"en": "The CO alarm is !{{on|off}}",
"nl": "Het CO alarm is !{{aan|uit}}",
"nl": "Het CO-alarm is !{{aan|uit}}",
"de": "Der CO-Alarm ist !{{an|aus}}",

@@ -114,0 +114,0 @@ "fr": "L'alarme CO est !{{en marche|arrêtée}}",

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

"en": "CO2 alarm",
"nl": "CO2 alarm",
"nl": "CO2-alarm",
"de": "CO2-Alarm",

@@ -19,3 +19,3 @@ "fr": "Alarme CO2",

"en": "True when dangerous CO2 values have been detected",
"nl": "Gaat af bij gevaarlijke concentraties CO2 alarm",
"nl": "Gaat af bij gevaarlijke concentraties CO2",
"de": "True, wenn gefährliche CO2-Werte erkannt wurden",

@@ -34,3 +34,3 @@ "fr": "Vrai si des valeurs dangereuses de CO2 ont été détectées",

"en": "CO2 alarm turned on",
"nl": "CO2 alarm ging af",
"nl": "CO2-alarm ging af",
"de": "CO2-Alarm ist angegangen",

@@ -49,3 +49,3 @@ "fr": "L'alarme CO2 s'est activée",

"en": "CO2 alarm turned off",
"nl": "CO2 alarm ging uit",
"nl": "CO2-alarm ging uit",
"de": "CO2-Alarm ist ausgegangen",

@@ -72,3 +72,3 @@ "fr": "L'alarme CO2 s'est désactivée",

"en": "The CO2 alarm turned on",
"nl": "Het CO2 alarm gaat aan",
"nl": "Het CO2-alarm gaat aan",
"de": "Der CO2-Alarm ist angegangen",

@@ -90,3 +90,3 @@ "fr": "L'alarme CO2 s'est activée",

"en": "The CO2 alarm turned off",
"nl": "Het CO2 alarm gaat uit",
"nl": "Het CO2-alarm gaat uit",
"de": "Der CO2-Alarm ist ausgegangen",

@@ -110,3 +110,3 @@ "fr": "L'alarme CO2 s'est désactivée",

"en": "The CO2 alarm is !{{on|off}}",
"nl": "Het CO2 alarm is !{{aan|uit}}",
"nl": "Het CO2-alarm is !{{aan|uit}}",
"de": "Der CO2-Alarm ist !{{an|aus}}",

@@ -113,0 +113,0 @@ "fr": "L'alarme CO2 est !{{en marche|arrêtée}}",

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

"en": "Contact alarm",
"nl": "Contact alarm",
"nl": "Contactalarm",
"de": "Kontakt-Alarm",

@@ -8,0 +8,0 @@ "fr": "Alarme contact",

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

"en": "Heat alarm",
"nl": "Hittealarm",
"nl": "Hitte-alarm",
"de": "Hitze-Alarm",

@@ -71,3 +71,3 @@ "fr": "Alarme chaleur",

"en": "The heat alarm turned on",
"nl": "Het hitte alarm gaat aan",
"nl": "Het hitte-alarm gaat aan",
"de": "Der Hitze-Alarm ist angegangen",

@@ -89,3 +89,3 @@ "fr": "L'alarme chaleur s'est activée",

"en": "The heat alarm turned off",
"nl": "Het hitte alarm gaat uit",
"nl": "Het hitte-alarm gaat uit",
"de": "Der Hitze-Alarm ist ausgegangen",

@@ -109,3 +109,3 @@ "fr": "L'alarme chaleur s'est désactivée",

"en": "The heat alarm is !{{on|off}}",
"nl": "Het hitte alarm is !{{aan|uit}}",
"nl": "Het hitte-alarm is !{{aan|uit}}",
"de": "Der Hitze-Alarm ist !{{an|aus}}",

@@ -112,0 +112,0 @@ "fr": "L'alarme chaleur est !{{en marche|arrêtée}}",

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

"en": "PM2.5 alarm",
"nl": "PM2.5 alarm",
"nl": "PM2,5-alarm",
"de": "PM2.5-Alarm",

@@ -20,3 +20,3 @@ "fr": "Alarme PM2.5",

"en": "True when PM2.5 values exceeds threshold",
"nl": "Gaat af wanneer de PM2.5 waarde overschreden wordt",
"nl": "Gaat af wanneer de PM2,5 waarde overschreden wordt",
"de": "True, wenn PM2.5-Werte die Schwelle überschreiten",

@@ -36,3 +36,3 @@ "fr": "Vrai si les valeurs PM2.5 excèdent un seuil",

"en": "PM2.5 alarm turned on",
"nl": "PM2.5 alarm ging af",
"nl": "PM2,5 alarm ging af",
"de": "PM2.5-Alarm ist angegangen",

@@ -51,3 +51,3 @@ "fr": "Alarme PM2.5 s'est activée",

"en": "PM2.5 alarm turned off",
"nl": "PM2.5 alarm ging uit",
"nl": "PM2,5 alarm ging uit",
"de": "PM2.5-Alarm ist ausgegangen",

@@ -74,3 +74,3 @@ "fr": "Alarme PM2.5 s'est désactivée",

"en": "The PM2.5 alarm turned on",
"nl": "Het PM2.5 gaat aan",
"nl": "Het PM2,5 gaat aan",
"de": "Der PM2.5-Alarm ist angegangen",

@@ -92,3 +92,3 @@ "fr": "L'alarme PM2.5 s'est activée",

"en": "The PM2.5 alarm turned off",
"nl": "Het PM2.5 gaat uit",
"nl": "Het PM2,5 gaat uit",
"de": "Der PM2.5-Alarm ist ausgegangen",

@@ -112,3 +112,3 @@ "fr": "L'alarme PM2.5 s'est désactivée",

"en": "The PM2.5 alarm is !{{on|off}}",
"nl": "Het PM2.5 alarm is !{{aan|uit}}",
"nl": "Het PM2,5 alarm is !{{aan|uit}}",
"de": "Der PM2.5-Alarm ist !{{an|aus}}",

@@ -115,0 +115,0 @@ "fr": "L'alarme PM2.5 est !{{en marche|arrêtée}}",

@@ -34,4 +34,4 @@ {

"title": {
"en": "Dim-level changed",
"nl": "Dim-niveau veranderd",
"en": "The dim level changed",
"nl": "Het dim-niveau is veranderd",
"de": "Dimm-Niveau geändert",

@@ -107,3 +107,3 @@ "fr": "Intensité lumineuse a été modifiée",

"en": "Set relative dim-level",
"nl": "Zet relatief dim-niveau",
"nl": "Zet relatief dim-niveau op",
"de": "Relatives Dimm-Niveau setzen",

@@ -110,0 +110,0 @@ "fr": "Définir l'intensité lumineuse sur relative",

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

"en": "Hue",
"nl": "Hue",
"nl": "Tint",
"de": "Farbton",

@@ -8,0 +8,0 @@ "fr": "Teinte",

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

"en": "Lock mode",
"nl": "Slot modus",
"nl": "Vergrendelmodus",
"de": "Schloss-Modus",

@@ -79,4 +79,4 @@ "fr": "Mode verrou",

"title": {
"en": "Lock mode has changed",
"nl": "Slot modus is veranderd",
"en": "Lock mode changed",
"nl": "Slotmodus is veranderd",
"de": "Schloss-Modus hat sich geändert",

@@ -107,3 +107,3 @@ "fr": "Mode verrou a été modifié",

"en": "Lock mode !{{is|is not}}",
"nl": "Slot modus !{{is|is niet}}",
"nl": "Slotmodus !{{is|is niet}}",
"de": "Schloss-Modus !{{ist|ist nicht}}",

@@ -134,3 +134,3 @@ "fr": "Mode verrou !{{est|n'est pas}}",

"en": "Set mode",
"nl": "Stel stand in",
"nl": "Stel modus in",
"de": "Modus setzen",

@@ -137,0 +137,0 @@ "fr": "Définir le mode",

@@ -48,3 +48,3 @@ {

"en": "The CO-level changed",
"nl": "Het CO niveau is veranderd",
"nl": "Het CO-niveau is veranderd",
"de": "Der CO-Gehalt hat sich geändert",

@@ -51,0 +51,0 @@ "fr": "Le niveau de CO a changé",

@@ -48,3 +48,3 @@ {

"en": "The CO2-level changed",
"nl": "Het CO2 niveau is veranderd",
"nl": "Het CO2-niveau is veranderd",
"de": "Der CO2-Gehalt hat sich geändert",

@@ -51,0 +51,0 @@ "fr": "Le niveau de CO2 a changé",

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

"en": "Gust angle",
"nl": "Windstoot richting",
"nl": "Windstootrichting",
"de": "Böenrichtung",

@@ -49,3 +49,3 @@ "fr": "Direction d'un coup de vent",

"en": "The gust angle changed",
"nl": "Windstoot richting is veranderd",
"nl": "Windstootrichting is veranderd",
"de": "Die Böenrichtung hat sich geändert",

@@ -52,0 +52,0 @@ "fr": "Direction du coup de vent a changé",

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

"en": "Gust strength",
"nl": "Windstoot kracht",
"nl": "Windstootkracht",
"de": "Böenstärke",

@@ -50,3 +50,3 @@ "fr": "Force d'un coup de vent",

"en": "The gust strength changed",
"nl": "De windstoot snelheid is veranderd",
"nl": "De windstootkracht is veranderd",
"de": "Die Böenstärke hat sich geändert",

@@ -53,0 +53,0 @@ "fr": "La force du coup de vent a changé",

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

"en": "PM2.5",
"nl": "PM2.5",
"nl": "PM2,5",
"de": "PM2.5",

@@ -48,4 +48,4 @@ "fr": "PM2.5",

"title": {
"en": "The PM2.5 value has changed",
"nl": "De PM2.5 waarde is veranderd",
"en": "The PM2.5 value changed",
"nl": "De PM2,5-waarde is veranderd",
"de": "Der PM2.5-Wert hat sich geändert",

@@ -52,0 +52,0 @@ "fr": "La valeur PM2.5 a changé",

@@ -48,4 +48,4 @@ {

"title": {
"en": "The temperature changed",
"nl": "De temperatuur is veranderd",
"en": "The temperature changes",
"nl": "De temperatuur verandert",
"de": "Die Temperatur hat sich geändert",

@@ -52,0 +52,0 @@ "fr": "La température a changé",

@@ -48,3 +48,3 @@ {

"en": "The ultraviolet value changed",
"nl": "De ultraviolet waarde is veranderd",
"nl": "De ultravioletwaarde is veranderd",
"de": "Der Ultraviolett-Wert hat sich geändert",

@@ -51,0 +51,0 @@ "fr": "La valeur d'ultraviolet a changé",

@@ -48,4 +48,4 @@ {

"title": {
"en": "The waterflow has changed",
"nl": "De waterstroom veranderd",
"en": "The waterflow changed",
"nl": "De waterstroom is veranderd",
"de": "Der Wasserfluss hat sich geändert",

@@ -52,0 +52,0 @@ "fr": "Le débit d'eau a changé",

@@ -49,3 +49,3 @@ {

"en": "The wind strength changed",
"nl": "De windsnelheid is veranderd",
"nl": "De windkracht is veranderd",
"de": "Die Windstärke hat sich geändert",

@@ -52,0 +52,0 @@ "fr": "La force du vent a changé",

@@ -221,3 +221,3 @@ {

"title": {
"en": "Open curtain or blind",
"en": "Open the curtain or blind",
"nl": "Open de gordijnen",

@@ -242,3 +242,3 @@ "de": "Vorhang oder Rollladen öffnen",

"title": {
"en": "Close curtain or blind",
"en": "Close the curtain or blind",
"nl": "Sluit de gordijnen",

@@ -245,0 +245,0 @@ "de": "Vorhang oder Rollladen schließen",

{
"title": {
"en": "Repeat",
"nl": "Herhalen",
"de": "Wiederholen",

@@ -5,0 +6,0 @@ "fr": "Répéter",

{
"title": {
"en": "Shuffle",
"nl": "Shuffle",
"de": "Zufallswiedergabe",

@@ -5,0 +6,0 @@ "fr": "Aléatoire",

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

"en": "Thermostat mode",
"nl": "Thermostaat modus",
"nl": "Thermostaatmodus",
"de": "Thermostat-Modus",

@@ -110,4 +110,4 @@ "fr": "Mode thermostat",

"title": {
"en": "Thermostat mode has changed",
"nl": "Thermostaat modus is veranderd",
"en": "Thermostat mode changed",
"nl": "Thermostaatmodus is veranderd",
"de": "Thermostat-Modus hat sich geändert",

@@ -138,3 +138,3 @@ "fr": "Mode thermostat a été modifié",

"en": "Thermostat mode !{{is|is not}}",
"nl": "Thermostaat modus !{{is|is niet}}",
"nl": "Thermostaatmodus !{{is|is niet}}",
"de": "Thermostat-Modus !{{ist|ist nicht}}",

@@ -141,0 +141,0 @@ "fr": "Mode thermostat !{{est|n'est pas}}",

@@ -182,3 +182,3 @@ {

"en": "Start spot cleaning",
"nl": "Begin met één plek stofzuigen",
"nl": "Begin met pleksgewijs stofzuigen",
"de": "Mit Spot-Reinigung anfangen",

@@ -185,0 +185,0 @@ "fr": "Commencer le détachage",

{
"title": {
"en": "Set volume",
"nl": "Volume instellen",
"de": "Lautstärke setzen",

@@ -47,4 +48,4 @@ "fr": "Définir le volume",

"title": {
"en": "Volume changed",
"nl": "Volume veranderd",
"en": "The volume changed",
"nl": "Het volume is veranderd",
"de": "Lautstärke hat sich geändert",

@@ -89,4 +90,4 @@ "fr": "Volume a été modifié",

"title": {
"en": "Set volume to",
"nl": "Zet volume naar",
"en": "Set the volume to",
"nl": "Zet het volume naar",
"de": "Lautstärke setzen auf",

@@ -93,0 +94,0 @@ "fr": "Mettre le volume sur",

@@ -47,4 +47,4 @@ {

"title": {
"en": "Position changed",
"nl": "Positie veranderd",
"en": "The position changed",
"nl": "De positie is veranderd",
"de": "Position hat sich geändert",

@@ -51,0 +51,0 @@ "fr": "Position a été modifiée",

{
"title": {
"en": "Window coverings state",
"nl": "Raambekleding status",
"nl": "Raambekledingstatus",
"de": "Jalousien-Status",

@@ -6,0 +6,0 @@ "fr": "Etat des stores",

{
"title": {
"en": "Window coverings tilt down",
"nl": "Raambekleding kantelt naar beneden",
"de": "Jalousien nach unten gekippt",

@@ -5,0 +6,0 @@ "fr": "Stores baissés",

{
"title": {
"en": "Window coverings tilt set",
"nl": "Raambekledingkanteling instellen",
"de": "Jalousien-Kippstellung setzen",

@@ -5,0 +6,0 @@ "fr": "Définir l'inclinaison des stores",

{
"title": {
"en": "Window coverings tilt up",
"nl": "Raambekleding kantelt naar boven",
"de": "Jalousien nach oben gekippt",

@@ -5,0 +6,0 @@ "fr": "Stores levés",

@@ -285,2 +285,7 @@ /* eslint-disable no-restricted-properties */

if (isSystemCapability && !isAppCapability && allowedCapabilities[capabilityId].minCompatibility && semver.lt(semver.minVersion(appJson.compatibility), allowedCapabilities[capabilityId].minCompatibility)) {
// Compatibility must be greater than or equal to the minimum required compatibility
throw new Error(`drivers.${driver.id} capability: ${capabilityId} is not available for compatibility ${appJson.compatibility}, requires minimum: ${allowedCapabilities[capabilityId].minCompatibility}`);
}
// validate battery

@@ -287,0 +292,0 @@ if (BATTERY_CAPABILITIES.includes(capabilityId)) {

{
"name": "homey-lib",
"version": "2.31.4",
"version": "2.32.0",
"description": "Shared Library for Homey",

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

@@ -284,2 +284,35 @@ /* eslint-disable node/no-unpublished-require */

it('`capabilities` needs to be checked for compatibility', async function() {
const app = mockApp({
...baseAppManifest,
compatibility: '>=5.0.0 <=12.0.0',
drivers: [{
...baseDriverManifest,
capabilities: ['alarm_pm01'], // Capability that requires compatibility >= 12.1
}],
});
await assertValidates(app, {
debug: /capability: alarm_pm01 is not available for compatibility/i,
publish: /capability: alarm_pm01 is not available for compatibility/i,
verified: /capability: alarm_pm01 is not available for compatibility/i,
});
});
it('`capabilities` without compatibility should validate', async function() {
const app = mockApp({
...baseAppManifest,
drivers: [{
...baseDriverManifest,
capabilities: ['onoff'], // Capability that has no min compatibility
}],
});
await assertValidates(app, {
debug: true,
publish: true,
verified: true,
});
});
/*

@@ -286,0 +319,0 @@ * Zigbee Driver

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