New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ggencoder

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ggencoder - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

10

lib/GG-AisDecode.js

@@ -189,6 +189,7 @@ /*

return;
} else if (nmea[0] !== "!AIVDM" && // AIVDM: others
nmea[0] !== "!AIVDO" && // AIVDO: own AIS
nmea[0] !== "!BSVDM" && // BSVDM: from base stations
nmea[0] !== "!ABVDM" ) { // ABVDM: from base stations
}
var command = nmea[0].substring(3,6);
if (command !== "VDM" && // AIVDM: others
command !== "VDO" // AIVDO: own AIS
) {
this.error = "AisDecode: Invalid message prefix.";

@@ -488,2 +489,3 @@ return;

this.offpos = this.GetInt(259, 1);
this.virtual = this.GetInt(269, 1);

@@ -490,0 +492,0 @@ var len = parseInt(( ( this.bitarray.length - 272 /6 ) / 6 ) * 6)*6;

2

package.json
{
"name": "ggencoder",
"description": "GEOGATE-geojson handles AIS/NMEA encoding/decoding for GEOgate GPS/AIS/GTS framework",
"version": "1.0.3",
"version": "1.0.4",
"author": {

@@ -6,0 +6,0 @@ "name": "Fulup Ar Foll",

@@ -163,7 +163,9 @@ /*

lat : -38.03993166666667,
txt : ""
txt : "",
virtual : 1,
offpos : 0
}
,msg21a: { // aid of navigation with extra text
aistype : 21,
nmea : "!AIVDM,1,1,,B,EvjO`>C2qHtq@8:W:0h9PW@1Pb0Paq`g;STu`10888N00313p12H31@hi@,4*0E,22.02.2017 15:57:02",
nmea : "!AIVDM,1,1,,B,EvjO`>C2qHtq@8:W:0h9PW@1Pb0Paq`g;STu`10888N00313p12H31@hi@,4*0E",
mmsi : "992471097",

@@ -174,3 +176,5 @@ shipname : "E2192 PUNTA SAN CATA",

lat : 40.390795,
txt : "LDO DI LECCE"
txt : "LDO DI LECCE",
virtual : 0,
offpos : 0
}

@@ -287,3 +291,3 @@ ,msg9: { // sar aircraft

if (aisDecoded.valid !== true) {
console.log ("[%s] invalid AIS payload", test);
console.log ("[%s] invalid AIS payload: %s", test, aisDecoded.error);
} else {

@@ -313,3 +317,3 @@ switch (aisTest.aistype) {

case 21:
this.CheckResult (test, aisTest, aisDecoded, ["mmsi", 'shipname', 'aidtype', 'lat', 'lon', 'txt']);
this.CheckResult (test, aisTest, aisDecoded, ["mmsi", 'shipname', 'aidtype', 'lat', 'lon', 'txt', 'offpos', 'virtual']);
break;

@@ -316,0 +320,0 @@ case 24:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc