upgrade cspell and fix spelling issues

This commit is contained in:
Björn Dalfors
2024-04-04 10:35:25 +02:00
parent 737afb3c1b
commit f1b13a2919
7 changed files with 669 additions and 290 deletions

View File

@@ -1,3 +1,5 @@
/* spell-checker: disable */
const protocol = `
syntax = "proto2";
@@ -197,4 +199,6 @@ message Payload {
extensions 6 to max; // For third party extensions
}
`
/* spell-checker: enable */
export default protocol

View File

@@ -1,9 +1,11 @@
// cSpell:words protobuf
import * as protobuf from 'protobufjs'
import protocol from './sparkplugb.proto'
import { Base64Message } from './Base64Message'
import { Decoder } from './Decoder'
const root = protobuf.parse(protocol).root
/* cspell:disable-next-line */
export let SparkplugPayload = root.lookupType('com.cirruslink.sparkplug.protobuf.Payload')
export const SparkplugDecoder = {