Skip to content

Commit

Permalink
version 0.1.1 -- better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentCicero committed Dec 23, 2016
1 parent 1bb7ef3 commit b70d71c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 65 deletions.
63 changes: 3 additions & 60 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,8 @@
# 0.2.0 -- handle 500 errors better
# 0.1.1 -- handle errors better

1. Handles 500/404/303 errors
1. Better error handling

# 0.1.8 -- bn formatting update

1. Bignumber formatting update

# 0.1.7 -- Better RPC error handling

1. Better RPC error handling

# 0.1.6 -- Strinigy RPC error

1. Added JSON.strinify for RPC error handling

# 0.1.5 -- format update

1. Tigher formatting enforcement
2. Small schema update

# 0.1.4 -- less dependencies

1. Better formatting
2. Less dependencies
3. ID generation done in house
4. 25kb less file size
5. More docs

# 0.1.2 -- config fixes

1. webpack config updates
2. build config updates

# 0.1.1 -- new packages

1. new ethjs-format
2. more docs

# 0.0.5 -- refactor

1. code cleanup
2. more coverage
3. better error handling
4. less dependencies

# 0.0.4 -- promises, louder errors, more tests

1. added promises
2. louder errors
3. more test coverage

# 0.0.3 -- options with debug logging and other features

1. added low level complete logging `new Eth(provider, { debug: false, logger: console, jsonSpace: 0 })`
2. more tests

# 0.0.2 -- handle eth_getFilterChanges during Block and Pending Tx filter

1. handle getFilterChanges during BlockFilter and PendingTxFilter.

# 0.0.1 -- ethjs-query
# 0.1.0 -- ethjs-rpc

1. Basic testing
2. Basic docs
Expand Down
2 changes: 1 addition & 1 deletion dist/ethjs-rpc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ethjs-rpc.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ethjs-rpc.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethjs-rpc",
"version": "0.1.0",
"version": "0.1.1",
"description": "A super simple module for querying the Ethereum RPC layer without formatting.",
"main": "lib/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ EthRPC.prototype.sendAsync = function sendAsync(payload, cb) {
const responseObject = response || {};

if (err || responseObject.error) {
const payloadErrorMessage = `[ethjs-rpc] ${(responseObject.error && 'rpc' || '')} error with payload ${JSON.stringify(payload, null, self.options.jsonSpace)} ${err || (JSON.stringify(response.error, null, self.options.jsonSpace))}`;
const payloadErrorMessage = `[ethjs-rpc] ${(responseObject.error && 'rpc' || '')} error with payload ${JSON.stringify(payload, null, self.options.jsonSpace)} ${err || (JSON.stringify(responseObject.error, null, self.options.jsonSpace))}`;
return cb(new Error(payloadErrorMessage), null);
}

Expand Down

0 comments on commit b70d71c

Please sign in to comment.