@thi.ng/errors 2.0.0 → 2.0.4

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,41 @@
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.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@2.0.3...@thi.ng/errors@2.0.4) (2021-10-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * [#324](https://github.com/thi-ng/umbrella/issues/324) update snowpack issue workaround ([6dfbf71](https://github.com/thi-ng/umbrella/commit/6dfbf7120faaea7ef6af4f755e1a609cb49d902a)), closes [snowpackjs/snowpack#3621](https://github.com/snowpackjs/snowpack/issues/3621)
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@2.0.2...@thi.ng/errors@2.0.3) (2021-10-15)
18
+
19
+ **Note:** Version bump only for package @thi.ng/errors
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@2.0.1...@thi.ng/errors@2.0.2) (2021-10-15)
26
+
27
+ **Note:** Version bump only for package @thi.ng/errors
28
+
29
+
30
+
31
+
32
+
33
+ ## [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)
34
+
35
+ **Note:** Version bump only for package @thi.ng/errors
36
+
37
+
38
+
39
+
40
+
6
41
  # [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
42
 
8
43
 
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,6 +1,4 @@
1
- import { defError } from "./deferror";
2
- // FIXME https://github.com/snowpackjs/snowpack/issues/3621#issuecomment-907731004
3
- import.meta.hot;
1
+ import { defError } from "./deferror.js";
4
2
  export const AssertionError = defError(() => "Assertion failed");
5
3
  /**
6
4
  * Takes a `test` result or predicate function without args and throws
@@ -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.4",
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.4"
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": "9ff00a103f76cc4917ef3f244132e218f2300a05"
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);