Skip to content

Commit 0b8474d

Browse files
Address reviewer feedback: update version and simplify auth
- Update package.json version to 0.7.0 - Simplify _auth() to only use username and password (remove fallbacks) - Simplify _makeRequest to directly use this._auth()
1 parent 0edd427 commit 0b8474d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

components/adversus/adversus.app.mjs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default {
2727
*/
2828
_auth() {
2929
return {
30-
username: this.$auth.username || this.$auth.api_key,
31-
password: this.$auth.password || this.$auth.api_secret,
30+
username: this.$auth.username,
31+
password: this.$auth.password,
3232
};
3333
},
3434
/**
@@ -50,14 +50,10 @@ export default {
5050
async _makeRequest({
5151
$ = this, path, method = "GET", ...opts
5252
}) {
53-
const auth = this._auth();
5453
return axios($, {
5554
method,
5655
url: this._baseUrl() + path,
57-
auth: {
58-
username: auth.username,
59-
password: auth.password,
60-
},
56+
auth: this._auth(),
6157
...opts,
6258
});
6359
},

components/adversus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/adversus",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "Pipedream adversus Components",
55
"main": "adversus.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)