File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " graphql_client_web"
3
- version = " 0.1.0 "
3
+ version = " 0.5.1 "
4
4
authors = [
" Tom Houlé <[email protected] >" ]
5
5
edition = " 2018"
6
6
Original file line number Diff line number Diff line change 4
4
5
5
// #![deny(warnings)]
6
6
#![ deny( missing_docs) ]
7
+ #![ feature( non_exhaustive) ]
7
8
8
9
#[ macro_use]
9
10
pub extern crate graphql_client;
10
11
#[ macro_use]
11
12
extern crate wasm_bindgen;
12
13
14
+ pub use graphql_client:: GraphQLQuery ;
13
15
use failure:: * ;
14
16
use futures:: { Future , IntoFuture } ;
15
- pub use graphql_client:: GraphQLQuery ;
16
17
use log:: * ;
17
- use wasm_bindgen:: JsCast ;
18
- use wasm_bindgen:: JsValue ;
18
+ use std:: collections:: HashMap ;
19
19
use wasm_bindgen_futures:: JsFuture ;
20
+ use wasm_bindgen:: { JsCast , JsValue } ;
20
21
21
22
/// The main interface to the library.
22
23
///
@@ -27,6 +28,7 @@ use wasm_bindgen_futures::JsFuture;
27
28
/// - use it to perform queries with the [call] method
28
29
pub struct Client {
29
30
endpoint : String ,
31
+ headers : HashMap < String , String > ,
30
32
}
31
33
32
34
/// All the ways a request can go wrong.
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ use graphql_client_web::Client;
9
9
use wasm_bindgen:: JsValue ;
10
10
use wasm_bindgen_test:: * ;
11
11
12
- use std:: panic;
13
-
14
12
use wasm_bindgen_test:: wasm_bindgen_test_configure;
15
13
16
14
wasm_bindgen_test_configure ! ( run_in_browser) ;
You can’t perform that action at this time.
0 commit comments