onroute-policy-engine 2.33.0 → 2.34.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.
|
@@ -506,6 +506,8 @@ function CheckPermittableWeight(policy, vehicleConfiguration, axleConfiguration)
|
|
|
506
506
|
permittableWeight = axle_weight_permittable_maximums_1.AXLE_WEIGHT_PERMITTABLE_MAXIMUMS.TANDEM;
|
|
507
507
|
}
|
|
508
508
|
else if (axleUnit.numberOfAxles === 3) {
|
|
509
|
+
const isTrailerAxleUnit = policy.getTrailerDefinition(vehicleConfiguration[vehicleIndex]) !==
|
|
510
|
+
null;
|
|
509
511
|
const spreadQualifies = axleUnit.axleSpread !== undefined &&
|
|
510
512
|
axleUnit.axleSpread >= QUALIFYING_TRIDEM_SPREAD_CM.MINIMUM &&
|
|
511
513
|
axleUnit.axleSpread <= QUALIFYING_TRIDEM_SPREAD_CM.MAXIMUM;
|
|
@@ -516,7 +518,7 @@ function CheckPermittableWeight(policy, vehicleConfiguration, axleConfiguration)
|
|
|
516
518
|
axleUnitVehicleIndexes[candidateIndex] === nextVehicleIndex);
|
|
517
519
|
const boosterQualifies = !hasImmediatelyFollowingBooster || (boosterAxle === null || boosterAxle === void 0 ? void 0 : boosterAxle.numberOfAxles) === 1;
|
|
518
520
|
permittableWeight =
|
|
519
|
-
spreadQualifies && boosterQualifies
|
|
521
|
+
isTrailerAxleUnit && spreadQualifies && boosterQualifies
|
|
520
522
|
? axle_weight_permittable_maximums_1.AXLE_WEIGHT_PERMITTABLE_MAXIMUMS.QUALIFYING_TRIDEM
|
|
521
523
|
: axle_weight_permittable_maximums_1.AXLE_WEIGHT_PERMITTABLE_MAXIMUMS.STANDARD_TRIDEM;
|
|
522
524
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "v2.
|
|
1
|
+
export declare const version = "v2.34.1";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED