Skip to content

Commit f4b15db

Browse files
authored
Apify_oauth - update to import Apify changes (#18451)
* version updates * pnpm-lock.yaml * update * pnpm-lock.yaml * pnpm-lock.yaml
1 parent c8d25fa commit f4b15db

File tree

12 files changed

+30
-18
lines changed

12 files changed

+30
-18
lines changed

components/apify_oauth/actions/get-dataset-items/get-dataset-items.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-get-dataset-items",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,

components/apify_oauth/actions/run-actor/run-actor.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-run-actor",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,

components/apify_oauth/actions/run-task-synchronously/run-task-synchronously.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-run-task-synchronously",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,

components/apify_oauth/actions/scrape-single-url/scrape-single-url.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-scrape-single-url",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,

components/apify_oauth/actions/set-key-value-store-record/set-key-value-store-record.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-set-key-value-store-record",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import common from "@pipedream/apify";
2+
import { ApifyClient } from "apify-client";
23

34
export default {
45
type: "app",
@@ -8,12 +9,19 @@ export default {
89
},
910
methods: {
1011
...common.methods,
11-
_headers() {
12-
return {
13-
"Content-Type": "application/json",
14-
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
15-
"x-apify-integration-platform": "pipedream",
16-
};
12+
_client() {
13+
return new ApifyClient({
14+
token: this.$auth.oauth_access_token,
15+
requestInterceptors: [
16+
(config) => ({
17+
...config,
18+
headers: {
19+
...(config.headers || {}),
20+
"x-apify-integration-platform": "pipedream",
21+
},
22+
}),
23+
],
24+
});
1725
},
1826
},
1927
};

components/apify_oauth/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/apify_oauth",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Apify (OAuth) Components",
55
"main": "apify_oauth.app.mjs",
66
"keywords": [
@@ -13,6 +13,7 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/apify": "^0.3.0"
16+
"@pipedream/apify": "^0.3.1",
17+
"apify-client": "^2.17.0"
1718
}
1819
}

components/apify_oauth/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-new-finished-actor-run-instant",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,

components/apify_oauth/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
1111
export default {
1212
...others,
1313
key: "apify_oauth-new-finished-task-run-instant",
14-
version: "0.0.1",
14+
version: "0.0.2",
1515
name,
1616
description,
1717
type,

components/beeminder/beeminder.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

0 commit comments

Comments
 (0)