File tree Expand file tree Collapse file tree 12 files changed +258
-254
lines changed Expand file tree Collapse file tree 12 files changed +258
-254
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ module.exports = {
44 ...base ,
55 parserOptions : {
66 ...base . parserOptions ,
7- extraFileExtensions : [ '*.d.ts' ] ,
87 project : [
98 './tsconfig.eslint.json'
109 ]
Original file line number Diff line number Diff line change 3333 "@babel/core" : " ^7.5.5" ,
3434 "@babel/register" : " ^7.5.5" ,
3535 "@babel/runtime" : " ^7.5.5" ,
36- "@polkadot/dev" : " ^0.31.0-beta.6 " ,
37- "@polkadot/ts" : " ^0.1.70 " ,
36+ "@polkadot/dev" : " ^0.31.0-beta.7 " ,
37+ "@polkadot/ts" : " ^0.1.71 " ,
3838 "gh-pages" : " ^2.1.1"
3939 }
4040}
Original file line number Diff line number Diff line change 3232 "@polkadot/types" : " ^0.91.0-beta.21"
3333 },
3434 "devDependencies" : {
35- "@polkadot/keyring" : " ^1.2.0-beta.6 "
35+ "@polkadot/keyring" : " ^1.2.0-beta.7 "
3636 }
3737}
Original file line number Diff line number Diff line change 2828 "dependencies" : {
2929 "@babel/runtime" : " ^7.5.5" ,
3030 "@polkadot/types" : " ^0.91.0-beta.21" ,
31- "@polkadot/util" : " ^1.2.0-beta.6 " ,
32- "@polkadot/util-crypto" : " ^1.2.0-beta.6 "
31+ "@polkadot/util" : " ^1.2.0-beta.7 " ,
32+ "@polkadot/util-crypto" : " ^1.2.0-beta.7 "
3333 },
3434 "devDependencies" : {
35- "@polkadot/keyring" : " ^1.2.0-beta.6 "
35+ "@polkadot/keyring" : " ^1.2.0-beta.7 "
3636 }
3737}
Original file line number Diff line number Diff line change 3232 "@polkadot/rpc-core" : " ^0.91.0-beta.21" ,
3333 "@polkadot/rpc-provider" : " ^0.91.0-beta.21" ,
3434 "@polkadot/types" : " ^0.91.0-beta.21" ,
35- "@polkadot/util-crypto" : " ^1.2.0-beta.6 "
35+ "@polkadot/util-crypto" : " ^1.2.0-beta.7 "
3636 },
3737 "devDependencies" : {
38- "@polkadot/keyring" : " ^1.2.0-beta.6 "
38+ "@polkadot/keyring" : " ^1.2.0-beta.7 "
3939 }
4040}
Original file line number Diff line number Diff line change 1- /* eslint-disable no-dupe-class-members */
21// Copyright 2017-2019 @polkadot/api authors & contributors
32// This software may be modified and distributed under the terms
43// of the Apache-2.0 license. See the LICENSE file for details.
Original file line number Diff line number Diff line change @@ -36,26 +36,24 @@ describeE2E({
3636 } ) ;
3737
3838 // https://github.com/polkadot-js/api/issues/846
39- it ( 'handles toJSON with no issues' , async ( done ) : Promise < ( ) => void > => {
40- return (
41- api . rpc . chain . getBlock ( '0x85c62b581f38cb81c3e443d34392672beb1fb877017fd7237cc87704113259dc' , ( result : SignedBlock ) : void => {
42- const failed : Extrinsic [ ] = result . block . extrinsics . filter ( ( extrinsic : Extrinsic ) : boolean => {
43- try {
44- const json = extrinsic . method . toJSON ( ) ;
45-
46- console . error ( json ) ;
47-
48- return false ;
49- } catch ( error ) {
50- console . log ( extrinsic . method ) ;
51- console . log ( extrinsic . method . keys ( ) ) ;
52- console . error ( error ) ;
53- return true ;
54- }
55- } ) ;
56- expect ( failed ) . toBeTruthy ( ) ;
57- done ( ) ;
58- } )
59- ) ;
39+ it ( 'handles toJSON with no issues' , ( done ) : Promise < ( ) => void > => {
40+ return api . rpc . chain . getBlock ( '0x85c62b581f38cb81c3e443d34392672beb1fb877017fd7237cc87704113259dc' , ( result : SignedBlock ) : void => {
41+ const failed : Extrinsic [ ] = result . block . extrinsics . filter ( ( extrinsic : Extrinsic ) : boolean => {
42+ try {
43+ const json = extrinsic . method . toJSON ( ) ;
44+
45+ console . error ( json ) ;
46+
47+ return false ;
48+ } catch ( error ) {
49+ console . log ( extrinsic . method ) ;
50+ console . log ( extrinsic . method . keys ( ) ) ;
51+ console . error ( error ) ;
52+ return true ;
53+ }
54+ } ) ;
55+ expect ( failed ) . toBeTruthy ( ) ;
56+ done ( ) ;
57+ } ) ;
6058 } ) ;
6159} ) ;
Original file line number Diff line number Diff line change 3030 "@polkadot/jsonrpc" : " ^0.91.0-beta.21" ,
3131 "@polkadot/rpc-provider" : " ^0.91.0-beta.21" ,
3232 "@polkadot/types" : " ^0.91.0-beta.21" ,
33- "@polkadot/util" : " ^1.2.0-beta.6 " ,
34- "rxjs" : " ^6.5.2 "
33+ "@polkadot/util" : " ^1.2.0-beta.7 " ,
34+ "rxjs" : " ^6.5.3 "
3535 }
3636}
Original file line number Diff line number Diff line change 2828 "dependencies" : {
2929 "@babel/runtime" : " ^7.5.5" ,
3030 "@polkadot/api-metadata" : " ^0.91.0-beta.21" ,
31- "@polkadot/util" : " ^1.2.0-beta.6 " ,
32- "@polkadot/util-crypto" : " ^1.2.0-beta.6 " ,
31+ "@polkadot/util" : " ^1.2.0-beta.7 " ,
32+ "@polkadot/util-crypto" : " ^1.2.0-beta.7 " ,
3333 "@types/nock" : " ^10.0.3" ,
3434 "eventemitter3" : " ^4.0.0" ,
3535 "isomorphic-fetch" : " ^2.2.1" ,
3636 "websocket" : " ^1.0.29"
3737 },
3838 "devDependencies" : {
39- "@polkadot/keyring" : " ^1.2.0-beta.6 " ,
39+ "@polkadot/keyring" : " ^1.2.0-beta.7 " ,
4040 "mock-socket" : " ^9.0.0" ,
41- "nock" : " ^10.0.4 "
41+ "nock" : " ^11.3.1 "
4242 }
4343}
Original file line number Diff line number Diff line change 2727 "homepage" : " https://github.com/polkadot-js/api/tree/master/packages/types#readme" ,
2828 "dependencies" : {
2929 "@babel/runtime" : " ^7.5.5" ,
30- "@polkadot/util" : " ^1.2.0-beta.6 " ,
31- "@polkadot/util-crypto" : " ^1.2.0-beta.6 " ,
30+ "@polkadot/util" : " ^1.2.0-beta.7 " ,
31+ "@polkadot/util-crypto" : " ^1.2.0-beta.7 " ,
3232 "@types/memoizee" : " ^0.4.2" ,
3333 "memoizee" : " ^0.4.14"
3434 },
3535 "devDependencies" : {
36- "@polkadot/keyring" : " ^1.2.0-beta.6 "
36+ "@polkadot/keyring" : " ^1.2.0-beta.7 "
3737 }
3838}
You can’t perform that action at this time.
0 commit comments