Skip to content

Commit 3ca44b5

Browse files
committed
fix(scrapeless): fix asynchronous parameter structure
1 parent df8a3b7 commit 3ca44b5

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

components/scrapeless/actions/crawler/crawler.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "scrapeless-crawler",
55
name: "Crawler",
66
description: "Crawl any website at scale and say goodbye to blocks. [See the documentation](https://apidocs.scrapeless.com/api-17509010).",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
scrapeless,
@@ -29,7 +29,7 @@ export default {
2929
async run({ $ }) {
3030
const {
3131
scrapeless, apiServer, ...inputProps
32-
} = this;
32+
} = await this;
3333

3434
const browserOptions = {
3535
"proxy_country": "ANY",

components/scrapeless/actions/scraping-api/scraping-api.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "scrapeless-scraping-api",
55
name: "Scraping API",
66
description: "Endpoints for fresh, structured data from 100+ popular sites. [See the documentation](https://apidocs.scrapeless.com/api-12919045).",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
scrapeless,
@@ -25,7 +25,7 @@ export default {
2525
async run({ $ }) {
2626
const {
2727
scrapeless, apiServer, ...inputProps
28-
} = this;
28+
} = await this;
2929

3030
const MAX_RETRIES = 3;
3131
// 10 seconds

components/scrapeless/actions/universal-scraping-api/universal-scraping-api.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "scrapeless-universal-scraping-api",
66
name: "Universal Scraping API",
77
description: "Access any website at scale and say goodbye to blocks. [See the documentation](https://apidocs.scrapeless.com/api-11949854).",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
scrapeless,
@@ -27,7 +27,7 @@ export default {
2727
const {
2828
scrapeless,
2929
apiServer, ...inputProps
30-
} = this;
30+
} = await this;
3131

3232
if (apiServer === "webUnlocker") {
3333
const response = await scrapeless._scrapelessClient().universal.scrape({

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)