Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateScale = void 0;
const validateScale = (scale) => {
if (typeof scale === 'undefined') {
return;
}
if (typeof scale !== 'number') {
throw new Error('Scale should be a number or undefined, but is "' +
JSON.stringify(scale) +
'"');
}
if (Number.isNaN(scale)) {
throw new Error('`scale` should not be NaN, but is NaN');
}
if (!Number.isFinite(scale)) {
throw new Error(`"scale" must be finite, but is ${scale}`);
}
if (scale <= 0) {
throw new Error(`"scale" must be bigger than 0, but is ${scale}`);
}
if (scale > 16) {
throw new Error(`"scale" must be smaller or equal than 16, but is ${scale}`);
}
};
exports.validateScale = validateScale;