mechanical-tolerance-calculator 1.1.7 → 1.1.8

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 (3) hide show
  1. package/index.js +0 -2
  2. package/package.json +1 -1
  3. package/test.js +6 -3
package/index.js CHANGED
@@ -417,8 +417,6 @@ function checkMultipleMeasurementsFor(materialType, measurements) {
417
417
 
418
418
  return result;
419
419
  });
420
- console.log("nominals: " + JSON.stringify(nominals));
421
- console.log("within spec: " + withInSpecs);
422
420
 
423
421
  let countOfMostOccuredNominal = Math.max(...Object.values(nominals));
424
422
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mechanical-tolerance-calculator",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
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": {
package/test.js CHANGED
@@ -1,6 +1,9 @@
1
1
  const { checkMultipleMeasurementsFor } = require("./index");
2
- console.log(checkMultipleMeasurementsFor("housing", [100.04, 100.05]));
3
- console.log(checkMultipleMeasurementsFor("housing", [100.04, 100.05, 95.06]));
2
+ // console.log(checkMultipleMeasurementsFor("housing", [100.04, 100.05]));
3
+ // console.log(checkMultipleMeasurementsFor("housing", [100.04, 100.05, 95.06]));
4
4
  console.log(
5
- checkMultipleMeasurementsFor("housing", [100.04, 100.05, 95.06, 80.09]),
5
+ checkMultipleMeasurementsFor(
6
+ "housing",
7
+ [100.04, 100.05, 100.05, 98.08, 98.07, 100.09, 98.07, 98.03],
8
+ ),
6
9
  );