@versori/run 0.2.0-alpha.6 → 0.2.0-alpha.7
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.
|
@@ -131,13 +131,13 @@ export class VersoriRoundTripperFactory {
|
|
|
131
131
|
const _input = this.changeRequestInit(input, conn);
|
|
132
132
|
switch (conn.credentials[0].authSchemeConfig.type) {
|
|
133
133
|
case 'api-key':
|
|
134
|
-
return (await this.apiKeyFetcher(conn,
|
|
134
|
+
return (await this.apiKeyFetcher(conn, fn))(_input, init);
|
|
135
135
|
case 'basic-auth':
|
|
136
|
-
return (await this.basicAuthFetcher(conn,
|
|
136
|
+
return (await this.basicAuthFetcher(conn, fn))(_input, init);
|
|
137
137
|
case 'jwt-bearer':
|
|
138
|
-
return (await this.bearerTokenFetcher(conn,
|
|
138
|
+
return (await this.bearerTokenFetcher(conn, fn))(_input, init);
|
|
139
139
|
case 'oauth2':
|
|
140
|
-
return (await this.oauth2Fetcher(conn,
|
|
140
|
+
return (await this.oauth2Fetcher(conn, fn))(_input, init);
|
|
141
141
|
default:
|
|
142
142
|
return fn(_input, init);
|
|
143
143
|
}
|
package/package.json
CHANGED
|
@@ -134,13 +134,13 @@ class VersoriRoundTripperFactory {
|
|
|
134
134
|
const _input = this.changeRequestInit(input, conn);
|
|
135
135
|
switch (conn.credentials[0].authSchemeConfig.type) {
|
|
136
136
|
case 'api-key':
|
|
137
|
-
return (await this.apiKeyFetcher(conn,
|
|
137
|
+
return (await this.apiKeyFetcher(conn, fn))(_input, init);
|
|
138
138
|
case 'basic-auth':
|
|
139
|
-
return (await this.basicAuthFetcher(conn,
|
|
139
|
+
return (await this.basicAuthFetcher(conn, fn))(_input, init);
|
|
140
140
|
case 'jwt-bearer':
|
|
141
|
-
return (await this.bearerTokenFetcher(conn,
|
|
141
|
+
return (await this.bearerTokenFetcher(conn, fn))(_input, init);
|
|
142
142
|
case 'oauth2':
|
|
143
|
-
return (await this.oauth2Fetcher(conn,
|
|
143
|
+
return (await this.oauth2Fetcher(conn, fn))(_input, init);
|
|
144
144
|
default:
|
|
145
145
|
return fn(_input, init);
|
|
146
146
|
}
|