@thi.ng/errors 2.0.0 → 2.0.1

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@2.0.0...@thi.ng/errors@2.0.1) (2021-10-13)
7
+
8
+ **Note:** Version bump only for package @thi.ng/errors
9
+
10
+
11
+
12
+
13
+
6
14
  # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.3.4...@thi.ng/errors@2.0.0) (2021-10-12)
7
15
 
8
16
 
package/README.md CHANGED
@@ -54,10 +54,11 @@ ES module import:
54
54
 
55
55
  [Skypack documentation](https://docs.skypack.dev/)
56
56
 
57
- For NodeJS (v14.6+):
57
+ For Node.js REPL:
58
58
 
59
59
  ```text
60
- node --experimental-specifier-resolution=node --experimental-repl-await
60
+ # with flag only for < v16
61
+ node --experimental-repl-await
61
62
 
62
63
  > const errors = await import("@thi.ng/errors");
63
64
  ```
package/assert.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defError } from "./deferror";
1
+ import { defError } from "./deferror.js";
2
2
  // FIXME https://github.com/snowpackjs/snowpack/issues/3621#issuecomment-907731004
3
3
  import.meta.hot;
4
4
  export const AssertionError = defError(() => "Assertion failed");
@@ -1,4 +1,4 @@
1
- import { defError } from "./deferror";
1
+ import { defError } from "./deferror.js";
2
2
  export const IllegalArgumentError = defError(() => "illegal argument(s)");
3
3
  export const illegalArgs = (msg) => {
4
4
  throw new IllegalArgumentError(msg);
package/illegal-arity.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defError } from "./deferror";
1
+ import { defError } from "./deferror.js";
2
2
  export const IllegalArityError = defError(() => "illegal arity");
3
3
  export const illegalArity = (n) => {
4
4
  throw new IllegalArityError(n);
package/illegal-state.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defError } from "./deferror";
1
+ import { defError } from "./deferror.js";
2
2
  export const IllegalStateError = defError(() => "illegal state");
3
3
  export const illegalState = (msg) => {
4
4
  throw new IllegalStateError(msg);
package/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./deferror";
2
- export * from "./assert";
3
- export * from "./illegal-arguments";
4
- export * from "./illegal-arity";
5
- export * from "./illegal-state";
6
- export * from "./out-of-bounds";
7
- export * from "./unsupported";
1
+ export * from "./deferror.js";
2
+ export * from "./assert.js";
3
+ export * from "./illegal-arguments.js";
4
+ export * from "./illegal-arity.js";
5
+ export * from "./illegal-state.js";
6
+ export * from "./out-of-bounds.js";
7
+ export * from "./unsupported.js";
8
8
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./deferror";
2
- export * from "./assert";
3
- export * from "./illegal-arguments";
4
- export * from "./illegal-arity";
5
- export * from "./illegal-state";
6
- export * from "./out-of-bounds";
7
- export * from "./unsupported";
1
+ export * from "./deferror.js";
2
+ export * from "./assert.js";
3
+ export * from "./illegal-arguments.js";
4
+ export * from "./illegal-arity.js";
5
+ export * from "./illegal-state.js";
6
+ export * from "./out-of-bounds.js";
7
+ export * from "./unsupported.js";
package/out-of-bounds.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defError } from "./deferror";
1
+ import { defError } from "./deferror.js";
2
2
  export const OutOfBoundsError = defError(() => "index out of bounds");
3
3
  export const outOfBounds = (index) => {
4
4
  throw new OutOfBoundsError(index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/errors",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Custom error types and error factory functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,7 +34,7 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "devDependencies": {
37
- "@thi.ng/testament": "^0.1.0"
37
+ "@thi.ng/testament": "^0.1.1"
38
38
  },
39
39
  "keywords": [
40
40
  "assert",
@@ -48,6 +48,9 @@
48
48
  "process": false,
49
49
  "setTimeout": false
50
50
  },
51
+ "engines": {
52
+ "node": ">=12.7"
53
+ },
51
54
  "files": [
52
55
  "*.js",
53
56
  "*.d.ts"
@@ -81,5 +84,5 @@
81
84
  "thi.ng": {
82
85
  "year": 2018
83
86
  },
84
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
87
+ "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
85
88
  }
package/unsupported.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defError } from "./deferror";
1
+ import { defError } from "./deferror.js";
2
2
  export const UnsupportedOperationError = defError(() => "unsupported operation");
3
3
  export const unsupported = (msg) => {
4
4
  throw new UnsupportedOperationError(msg);