@jbrowse/plugin-authentication 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
4
- export declare type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
3
+ export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
4
+ export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
5
5
  export default DropboxOAuthConfigSchema;
@@ -31,7 +31,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
31
31
  storeToken(token: string): void;
32
32
  removeToken(): void;
33
33
  retrieveToken(): string | null;
34
- validateToken(token: string, location: UriLocation): Promise<string>;
34
+ validateToken(token: string, loc: UriLocation): Promise<string>;
35
35
  } & {
36
36
  getToken(location?: UriLocation | undefined): Promise<string>;
37
37
  } & {
@@ -58,7 +58,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
58
58
  };
59
59
  }>;
60
60
  } & {
61
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
61
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
62
62
  } & {
63
63
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
64
64
  } & {
@@ -94,5 +94,5 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
94
94
  validateToken(token: string, location: UriLocation): Promise<string>;
95
95
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
96
96
  export default stateModelFactory;
97
- export declare type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
98
- export declare type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
97
+ export type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
98
+ export type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const ExternalTokenConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
4
- export declare type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
3
+ export type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
4
+ export type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
5
5
  export default ExternalTokenConfigSchema;
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
26
26
  storeToken(token: string): void;
27
27
  removeToken(): void;
28
28
  retrieveToken(): string | null;
29
- validateToken(token: string, location: UriLocation): Promise<string>;
29
+ validateToken(token: string, loc: UriLocation): Promise<string>;
30
30
  } & {
31
31
  getToken(location?: UriLocation | undefined): Promise<string>;
32
32
  } & {
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
53
53
  };
54
54
  }>;
55
55
  } & {
56
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
56
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
57
57
  } & {
58
58
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
59
59
  } & {
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
63
63
  validateToken(token: string, location: UriLocation): Promise<string>;
64
64
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
65
65
  export default stateModelFactory;
66
- export declare type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
67
- export declare type ExternalTokenModel = Instance<ExternalTokenStateModel>;
66
+ export type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
67
+ export type ExternalTokenModel = Instance<ExternalTokenStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
4
- export declare type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
3
+ export type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
4
+ export type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
5
5
  export default GoogleDriveOAuthConfigSchema;
@@ -43,7 +43,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
43
43
  storeToken(token: string): void;
44
44
  removeToken(): void;
45
45
  retrieveToken(): string | null;
46
- validateToken(token: string, location: UriLocation): Promise<string>;
46
+ validateToken(token: string, loc: UriLocation): Promise<string>;
47
47
  } & {
48
48
  getToken(location?: UriLocation | undefined): Promise<string>;
49
49
  } & {
@@ -70,7 +70,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
70
70
  };
71
71
  }>;
72
72
  } & {
73
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
73
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
74
74
  } & {
75
75
  openLocation(location: UriLocation): RemoteFileWithRangeCache;
76
76
  } & {
@@ -107,5 +107,5 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
107
107
  validateToken(token: string, location: UriLocation): Promise<string>;
108
108
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
109
109
  export default stateModelFactory;
110
- export declare type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
111
- export declare type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
110
+ export type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
111
+ export type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
4
- export declare type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
3
+ export type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
4
+ export type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
5
5
  export default HTTPBasicConfigSchema;
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
26
26
  storeToken(token: string): void;
27
27
  removeToken(): void;
28
28
  retrieveToken(): string | null;
29
- validateToken(token: string, location: UriLocation): Promise<string>;
29
+ validateToken(token: string, loc: UriLocation): Promise<string>;
30
30
  } & {
31
31
  getToken(location?: UriLocation | undefined): Promise<string>;
32
32
  } & {
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
53
53
  };
54
54
  }>;
55
55
  } & {
56
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
56
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
57
57
  } & {
58
58
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
59
59
  } & {
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
63
63
  validateToken(token: string, location: UriLocation): Promise<string>;
64
64
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
65
65
  export default stateModelFactory;
66
- export declare type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
67
- export declare type HTTPBasicModel = Instance<HTTPBasicStateModel>;
66
+ export type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
67
+ export type HTTPBasicModel = Instance<HTTPBasicStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const OAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
4
- export declare type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
3
+ export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
4
+ export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
5
5
  export default OAuthConfigSchema;
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
26
26
  storeToken(token: string): void;
27
27
  removeToken(): void;
28
28
  retrieveToken(): string | null;
29
- validateToken(token: string, location: UriLocation): Promise<string>;
29
+ validateToken(token: string, loc: UriLocation): Promise<string>;
30
30
  } & {
31
31
  getToken(location?: UriLocation | undefined): Promise<string>;
32
32
  } & {
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
53
53
  };
54
54
  }>;
55
55
  } & {
56
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
56
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
57
57
  } & {
58
58
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
59
59
  } & {
@@ -87,5 +87,5 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
87
87
  validateToken(token: string, location: UriLocation): Promise<string>;
88
88
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
89
89
  export default stateModelFactory;
90
- export declare type OAuthStateModel = ReturnType<typeof stateModelFactory>;
91
- export declare type OAuthModel = Instance<OAuthStateModel>;
90
+ export type OAuthStateModel = ReturnType<typeof stateModelFactory>;
91
+ export type OAuthModel = Instance<OAuthStateModel>;
package/dist/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export default class AuthenticationPlugin extends Plugin {
34
34
  storeToken(token: string): void;
35
35
  removeToken(): void;
36
36
  retrieveToken(): string | null;
37
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
37
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
38
38
  } & {
39
39
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
40
40
  } & {
@@ -61,7 +61,7 @@ export default class AuthenticationPlugin extends Plugin {
61
61
  };
62
62
  }>;
63
63
  } & {
64
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
64
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
65
65
  } & {
66
66
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
67
67
  } & {
@@ -115,7 +115,7 @@ export default class AuthenticationPlugin extends Plugin {
115
115
  storeToken(token: string): void;
116
116
  removeToken(): void;
117
117
  retrieveToken(): string | null;
118
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
118
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
119
119
  } & {
120
120
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
121
121
  } & {
@@ -142,7 +142,7 @@ export default class AuthenticationPlugin extends Plugin {
142
142
  };
143
143
  }>;
144
144
  } & {
145
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
145
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
146
146
  } & {
147
147
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
148
148
  } & {
@@ -176,7 +176,7 @@ export default class AuthenticationPlugin extends Plugin {
176
176
  storeToken(token: string): void;
177
177
  removeToken(): void;
178
178
  retrieveToken(): string | null;
179
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
179
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
180
180
  } & {
181
181
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
182
182
  } & {
@@ -203,7 +203,7 @@ export default class AuthenticationPlugin extends Plugin {
203
203
  };
204
204
  }>;
205
205
  } & {
206
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
206
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
207
207
  } & {
208
208
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
209
209
  } & {
@@ -240,7 +240,7 @@ export default class AuthenticationPlugin extends Plugin {
240
240
  storeToken(token: string): void;
241
241
  removeToken(): void;
242
242
  retrieveToken(): string | null;
243
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
243
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
244
244
  } & {
245
245
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
246
246
  } & {
@@ -267,7 +267,7 @@ export default class AuthenticationPlugin extends Plugin {
267
267
  };
268
268
  }>;
269
269
  } & {
270
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
270
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
271
271
  } & {
272
272
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
273
273
  } & {
@@ -330,7 +330,7 @@ export default class AuthenticationPlugin extends Plugin {
330
330
  storeToken(token: string): void;
331
331
  removeToken(): void;
332
332
  retrieveToken(): string | null;
333
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
333
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
334
334
  } & {
335
335
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
336
336
  } & {
@@ -357,7 +357,7 @@ export default class AuthenticationPlugin extends Plugin {
357
357
  };
358
358
  }>;
359
359
  } & {
360
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
360
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
361
361
  } & {
362
362
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
363
363
  } & {
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
4
- export declare type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
3
+ export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
4
+ export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
5
5
  export default DropboxOAuthConfigSchema;
@@ -31,7 +31,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
31
31
  storeToken(token: string): void;
32
32
  removeToken(): void;
33
33
  retrieveToken(): string | null;
34
- validateToken(token: string, location: UriLocation): Promise<string>;
34
+ validateToken(token: string, loc: UriLocation): Promise<string>;
35
35
  } & {
36
36
  getToken(location?: UriLocation | undefined): Promise<string>;
37
37
  } & {
@@ -58,7 +58,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
58
58
  };
59
59
  }>;
60
60
  } & {
61
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
61
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
62
62
  } & {
63
63
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
64
64
  } & {
@@ -94,5 +94,5 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
94
94
  validateToken(token: string, location: UriLocation): Promise<string>;
95
95
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
96
96
  export default stateModelFactory;
97
- export declare type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
98
- export declare type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
97
+ export type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
98
+ export type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const ExternalTokenConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
4
- export declare type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
3
+ export type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
4
+ export type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
5
5
  export default ExternalTokenConfigSchema;
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
26
26
  storeToken(token: string): void;
27
27
  removeToken(): void;
28
28
  retrieveToken(): string | null;
29
- validateToken(token: string, location: UriLocation): Promise<string>;
29
+ validateToken(token: string, loc: UriLocation): Promise<string>;
30
30
  } & {
31
31
  getToken(location?: UriLocation | undefined): Promise<string>;
32
32
  } & {
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
53
53
  };
54
54
  }>;
55
55
  } & {
56
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
56
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
57
57
  } & {
58
58
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
59
59
  } & {
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
63
63
  validateToken(token: string, location: UriLocation): Promise<string>;
64
64
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
65
65
  export default stateModelFactory;
66
- export declare type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
67
- export declare type ExternalTokenModel = Instance<ExternalTokenStateModel>;
66
+ export type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
67
+ export type ExternalTokenModel = Instance<ExternalTokenStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
4
- export declare type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
3
+ export type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
4
+ export type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
5
5
  export default GoogleDriveOAuthConfigSchema;
@@ -43,7 +43,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
43
43
  storeToken(token: string): void;
44
44
  removeToken(): void;
45
45
  retrieveToken(): string | null;
46
- validateToken(token: string, location: UriLocation): Promise<string>;
46
+ validateToken(token: string, loc: UriLocation): Promise<string>;
47
47
  } & {
48
48
  getToken(location?: UriLocation | undefined): Promise<string>;
49
49
  } & {
@@ -70,7 +70,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
70
70
  };
71
71
  }>;
72
72
  } & {
73
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
73
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
74
74
  } & {
75
75
  openLocation(location: UriLocation): RemoteFileWithRangeCache;
76
76
  } & {
@@ -107,5 +107,5 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
107
107
  validateToken(token: string, location: UriLocation): Promise<string>;
108
108
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
109
109
  export default stateModelFactory;
110
- export declare type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
111
- export declare type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
110
+ export type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
111
+ export type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
4
- export declare type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
3
+ export type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
4
+ export type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
5
5
  export default HTTPBasicConfigSchema;
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
26
26
  storeToken(token: string): void;
27
27
  removeToken(): void;
28
28
  retrieveToken(): string | null;
29
- validateToken(token: string, location: UriLocation): Promise<string>;
29
+ validateToken(token: string, loc: UriLocation): Promise<string>;
30
30
  } & {
31
31
  getToken(location?: UriLocation | undefined): Promise<string>;
32
32
  } & {
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
53
53
  };
54
54
  }>;
55
55
  } & {
56
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
56
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
57
57
  } & {
58
58
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
59
59
  } & {
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
63
63
  validateToken(token: string, location: UriLocation): Promise<string>;
64
64
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
65
65
  export default stateModelFactory;
66
- export declare type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
67
- export declare type HTTPBasicModel = Instance<HTTPBasicStateModel>;
66
+ export type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
67
+ export type HTTPBasicModel = Instance<HTTPBasicStateModel>;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
2
  declare const OAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
3
- export declare type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
4
- export declare type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
3
+ export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
4
+ export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
5
5
  export default OAuthConfigSchema;
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
26
26
  storeToken(token: string): void;
27
27
  removeToken(): void;
28
28
  retrieveToken(): string | null;
29
- validateToken(token: string, location: UriLocation): Promise<string>;
29
+ validateToken(token: string, loc: UriLocation): Promise<string>;
30
30
  } & {
31
31
  getToken(location?: UriLocation | undefined): Promise<string>;
32
32
  } & {
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
53
53
  };
54
54
  }>;
55
55
  } & {
56
- getFetcher(location?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
56
+ getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
57
57
  } & {
58
58
  openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
59
59
  } & {
@@ -87,5 +87,5 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
87
87
  validateToken(token: string, location: UriLocation): Promise<string>;
88
88
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
89
89
  export default stateModelFactory;
90
- export declare type OAuthStateModel = ReturnType<typeof stateModelFactory>;
91
- export declare type OAuthModel = Instance<OAuthStateModel>;
90
+ export type OAuthStateModel = ReturnType<typeof stateModelFactory>;
91
+ export type OAuthModel = Instance<OAuthStateModel>;
package/esm/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export default class AuthenticationPlugin extends Plugin {
34
34
  storeToken(token: string): void;
35
35
  removeToken(): void;
36
36
  retrieveToken(): string | null;
37
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
37
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
38
38
  } & {
39
39
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
40
40
  } & {
@@ -61,7 +61,7 @@ export default class AuthenticationPlugin extends Plugin {
61
61
  };
62
62
  }>;
63
63
  } & {
64
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
64
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
65
65
  } & {
66
66
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
67
67
  } & {
@@ -115,7 +115,7 @@ export default class AuthenticationPlugin extends Plugin {
115
115
  storeToken(token: string): void;
116
116
  removeToken(): void;
117
117
  retrieveToken(): string | null;
118
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
118
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
119
119
  } & {
120
120
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
121
121
  } & {
@@ -142,7 +142,7 @@ export default class AuthenticationPlugin extends Plugin {
142
142
  };
143
143
  }>;
144
144
  } & {
145
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
145
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
146
146
  } & {
147
147
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
148
148
  } & {
@@ -176,7 +176,7 @@ export default class AuthenticationPlugin extends Plugin {
176
176
  storeToken(token: string): void;
177
177
  removeToken(): void;
178
178
  retrieveToken(): string | null;
179
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
179
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
180
180
  } & {
181
181
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
182
182
  } & {
@@ -203,7 +203,7 @@ export default class AuthenticationPlugin extends Plugin {
203
203
  };
204
204
  }>;
205
205
  } & {
206
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
206
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
207
207
  } & {
208
208
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
209
209
  } & {
@@ -240,7 +240,7 @@ export default class AuthenticationPlugin extends Plugin {
240
240
  storeToken(token: string): void;
241
241
  removeToken(): void;
242
242
  retrieveToken(): string | null;
243
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
243
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
244
244
  } & {
245
245
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
246
246
  } & {
@@ -267,7 +267,7 @@ export default class AuthenticationPlugin extends Plugin {
267
267
  };
268
268
  }>;
269
269
  } & {
270
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
270
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
271
271
  } & {
272
272
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
273
273
  } & {
@@ -330,7 +330,7 @@ export default class AuthenticationPlugin extends Plugin {
330
330
  storeToken(token: string): void;
331
331
  removeToken(): void;
332
332
  retrieveToken(): string | null;
333
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
333
+ validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
334
334
  } & {
335
335
  getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
336
336
  } & {
@@ -357,7 +357,7 @@ export default class AuthenticationPlugin extends Plugin {
357
357
  };
358
358
  }>;
359
359
  } & {
360
- getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
360
+ getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
361
361
  } & {
362
362
  openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
363
363
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-authentication",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "JBrowse 2 Authentication",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -59,5 +59,5 @@
59
59
  "distModule": "esm/index.js",
60
60
  "srcModule": "src/index.ts",
61
61
  "module": "esm/index.js",
62
- "gitHead": "cf31db8d833117f8822510340664fb3f045975cb"
62
+ "gitHead": "896d175c5d9345049faea8e1155f243c912aac42"
63
63
  }
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`initialized correctly 1`] = `
4
- Object {
4
+ {
5
5
  "internetAccountId": "HTTPBasicTest",
6
6
  "type": "HTTPBasicInternetAccount",
7
7
  }