Skip to content

Commit 6deb521

Browse files
author
Cristobal Contreras Rubio
committed
THELMABIOTEL-TBLIVE: v1.0.3 fix some typos (merging ids in one word with underscore case)
1 parent 8e61ac7 commit 6deb521

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/thelmabiotel-tblive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coremarine/thelmabiotel-tblive",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Library to work with Thlema Biotel TB-Lives hydrophones",
55
"author": "CoreMarine",
66
"license": "MIT",

packages/thelmabiotel-tblive/src/listening.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const parseClockRound = (input: string, timestamp: Timestamp): ParsedSent
4040
const ack = input.replace('\r', '').trim()
4141
return {
4242
raw: input,
43-
id: 'clock round',
43+
id: 'clock_round',
4444
timestamp,
4545
firmware: '1.0.2',
4646
mode: 'listening',
@@ -57,7 +57,7 @@ export const parseClockSet = (input: string, timestamp: Timestamp): ParsedSenten
5757
const ack = input.replace('\r', '').trim()
5858
return {
5959
raw: input,
60-
id: 'clock set',
60+
id: 'clock_set',
6161
timestamp,
6262
firmware: '1.0.2',
6363
mode: 'listening',

packages/thelmabiotel-tblive/tests/listening.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('parseClockRound', () => {
8484
const result = parseClockRound(input, timestamp)
8585
const expected: ParsedSentence = {
8686
raw: input,
87-
id: 'clock round',
87+
id: 'clock_round',
8888
firmware: '1.0.2',
8989
mode: 'listening',
9090
timestamp,
@@ -106,7 +106,7 @@ describe('parseClockSet', () => {
106106
const result = parseClockSet(input, timestamp)
107107
const expected: ParsedSentence = {
108108
raw: input,
109-
id: 'clock set',
109+
id: 'clock_set',
110110
firmware: '1.0.2',
111111
mode: 'listening',
112112
timestamp,

packages/thelmabiotel-tblive/tests/parse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,6 @@ describe('parseSentences', () => {
506506
const input = `${SAMPLE_START}1000185,0000073905,745,S${CLOCK_ROUND}64K,30075,3,25,67,2757${SAMPLE_END}`
507507
const result = parseSentences(input)
508508
expect(result.sentences).toHaveLength(1)
509-
expect(result.sentences[0].id).toEqual('clock round')
509+
expect(result.sentences[0].id).toEqual('clock_round')
510510
})
511511
})

0 commit comments

Comments
 (0)