@thi.ng/errors
Advanced tools
Comparing version 2.1.3 to 2.1.4
# Change Log | ||
- **Last updated**: 2021-12-13T10:26:00Z | ||
- **Last updated**: 2022-03-11T12:13:49Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
@@ -16,5 +16,5 @@ /// <reference types="node" /> | ||
* | ||
* @param index | ||
* @param min | ||
* @param max | ||
* @param index - | ||
* @param min - | ||
* @param max - | ||
*/ | ||
@@ -26,9 +26,8 @@ export declare const ensureIndex: (index: number, min: number, max: number) => false; | ||
* | ||
* @param x | ||
* @param y | ||
* @param maxX | ||
* @param maxY | ||
* @returns | ||
* @param x - | ||
* @param y - | ||
* @param maxX - | ||
* @param maxY - | ||
*/ | ||
export declare const ensureIndex2: (x: number, y: number, maxX: number, maxY: number) => false; | ||
//# sourceMappingURL=out-of-bounds.d.ts.map |
@@ -9,5 +9,5 @@ import { defError } from "./deferror.js"; | ||
* | ||
* @param index | ||
* @param min | ||
* @param max | ||
* @param index - | ||
* @param min - | ||
* @param max - | ||
*/ | ||
@@ -19,8 +19,7 @@ export const ensureIndex = (index, min, max) => (index < min || index >= max) && outOfBounds(index); | ||
* | ||
* @param x | ||
* @param y | ||
* @param maxX | ||
* @param maxY | ||
* @returns | ||
* @param x - | ||
* @param y - | ||
* @param maxX - | ||
* @param maxY - | ||
*/ | ||
export const ensureIndex2 = (x, y, maxX, maxY) => (x < 0 || x >= maxX || y < 0 || y >= maxY) && outOfBounds([x, y]); |
{ | ||
"name": "@thi.ng/errors", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Custom error types and error factory functions", | ||
@@ -37,9 +37,9 @@ "type": "module", | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.19.2", | ||
"@thi.ng/testament": "^0.2.3", | ||
"@types/node": "^16.11.12", | ||
"@microsoft/api-extractor": "^7.19.4", | ||
"@thi.ng/testament": "^0.2.4", | ||
"@types/node": "^17.0.21", | ||
"rimraf": "^3.0.2", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.22.10", | ||
"typescript": "^4.5.3" | ||
"typedoc": "^0.22.13", | ||
"typescript": "^4.6.2" | ||
}, | ||
@@ -94,3 +94,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n" | ||
"gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n" | ||
} |
@@ -66,3 +66,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
Package sizes (gzipped, pre-treeshake): ESM: 554 bytes | ||
Package sizes (gzipped, pre-treeshake): ESM: 546 bytes | ||
@@ -133,2 +133,2 @@ ## Dependencies | ||
© 2018 - 2021 Karsten Schmidt // Apache Software License 2.0 | ||
© 2018 - 2022 Karsten Schmidt // Apache Software License 2.0 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30423
195