File tree Expand file tree Collapse file tree 3 files changed +23
-5
lines changed Expand file tree Collapse file tree 3 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,14 @@ declare module OpenEO {
197
197
* @hideconstructor
198
198
*/
199
199
export class Environment {
200
+ /**
201
+ * The axios instance to use for HTTP requests.
202
+ *
203
+ *
204
+ * @type {object }
205
+ * @static
206
+ */
207
+ static axios : object ;
200
208
/**
201
209
* Returns the name of the Environment, `Node` or `Browser`.
202
210
*
@@ -829,7 +837,7 @@ declare module OpenEO {
829
837
protected level : string | null ;
830
838
/**
831
839
* @protected
832
- * @type {Set<String > }
840
+ * @type {Set<string > }
833
841
*/
834
842
protected missing : Set < string > ;
835
843
/**
Original file line number Diff line number Diff line change
1
+ let Environment = null ;
1
2
if ( typeof window === 'undefined' ) {
2
- module . exports = require ( './node' ) ;
3
+ Environment = require ( './node' ) ;
3
4
}
4
5
else {
5
- module . exports = require ( './browser' ) ;
6
- }
6
+ Environment = require ( './browser' ) ;
7
+ }
8
+ /**
9
+ * The axios instance to use for HTTP requests.
10
+ *
11
+ * @type {object }
12
+ * @static
13
+ */
14
+ Environment . axios = require ( 'axios' ) ;
15
+
16
+ module . exports = Environment ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Logs {
35
35
this . level = level ;
36
36
/**
37
37
* @protected
38
- * @type {Set<String > }
38
+ * @type {Set<string > }
39
39
*/
40
40
this . missing = new Set ( ) ;
41
41
}
You can’t perform that action at this time.
0 commit comments