Skip to content

Commit 11c0028

Browse files
committed
Package/app updates
1 parent cb876f7 commit 11c0028

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

components/tess_ai_by_pareto/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/tess_ai_by_pareto",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Pipedream Tess AI by Pareto Components",
55
"main": "tess_ai_by_pareto.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1417
}
1518
}

components/tess_ai_by_pareto/tess_ai_by_pareto.app.mjs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { axios } from "@pipedream/platform";
33
export default {
44
type: "app",
55
app: "tess_ai_by_pareto",
6-
version: "0.0.{{ts}}",
76
propDefinitions: {
87
templateId: {
98
type: "string",
@@ -64,23 +63,17 @@ export default {
6463
},
6564
},
6665
methods: {
67-
authKeys() {
68-
console.log(Object.keys(this.$auth));
69-
},
7066
_baseUrl() {
7167
return "https://tess.pareto.io/api";
7268
},
73-
async _makeRequest(opts = {}) {
74-
const {
75-
$, method = "GET", path = "/", headers, ...otherOpts
76-
} = opts;
77-
return axios($ || this, {
78-
method,
69+
async _makeRequest({
70+
$ = this, path = "/", headers, ...otherOpts
71+
} = {}) {
72+
return axios($, {
7973
url: this._baseUrl() + path,
8074
headers: {
8175
...headers,
8276
"Authorization": `Bearer ${this.$auth.api_token}`,
83-
"Content-Type": "application/json",
8477
},
8578
...otherOpts,
8679
});

0 commit comments

Comments
 (0)