mechanical-tolerance-calculator 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -388,6 +388,9 @@ function checkMultipleMeasurementsFor(materialType, measurements) {
388
388
  let count = 0;
389
389
  let withInSpecs = [];
390
390
  const results = measurements.map((measurement) => {
391
+ if (!isValidMeasurement(measurement)) {
392
+ return { error: "Measurement must be between 0 to 1000." };
393
+ }
391
394
  const result = processIndividualMeasurement(
392
395
  camcoStandardTolerances.type,
393
396
  measurement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mechanical-tolerance-calculator",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Calculates international standard specification and tolerances for bores, round bars and metals of mechanical units. For examples; H7, H8, H9, h8, h9 specifications and IT5/IT6 tolerances.",
5
5
  "main": "index.js",
6
6
  "scripts": {