File tree Expand file tree Collapse file tree 4 files changed +40
-4
lines changed Expand file tree Collapse file tree 4 files changed +40
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ../../configs/base.tsconfig" ,
3
+ "compilerOptions" : {
4
+ "rootDir" : " src" ,
5
+ "outDir" : " lib"
6
+ },
7
+ "include" : [
8
+ " src"
9
+ ]
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " tsp-typescript-client" ,
3
+ "version" : " 0.0.0" ,
4
+ "description" : " Trace Server Protocol client written in TypeScript" ,
5
+ "author" : " Ericsson and others" ,
6
+ "publishConfig" : {
7
+ "access" : " public"
8
+ },
9
+ "keywords" : [
10
+ " tsp" ,
11
+ " trace server protocol" ,
12
+ " tracing" ,
13
+ " trace"
14
+ ],
15
+ "license" : " Apache-2.0" ,
16
+ "repository" : {
17
+ "type" : " git" ,
18
+ "url" : " https://github.com/theia-ide/tsp-typescript-client"
19
+ },
20
+ "bugs" : {
21
+ "url" : " https://github.com/theia-ide/tsp-typescript-client/issues"
22
+ },
23
+ "homepage" : " https://github.com/theia-ide/tsp-typescript-client" ,
24
+ "files" : [
25
+ " lib"
26
+ ]
27
+ }
Original file line number Diff line number Diff line change 16
16
17
17
import { EntryHeader } from '../tree' ;
18
18
import { GenericEntryResponse } from './entry-response' ;
19
- import { TimeGraphEntry , TimeGraphRow } from '../timegraph' ;
20
- import { GenericResponse } from './responses' ;
19
+ import { TimeGraphEntry } from '../timegraph' ;
21
20
22
21
/**
23
22
* Time graph specific entry response extends the GenericEntryResponse.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class RestClient {
37
37
* @param parameters Query parameters. The string should be in this format: key1=value1&key2=value2
38
38
*/
39
39
public static async get ( url : string , parameters ?: string ) : Promise < any > {
40
- const getUrl = parameters . length > 0 ? url + '?' + parameters : url ;
40
+ const getUrl = parameters !== undefined && parameters . length > 0 ? url + '?' + parameters : url ;
41
41
return this . performRequest ( 'get' , getUrl ) ;
42
42
}
43
43
@@ -65,7 +65,7 @@ export class RestClient {
65
65
* @param parameters Query parameters. The string should be in this format: key1=value1&key2=value2
66
66
*/
67
67
public static async delete ( url : string , parameters ?: string ) : Promise < any > {
68
- const deleteUrl = parameters . length > 0 ? url + '?' + parameters : url ;
68
+ const deleteUrl = parameters !== undefined && parameters . length > 0 ? url + '?' + parameters : url ;
69
69
return this . performRequest ( 'delete' , deleteUrl ) ;
70
70
}
71
71
}
You can’t perform that action at this time.
0 commit comments