catch-match 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -66,7 +66,7 @@ const result = $try(() => {
66
66
  throw SyntaxError;
67
67
  }).catch(ReferenceError, () => {
68
68
  // noop
69
- }).catch([TypeError, SyntaxError], () => {
69
+ }).catch([TypeError, SyntaxError], (error) => {
70
70
  // to be called
71
71
  }).other((error) => {
72
72
  // noop
@@ -84,7 +84,7 @@ const result = $try(() => {
84
84
  return [1, 2, 3];
85
85
  }).catch(ReferenceError, () => {
86
86
  // noop
87
- }).catch([TypeError, SyntaxError], () => {
87
+ }).catch([TypeError, SyntaxError], (error) => {
88
88
  // to be called
89
89
  }).other((error) => {
90
90
  // noop
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catch-match",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "repository": {
5
5
  "url": "https://github.com/kobzarvs/catch-match"
6
6
  },