From 52a33f8530e01236b392e2dec10553ee8b700cac Mon Sep 17 00:00:00 2001 From: johntalton Date: Wed, 27 Mar 2024 13:32:49 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 14 +++++++------- src/common.ts | 8 +++++--- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index dc4e937..f4b1d3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@johntalton/tcs34725", - "version": "2.0.0", + "version": "2.0.1", "description": "", "license": "MIT", "engines": { @@ -130,9 +130,9 @@ }, "dependencies": { "@johntalton/and-other-delights": "^6.0.0", - "@johntalton/eslint-config": "^2.0.0", - "@typescript-eslint/eslint-plugin": "^6.6.0", - "chai": "^4.3.7", + "@johntalton/eslint-config": "^3.0.0", + "@typescript-eslint/eslint-plugin": "^7.4.0", + "chai": "^5.1.0", "eslint-plugin-mocha": "^10.1.0", "mocha": "^10.2.0", "typescript": "^5.1.3" @@ -143,7 +143,7 @@ }, "author": "johntalton@gmail.com", "devDependencies": { - "c8": "^8.0.1", + "c8": "^9.1.0", "color-convert": "^2.0.1", "eslint": "^8.42.0", "eslint-import-resolver-typescript": "^3.5.5", @@ -155,10 +155,10 @@ "eslint-plugin-no-use-extend-native": "^0.5.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-security": "^1.4.0", + "eslint-plugin-security": "^2.1.1", "eslint-plugin-spellcheck": "0.0.20", "i2c-bus": "^5.2.0", - "mqtt": "^4.1.0", + "mqtt": "^5.5.0", "onoff": "^6.0.0" } } diff --git a/src/common.ts b/src/common.ts index c635fc4..3f36489 100644 --- a/src/common.ts +++ b/src/common.ts @@ -10,7 +10,8 @@ import { Status, Configuration, Data, - FriendlyProfile + FriendlyProfile, + Profile } from './types.js' import { Converter } from './converter.js' import { @@ -142,7 +143,8 @@ export class Common { ]) } - // static async setProfile(bus: I2CAddressedBus, profile: Profile): Promise { + static async setProfile(_bus: I2CAddressedBus, _profile: Profile): Promise { + throw new Error('no impl') // const enable = Converter.encodeEnable(profile) // todo do not pass entire profile // const [wtime, wlong] = Converter.encodeWTimingMs(profile.waitTimeMs) // const threshold = profile.threshold || { low: profile.low, high: profile.high } @@ -161,7 +163,7 @@ export class Common { // ]) // await Common.setEnabled(bus, enable) - // } + } static setIntegrationTiming(_bus: I2CAddressedBus, _integrationTimeMs: number) { throw new Error('Method not implemented.')