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 =
|
|
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.
|
|
1
|
+
export declare const version = "v2.17.1";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED