Remove ExtError from use (removed from util)
This commit is contained in:
@@ -32,6 +32,6 @@
|
||||
"@polkadot/types": "^0.92.0-beta.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.2.1"
|
||||
"@polkadot/keyring": "^1.3.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.5.5",
|
||||
"@polkadot/types": "^0.92.0-beta.0",
|
||||
"@polkadot/util": "^1.2.1",
|
||||
"@polkadot/util-crypto": "^1.2.1"
|
||||
"@polkadot/util": "^1.3.0-beta.1",
|
||||
"@polkadot/util-crypto": "^1.3.0-beta.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.2.1"
|
||||
"@polkadot/keyring": "^1.3.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
"@polkadot/rpc-core": "^0.92.0-beta.0",
|
||||
"@polkadot/rpc-provider": "^0.92.0-beta.0",
|
||||
"@polkadot/types": "^0.92.0-beta.0",
|
||||
"@polkadot/util-crypto": "^1.2.1"
|
||||
"@polkadot/util-crypto": "^1.3.0-beta.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.2.1"
|
||||
"@polkadot/keyring": "^1.3.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"@polkadot/jsonrpc": "^0.92.0-beta.0",
|
||||
"@polkadot/rpc-provider": "^0.92.0-beta.0",
|
||||
"@polkadot/types": "^0.92.0-beta.0",
|
||||
"@polkadot/util": "^1.2.1",
|
||||
"@polkadot/util": "^1.3.0-beta.1",
|
||||
"rxjs": "^6.5.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import { catchError, map, publishReplay, refCount, switchMap } from 'rxjs/operat
|
||||
import interfaces from '@polkadot/jsonrpc';
|
||||
import { ClassOf, Option, StorageData, StorageKey, Vec, createClass } from '@polkadot/types';
|
||||
import { createTypeUnsafe } from '@polkadot/types/codec';
|
||||
import { ExtError, assert, isFunction, isNull, isNumber, logger } from '@polkadot/util';
|
||||
import { assert, isFunction, isNull, isNumber, logger } from '@polkadot/util';
|
||||
|
||||
const l = logger('rpc-core');
|
||||
|
||||
@@ -163,7 +163,7 @@ export default class Rpc implements RpcInterface {
|
||||
|
||||
l.error(message);
|
||||
|
||||
return throwError(new ExtError(message, (error as ExtError).code, undefined));
|
||||
return throwError(new Error(message));
|
||||
}),
|
||||
publishReplay(1), // create a Replay(1)
|
||||
refCount() // Unsubcribe WS when there are no more subscribers
|
||||
@@ -191,7 +191,7 @@ export default class Rpc implements RpcInterface {
|
||||
|
||||
l.error(message);
|
||||
|
||||
observer.error(new ExtError(message, (error as ExtError).code, undefined));
|
||||
observer.error(new Error(message));
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
@@ -28,15 +28,15 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.5.5",
|
||||
"@polkadot/api-metadata": "^0.92.0-beta.0",
|
||||
"@polkadot/util": "^1.2.1",
|
||||
"@polkadot/util-crypto": "^1.2.1",
|
||||
"@polkadot/util": "^1.3.0-beta.1",
|
||||
"@polkadot/util-crypto": "^1.3.0-beta.1",
|
||||
"@types/nock": "^10.0.3",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
"websocket": "^1.0.29"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.2.1",
|
||||
"@polkadot/keyring": "^1.3.0-beta.1",
|
||||
"mock-socket": "^9.0.0",
|
||||
"nock": "^11.3.1"
|
||||
}
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.5.5",
|
||||
"@polkadot/util": "^1.2.1",
|
||||
"@polkadot/util-crypto": "^1.2.1",
|
||||
"@polkadot/util": "^1.3.0-beta.1",
|
||||
"@polkadot/util-crypto": "^1.3.0-beta.1",
|
||||
"@types/memoizee": "^0.4.2",
|
||||
"memoizee": "^0.4.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.2.1"
|
||||
"@polkadot/keyring": "^1.3.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user