onroute-policy-engine 2.17.0 → 2.17.1

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.
@@ -276,7 +276,9 @@ function CheckPermittableWeight(policy, vehicleConfiguration, axleConfiguration)
276
276
  ? policy.getDefaultPowerUnitWeight(vehicleType, axleConfiguration[0].numberOfAxles * 10 +
277
277
  axleConfiguration[1].numberOfAxles)
278
278
  : policy.getDefaultTrailerWeight(vehicleType, ac.numberOfAxles);
279
- const axleDimension = policy.selectCorrectWeightDimension(weight, vehicleConfiguration, axleConfiguration, i) || {};
279
+ const axleDimension = weight.length > 0
280
+ ? policy.selectCorrectWeightDimension(weight, vehicleConfiguration, axleConfiguration, i) || {}
281
+ : {};
280
282
  const actualWeight = ac.axleUnitWeight;
281
283
  const permittableWeight = axleDimension.permittable || 0;
282
284
  const result = actualWeight <= permittableWeight;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "v2.17.0";
1
+ export declare const version = "v2.17.1";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = 'v2.17.0';
5
+ exports.version = 'v2.17.1';
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  ],
92
92
  "testEnvironment": "node"
93
93
  },
94
- "version": "v2.17.0"
94
+ "version": "v2.17.1"
95
95
  }