2 Commits

Author SHA1 Message Date
78dbd3b0ef Version 1.1.3 2026-03-18 10:07:06 +01:00
df266bab12 Correctly parse compressed position with no timestamp 2026-03-18 10:06:45 +01:00
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@hamradio/aprs",
"version": "1.1.2",
"version": "1.1.3",
"description": "APRS (Automatic Packet Reporting System) protocol support for Typescript",
"keywords": [
"APRS",

View File

@@ -423,7 +423,9 @@ export class Frame implements IFrame {
offset += 7;
}
if (this.payload.length < offset + 19) return { payload: null };
// Need at least enough characters for compressed position (13) or
// uncompressed (19). Allow parsing to continue if compressed-length is present.
if (this.payload.length < offset + 13) return { payload: null };
// Check if compressed format
const isCompressed = this.isCompressedPosition(