Skip to content

Commit d8e61b4

Browse files
author
ionut.stan
committed
Fixed minified Exception class to keep type information.
1 parent 186ef2c commit d8e61b4

File tree

6 files changed

+112
-44
lines changed

6 files changed

+112
-44
lines changed

builds/browser/es5/jsonrpc.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/browser/es5/jsonrpc.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/browser/es7/jsonrpc.min.js

Lines changed: 102 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/browser/es7/jsonrpc.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jsonrpc-bidirectional",
33
"description": "Bidirectional JSONRPC over web sockets or HTTP with extensive plugin support.",
4-
"version": "5.0.0",
4+
"version": "5.1.1",
55
"scripts": {
66
"build": "node build.js",
77
"test": "node --expose-gc --max-old-space-size=1024 tests/main.js",
@@ -34,6 +34,7 @@
3434
"child_process": false
3535
},
3636
"dependencies": {
37+
"extendable-error-class": "^0.1.1",
3738
"node-fetch": "^1.6.3"
3839
},
3940
"optionalDependencies": {

src/Exception.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
const ExtendableError = require("extendable-error-class");
2+
3+
14
/**
25
* Class representing the JSONRPC Exceptions.
36
* @class
47
* @extends Error
58
*/
69
module.exports =
7-
class Exception extends Error
10+
class Exception extends ExtendableError
811
{
912
/**
1013
* @param {string} strMessage

0 commit comments

Comments
 (0)