Skip to content

Commit

Permalink
chore: update to @signalk/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Nov 22, 2024
1 parent 34bdc0a commit 6ccdad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@signalk/server-api": "^2.3.0",
"@signalk/server-api": "^2.5.0",
"@types/chai": "^4.3.3",
"@types/express": "^4.17.17",
"@types/mocha": "^9.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SKInflux, SKInfluxConfig } from './influx'
import { EventEmitter } from 'stream'
import { getDailyLogData, registerHistoryApiRoute } from './HistoryAPI'
import { IRouter } from 'express'
import { Context, Delta, MetaDelta, Path, PathValue, SourceRef, ValuesDelta } from '@signalk/server-api'
import { Context, Delta, hasValues, MetaDelta, Path, PathValue, SourceRef, ValuesDelta } from '@signalk/server-api'

// eslint-disable-next-line @typescript-eslint/no-var-requires
const packageInfo = require('../package.json')
Expand Down Expand Up @@ -152,7 +152,7 @@ export default function InfluxPluginFactory(app: App): Plugin & InfluxPlugin {
const isSelf = delta.context === selfContext
delta.updates &&
delta.updates.forEach((update) => {
update.values &&
hasValues(update) &&
update.values.forEach((pathValue) => {
skInfluxes.forEach((skInflux) =>
skInflux.handleValue(
Expand Down

0 comments on commit 6ccdad1

Please sign in to comment.