config-editor-base 2.9.8 → 2.9.9

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.
@@ -21823,8 +21823,11 @@ function isObdResponse29Bit(canId) {
21823
21823
  }
21824
21824
 
21825
21825
  function parseSupportedPids(csvContent) {
21826
- var frames = parseCanFrameCsv(csvContent);
21827
- var receiveFrames = getReceiveFrames(frames);
21826
+ var parseResult = parseCanFrameCsv(csvContent);
21827
+ if (parseResult.error) {
21828
+ throw new Error(parseResult.error);
21829
+ }
21830
+ var receiveFrames = getReceiveFrames(parseResult.frames);
21828
21831
  var obd11BitResponses = receiveFrames.filter(function (f) {
21829
21832
  return f.ide === 0 && f.id === '7E8';
21830
21833
  });
@@ -21868,7 +21871,7 @@ function parseSupportedPids(csvContent) {
21868
21871
  transmitId: use29Bit ? '18DB33F1' : '7DF',
21869
21872
  canIdType: use29Bit ? '29bit' : '11bit',
21870
21873
  responseCount: relevantResponses.length,
21871
- totalFrames: frames.length,
21874
+ totalFrames: parseResult.frames.length,
21872
21875
  hasMixedIds: hasBothIdTypes,
21873
21876
  hasMixedProtocols: hasMixedProtocols,
21874
21877
  allProtocolsDetected: Array.from(protocolsDetected),