@thi.ng/errors 2.1.2 → 2.1.5

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2021-11-21T17:09:28Z
3
+ - **Last updated**: 2022-04-07T14:17:30Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -63,7 +63,7 @@ node --experimental-repl-await
63
63
  > const errors = await import("@thi.ng/errors");
64
64
  ```
65
65
 
66
- Package sizes (gzipped, pre-treeshake): ESM: 554 bytes
66
+ Package sizes (gzipped, pre-treeshake): ESM: 546 bytes
67
67
 
68
68
  ## Dependencies
69
69
 
@@ -129,4 +129,4 @@ If this project contributes to an academic publication, please cite it as:
129
129
 
130
130
  ## License
131
131
 
132
- © 2018 - 2021 Karsten Schmidt // Apache Software License 2.0
132
+ © 2018 - 2022 Karsten Schmidt // Apache Software License 2.0
@@ -13,20 +13,19 @@ export declare const outOfBounds: (index: any) => never;
13
13
  /**
14
14
  * Throws an {@link OutOfBoundsError} if `index` outside the `[min..max)` range.
15
15
  *
16
- * @param index
17
- * @param min
18
- * @param max
16
+ * @param index -
17
+ * @param min -
18
+ * @param max -
19
19
  */
20
20
  export declare const ensureIndex: (index: number, min: number, max: number) => false;
21
21
  /**
22
22
  * Throws an {@link OutOfBoundsError} if either `x` or `y` is outside their
23
23
  * respective `[0..max)` range.
24
24
  *
25
- * @param x
26
- * @param y
27
- * @param maxX
28
- * @param maxY
29
- * @returns
25
+ * @param x -
26
+ * @param y -
27
+ * @param maxX -
28
+ * @param maxY -
30
29
  */
31
30
  export declare const ensureIndex2: (x: number, y: number, maxX: number, maxY: number) => false;
32
31
  //# sourceMappingURL=out-of-bounds.d.ts.map
package/out-of-bounds.js CHANGED
@@ -6,19 +6,18 @@ export const outOfBounds = (index) => {
6
6
  /**
7
7
  * Throws an {@link OutOfBoundsError} if `index` outside the `[min..max)` range.
8
8
  *
9
- * @param index
10
- * @param min
11
- * @param max
9
+ * @param index -
10
+ * @param min -
11
+ * @param max -
12
12
  */
13
13
  export const ensureIndex = (index, min, max) => (index < min || index >= max) && outOfBounds(index);
14
14
  /**
15
15
  * Throws an {@link OutOfBoundsError} if either `x` or `y` is outside their
16
16
  * respective `[0..max)` range.
17
17
  *
18
- * @param x
19
- * @param y
20
- * @param maxX
21
- * @param maxY
22
- * @returns
18
+ * @param x -
19
+ * @param y -
20
+ * @param maxX -
21
+ * @param maxY -
23
22
  */
24
23
  export const ensureIndex2 = (x, y, maxX, maxY) => (x < 0 || x >= maxX || y < 0 || y >= maxY) && outOfBounds([x, y]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/errors",
3
- "version": "2.1.2",
3
+ "version": "2.1.5",
4
4
  "description": "Custom error types and error factory functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,13 +34,13 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "devDependencies": {
37
- "@microsoft/api-extractor": "^7.18.19",
38
- "@thi.ng/testament": "^0.2.2",
39
- "@types/node": "^16.11.7",
37
+ "@microsoft/api-extractor": "^7.19.4",
38
+ "@thi.ng/testament": "^0.2.5",
39
+ "@types/node": "^17.0.21",
40
40
  "rimraf": "^3.0.2",
41
41
  "tools": "^0.0.1",
42
- "typedoc": "^0.22.9",
43
- "typescript": "^4.5.2"
42
+ "typedoc": "^0.22.13",
43
+ "typescript": "^4.6.2"
44
44
  },
45
45
  "keywords": [
46
46
  "assert",
@@ -63,32 +63,32 @@
63
63
  ],
64
64
  "exports": {
65
65
  ".": {
66
- "import": "./index.js"
66
+ "default": "./index.js"
67
67
  },
68
68
  "./assert": {
69
- "import": "./assert.js"
69
+ "default": "./assert.js"
70
70
  },
71
71
  "./deferror": {
72
- "import": "./deferror.js"
72
+ "default": "./deferror.js"
73
73
  },
74
74
  "./illegal-arguments": {
75
- "import": "./illegal-arguments.js"
75
+ "default": "./illegal-arguments.js"
76
76
  },
77
77
  "./illegal-arity": {
78
- "import": "./illegal-arity.js"
78
+ "default": "./illegal-arity.js"
79
79
  },
80
80
  "./illegal-state": {
81
- "import": "./illegal-state.js"
81
+ "default": "./illegal-state.js"
82
82
  },
83
83
  "./out-of-bounds": {
84
- "import": "./out-of-bounds.js"
84
+ "default": "./out-of-bounds.js"
85
85
  },
86
86
  "./unsupported": {
87
- "import": "./unsupported.js"
87
+ "default": "./unsupported.js"
88
88
  }
89
89
  },
90
90
  "thi.ng": {
91
91
  "year": 2018
92
92
  },
93
- "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
93
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
94
94
  }