@pipedream/apify_oauth 0.1.1 → 1.0.0

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.
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
11
11
  export default {
12
12
  ...others,
13
13
  key: "apify_oauth-get-dataset-items",
14
- version: "0.0.2",
14
+ version: "0.0.4",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -1,5 +1,5 @@
1
1
  import app from "../../apify_oauth.app.mjs";
2
- import common from "@pipedream/apify/actions/run-task-synchronously/run-task-synchronously.mjs";
2
+ import common from "@pipedream/apify/actions/get-kvs-record/get-kvs-record.mjs";
3
3
 
4
4
  import { adjustPropDefinitions } from "../../common/utils.mjs";
5
5
 
@@ -10,7 +10,7 @@ const props = adjustPropDefinitions(others.props, app);
10
10
 
11
11
  export default {
12
12
  ...others,
13
- key: "apify_oauth-run-task-synchronously",
13
+ key: "apify_oauth-get-kvs-record",
14
14
  version: "0.0.2",
15
15
  name,
16
16
  description,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
11
11
  export default {
12
12
  ...others,
13
13
  key: "apify_oauth-run-actor",
14
- version: "0.0.2",
14
+ version: "1.0.0",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -0,0 +1,22 @@
1
+ import app from "../../apify_oauth.app.mjs";
2
+ import common from "@pipedream/apify/actions/run-task/run-task.mjs";
3
+
4
+ import { adjustPropDefinitions } from "../../common/utils.mjs";
5
+
6
+ const {
7
+ name, description, type, ...others
8
+ } = common;
9
+ const props = adjustPropDefinitions(others.props, app);
10
+
11
+ export default {
12
+ ...others,
13
+ key: "apify_oauth-run-task",
14
+ version: "1.0.0",
15
+ name,
16
+ description,
17
+ type,
18
+ props: {
19
+ apify: app,
20
+ ...props,
21
+ },
22
+ };
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
11
11
  export default {
12
12
  ...others,
13
13
  key: "apify_oauth-scrape-single-url",
14
- version: "0.0.2",
14
+ version: "0.0.4",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
11
11
  export default {
12
12
  ...others,
13
13
  key: "apify_oauth-set-key-value-store-record",
14
- version: "0.0.2",
14
+ version: "0.0.4",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -9,9 +9,12 @@ export default {
9
9
  },
10
10
  methods: {
11
11
  ...common.methods,
12
+ getAuthToken() {
13
+ return this.$auth.oauth_access_token;
14
+ },
12
15
  _client() {
13
16
  return new ApifyClient({
14
- token: this.$auth.oauth_access_token,
17
+ token: this.getAuthToken(),
15
18
  requestInterceptors: [
16
19
  (config) => ({
17
20
  ...config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/apify_oauth",
3
- "version": "0.1.1",
3
+ "version": "1.0.0",
4
4
  "description": "Pipedream Apify (OAuth) Components",
5
5
  "main": "apify_oauth.app.mjs",
6
6
  "keywords": [
@@ -13,7 +13,7 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@pipedream/apify": "^0.3.1",
16
+ "@pipedream/apify": "^2.0.1",
17
17
  "apify-client": "^2.17.0"
18
18
  }
19
19
  }
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
11
11
  export default {
12
12
  ...others,
13
13
  key: "apify_oauth-new-finished-actor-run-instant",
14
- version: "0.0.2",
14
+ version: "0.0.4",
15
15
  name,
16
16
  description,
17
17
  type,
@@ -11,7 +11,7 @@ const props = adjustPropDefinitions(others.props, app);
11
11
  export default {
12
12
  ...others,
13
13
  key: "apify_oauth-new-finished-task-run-instant",
14
- version: "0.0.2",
14
+ version: "0.0.4",
15
15
  name,
16
16
  description,
17
17
  type,