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

homebridge-itho-daalderop

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-itho-daalderop - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

32

CHANGELOG.md

@@ -7,5 +7,37 @@ ### Changelog

#### [1.1.5](https://github.com/jvandenaardweg/homebridge-itho-daalderop/compare/1.1.4...1.1.5)
- chore(deps-dev): bump vitest from 0.27.0 to 0.27.1 [`1bd940e`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/1bd940e1812d09095d7352cd18a028a4823d6178)
- chore(deps-dev): bump vitest from 0.26.3 to 0.27.0 [`6705a5c`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/6705a5cf40b9e66822bbda471848551fe4db2808)
- chore(deps-dev): bump @vitest/coverage-istanbul from 0.26.2 to 0.26.3 [`af02f55`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/af02f55a40a57018f16e765e08ded7bfe2f09b5a)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`f752c5a`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/f752c5af5096a93572f5531c6da7ecadcc827039)
- chore(deps-dev): bump @typescript-eslint/parser from 5.48.0 to 5.48.1 [`18af46c`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/18af46ca0a281f9b78dbfcc2a13a25cecea0a5ea)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`4cd9ca0`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/4cd9ca05051491a94cfcf30d87f4cd905208bcf9)
- chore(deps-dev): bump vitest from 0.27.1 to 0.28.1 [`2b3d011`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/2b3d011b3de31ca289e68845425c53f1cf64f57b)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`d143429`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/d143429aad03a92a1a46167186ed8e72c2e1ad33)
- chore(deps-dev): bump @typescript-eslint/parser from 5.48.2 to 5.49.0 [`839c846`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/839c8463b6ca19afcff36c59b48ff063db64a7a1)
- chore(deps-dev): bump @typescript-eslint/parser from 5.48.1 to 5.48.2 [`fdbb324`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/fdbb3249d00d397cdc1facc5ce1fd24736d42842)
- chore(deps-dev): bump @typescript-eslint/parser from 5.47.1 to 5.48.0 [`afb780c`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/afb780c3b4c5ebf0b055237e45c00e3566d20f7e)
- chore(deps-dev): bump @vitest/coverage-istanbul from 0.26.3 to 0.27.0 [`a37c0dc`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/a37c0dc191cb458a6842b594785e5dbf3fc6981c)
- chore(deps-dev): bump release-it from 15.5.1 to 15.6.0 [`e23818a`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/e23818a288ace8e4a38bebbe08d0991302652772)
- chore(deps-dev): bump rimraf from 3.0.2 to 4.0.7 [`9f153a3`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/9f153a3c307f1826a5b668eb150f96beb14be03e)
- chore: update dependencies [`d3bd6c7`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/d3bd6c77ab7959e58016f02b5c30cd521bdc8108)
- chore(deps-dev): bump eslint from 8.30.0 to 8.31.0 [`ed90860`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/ed90860bd16d540034a1c6ebb91dca1063f23eab)
- chore(deps): bump undici from 5.15.0 to 5.16.0 [`6d45fc4`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/6d45fc4b8b9025c70007db39b75f4e17570360e1)
- chore(deps-dev): bump rimraf from 4.0.7 to 4.1.1 [`215ac6b`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/215ac6b7ed39caaeb00979e39616fa944b5276aa)
- chore(deps-dev): bump prettier from 2.8.2 to 2.8.3 [`d44ec76`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/d44ec761c20d5e2078942d51acbdbfb85e2f074d)
- chore(deps): bump undici from 5.14.0 to 5.15.0 [`97cfc7b`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/97cfc7b5393d1c496f61e0ff253d97cc8775989e)
- chore(deps-dev): bump prettier from 2.8.1 to 2.8.2 [`12e6fb9`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/12e6fb9497174292bbbcc8a58fe69b30a3fd454e)
- refactor: use shorter timeout on http calls [`a4516fd`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/a4516fd5ae98bc290b6fa9cec90591725eb362e7)
- fix: handle http api error correctly when setting rotation speed [`946c374`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/946c374655effc55f89f762317c66c292c0c1e61)
- feat: return last known speed value when http api is not reachable [`316dfa9`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/316dfa90363828de3443d1e56767ca3ac256c207)
- chore: remove dev throw error [`870834f`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/870834f5fb561302e12e52bf7764bd4374823624)
- chore: update dependabot.yml [`5dc9854`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/5dc98546c9bbe6b4425075a53fb877b3050efd59)
#### [1.1.4](https://github.com/jvandenaardweg/homebridge-itho-daalderop/compare/1.1.3...1.1.4)
> 31 December 2022
- chore: remove target fan state code [`8b22d41`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/8b22d4160a286217167df195a44887a64533f8cf)
- chore: release v1.1.4 [`b024fc4`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/b024fc4f7a6b4e92fe78e3112bd3349a8ac44df6)
- fix: speed resetting when active state is already set [`5925ff5`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/5925ff5a2ce7d28852515eb15a6f8cbb47a746ea)

@@ -12,0 +44,0 @@

2

dist/api/http.d.ts
import { IthoGetSpeedResponse, IthoSetSpeedResponse, IthoStatusSanitizedPayload, VirtualRemoteCommand } from '../types';
import { Logger } from 'homebridge';
import { request as undiciRequest } from 'undici';
export type RequestParameters = Parameters<typeof undiciRequest>;
export declare const DEFAULT_POLLING_INTERVAL = 5000;

@@ -4,0 +6,0 @@ interface HttpApiOptions {

11

dist/api/http.js

@@ -19,2 +19,5 @@ "use strict";

const undici_1 = require("undici");
const request = (url, options) => {
return (0, undici_1.request)(url, Object.assign(Object.assign({}, options), { bodyTimeout: 2000, headersTimeout: 2000 }));
};
exports.DEFAULT_POLLING_INTERVAL = 5000;

@@ -50,3 +53,3 @@ class HttpApi {

this.log(`Setting speed to ${speed} at ${requestUrl}`);
const response = yield (0, undici_1.request)(requestUrl, {
const response = yield request(requestUrl, {
method: 'GET',

@@ -66,3 +69,3 @@ });

this.log(`Setting vremote to ${virtualRemoteCommand} at ${requestUrl}`);
const response = yield (0, undici_1.request)(requestUrl, {
const response = yield request(requestUrl, {
method: 'GET',

@@ -82,3 +85,3 @@ });

this.log(`Getting speed at ${requestUrl}`);
const response = yield (0, undici_1.request)(requestUrl, {
const response = yield request(requestUrl, {
method: 'GET',

@@ -102,3 +105,3 @@ });

this.log(`Getting status at ${requestUrl}`);
const response = yield (0, undici_1.request)(requestUrl, {
const response = yield request(requestUrl, {
method: 'GET',

@@ -105,0 +108,0 @@ });

@@ -299,3 +299,10 @@ "use strict";

else {
rotationSpeedNumber = yield this.httpApiClient.getSpeed();
try {
rotationSpeedNumber = yield this.httpApiClient.getSpeed();
}
catch (error) {
const lastKnownSpeed = this.lastStatePayload || 0;
this.log.error(`Failed to get RotationSpeed from the Itho Wifi module. Make sure the Itho Wifi module has a stable wifi connection and try again. Will return the last known RotationSpeed of ${lastKnownSpeed} for now.`, JSON.stringify(error));
rotationSpeedNumber = lastKnownSpeed;
}
}

@@ -302,0 +309,0 @@ const rotationSpeed = Math.round(Number(rotationSpeedNumber) / 2.54);

@@ -1,2 +0,2 @@

export declare const PLUGIN_VERSION = "1.1.4";
export declare const PLUGIN_VERSION = "1.1.5";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PLUGIN_VERSION = void 0;
exports.PLUGIN_VERSION = "1.1.4";
exports.PLUGIN_VERSION = "1.1.5";
//# sourceMappingURL=version.js.map
{
"displayName": "Homebridge Itho Daalderop",
"name": "homebridge-itho-daalderop",
"version": "1.1.4",
"version": "1.1.5",
"description": "This Homebridge plugin exposes your Itho Daalderop mechanical fan unit to Apple HomeKit by using the WiFi Add-on module. So you can use the Home App to control your fan units and integrate into your Home Automations.",

@@ -73,22 +73,22 @@ "license": "MIT",

"@types/validator": "^13.7.10",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"@vitest/coverage-istanbul": "^0.26.2",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.49.0",
"@vitest/coverage-istanbul": "^0.27.0",
"dotenv-cli": "^6.0.0",
"eslint": "^8.30.0",
"eslint": "^8.31.0",
"homebridge": "^1.6.0",
"husky": "^8.0.2",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^13.1.0",
"nodemon": "^2.0.20",
"prettier": "^2.8.1",
"release-it": "^15.5.1",
"prettier": "^2.8.3",
"release-it": "^15.6.0",
"resolve-tspaths": "^0.8.3",
"rimraf": "^3.0.2",
"rimraf": "^4.1.1",
"typescript": "^4.9.4",
"vitest": "^0.26.2"
"vitest": "^0.28.1"
},
"dependencies": {
"mqtt": "^4.3.7",
"undici": "^5.14.0",
"undici": "^5.16.0",
"validator": "^13.7.0",

@@ -95,0 +95,0 @@ "zod": "^3.20.2"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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