config-editor-base 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -310,12 +310,18 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
310
310
  if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss != undefined) {
311
311
  deviceType = "CANedge1 GNSS";
312
312
  }
313
- if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss == undefined) {
313
+ if (contentJSON.can_2 != undefined && contentJSON.connect.wifi != undefined && contentJSON.gnss == undefined) {
314
314
  deviceType = "CANedge2";
315
315
  }
316
- if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss != undefined) {
316
+ if (contentJSON.can_2 != undefined && contentJSON.connect.wifi != undefined && contentJSON.gnss != undefined) {
317
317
  deviceType = "CANedge2 GNSS";
318
318
  }
319
+ if (contentJSON.can_2 != undefined && contentJSON.connect.cellular != undefined && contentJSON.gnss == undefined) {
320
+ deviceType = "CANedge3";
321
+ }
322
+ if (contentJSON.can_2 != undefined && contentJSON.connect.cellular != undefined && contentJSON.gnss != undefined) {
323
+ deviceType = "CANedge3 GNSS";
324
+ }
319
325
  var schemaAryFiltered = schemaAry.filter(function (e) {
320
326
  return e.includes(selectedConfig.substr(7, 5));
321
327
  });