node_modules/es-abstract/2021/clamp.js in immosquare-cleaner-0.1.60 vs node_modules/es-abstract/2021/clamp.js in immosquare-cleaner-0.1.61
- old
+ new
@@ -1,11 +1,9 @@
'use strict';
-var GetIntrinsic = require('get-intrinsic');
-
var $TypeError = require('es-errors/type');
-var max = GetIntrinsic('%Math.max%');
-var min = GetIntrinsic('%Math.min%');
+var max = require('math-intrinsics/max');
+var min = require('math-intrinsics/min');
// https://262.ecma-international.org/12.0/#clamping
module.exports = function clamp(x, lower, upper) {
if (typeof x !== 'number' || typeof lower !== 'number' || typeof upper !== 'number' || !(lower <= upper)) {