apify 3.6.0 → 3.6.1-beta.1
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.
- package/README.md +3 -3
- package/dist/actor.d.ts +1 -1
- package/package.json +119 -119
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
## Quick Start
|
|
9
9
|
|
|
10
10
|
This short tutorial will set you up to start using Apify SDK in a minute or two.
|
|
11
|
-
If you want to learn more, proceed to the [Apify Platform](https://docs.apify.com/sdk/js/docs/
|
|
11
|
+
If you want to learn more, proceed to the [Apify Platform](https://docs.apify.com/sdk/js/docs/concepts/actor-lifecycle)
|
|
12
12
|
guide that will take you step by step through running your Actor on Apify's platform.
|
|
13
13
|
|
|
14
14
|
Apify SDK requires [Node.js](https://nodejs.org/en/) 16 or later. Add Apify SDK to any Node.js project by running:
|
|
@@ -33,7 +33,7 @@ await Actor.setValue('OUTPUT', {
|
|
|
33
33
|
await Actor.exit();
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
> You can also install the [`crawlee`](https://npmjs.org/crawlee) module, as it now provides the crawlers that were previously exported by Apify SDK. If you don't plan to use crawlers in your Actors, then you don't need to install it. Keep in mind that neither `playwright` nor `puppeteer` are bundled with `crawlee` in order to reduce install size and allow greater flexibility. That's why we manually install it with NPM. You can choose one, both, or neither. For more information and example please check [`documentation.`](https://docs.apify.com/sdk/js/docs/
|
|
36
|
+
> You can also install the [`crawlee`](https://npmjs.org/crawlee) module, as it now provides the crawlers that were previously exported by Apify SDK. If you don't plan to use crawlers in your Actors, then you don't need to install it. Keep in mind that neither `playwright` nor `puppeteer` are bundled with `crawlee` in order to reduce install size and allow greater flexibility. That's why we manually install it with NPM. You can choose one, both, or neither. For more information and example please check [`documentation.`](https://docs.apify.com/sdk/js/docs/concepts/actor-lifecycle#running-crawlee-code-as-an-actor)
|
|
37
37
|
|
|
38
38
|
## Support
|
|
39
39
|
|
|
@@ -42,7 +42,7 @@ For questions, you can ask on [Stack Overflow](https://stackoverflow.com/questio
|
|
|
42
42
|
|
|
43
43
|
## Upgrading
|
|
44
44
|
|
|
45
|
-
Visit the [Upgrading Guide](https://docs.apify.com/sdk/js/docs/upgrading) to find out what changes you might want to make, and, if you encounter any issues, join our [Discord server](https://discord.gg/jyEM2PRvMU) for help!
|
|
45
|
+
Visit the [Upgrading Guide](https://docs.apify.com/sdk/js/docs/upgrading/upgrading-to-v3) to find out what changes you might want to make, and, if you encounter any issues, join our [Discord server](https://discord.gg/jyEM2PRvMU) for help!
|
|
46
46
|
|
|
47
47
|
## Contributing
|
|
48
48
|
|
package/dist/actor.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export interface ApifyEnv {
|
|
|
122
122
|
* Defines the path to a local directory where KeyValueStore, Dataset, and RequestQueue
|
|
123
123
|
* store their data. Typically, it is set to ./storage. If omitted, you should define the
|
|
124
124
|
* APIFY_TOKEN environment variable instead. See more info on combination of this and
|
|
125
|
-
* APIFY_TOKEN [here](https://docs.apify.com/sdk/js/docs/
|
|
125
|
+
* APIFY_TOKEN [here](https://docs.apify.com/sdk/js/docs/concepts/environment-variables#combinations-of-apify_local_storage_dir-and-apify_token)(CRAWLEE_STORAGE_DIR)
|
|
126
126
|
*/
|
|
127
127
|
localStorageDir: string | null;
|
|
128
128
|
/**
|
package/package.json
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "apify",
|
|
3
|
+
"version": "3.6.1-beta.1",
|
|
4
|
+
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=16.0.0"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.mjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
7
16
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"apify",
|
|
21
|
+
"headless",
|
|
22
|
+
"chrome",
|
|
23
|
+
"puppeteer",
|
|
24
|
+
"crawler",
|
|
25
|
+
"scraper"
|
|
26
|
+
],
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Apify",
|
|
29
|
+
"email": "support@apify.com",
|
|
30
|
+
"url": "https://apify.com"
|
|
31
|
+
},
|
|
32
|
+
"contributors": [
|
|
33
|
+
"Jan Curn <jan@apify.com>",
|
|
34
|
+
"Marek Trunkat <marek@apify.com>",
|
|
35
|
+
"Ondra Urban <ondra@apify.com>"
|
|
36
|
+
],
|
|
37
|
+
"license": "Apache-2.0",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/apify/apify-sdk-js"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/apify/apify-sdk-js/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://docs.apify.com/sdk/js",
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"!dist/tsconfig.build.tsbuildinfo"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"prepare": "husky",
|
|
52
|
+
"clean": "rimraf ./dist",
|
|
53
|
+
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
|
|
54
|
+
"fixApifyExport": "node ./scripts/temp_fix_apify_exports.mjs",
|
|
55
|
+
"build": "npm run clean && npm run compile && npm run fixApifyExport",
|
|
56
|
+
"prepublishOnly": "npm run build",
|
|
57
|
+
"ci:build": "npm run build",
|
|
58
|
+
"test": "vitest run --silent",
|
|
59
|
+
"test:e2e": "npm run test:e2e:sdk",
|
|
60
|
+
"test:e2e:sdk": "npm run test:e2e:sdk:tarball && node test/e2e/runSdkTests.mjs",
|
|
61
|
+
"test:e2e:sdk:tarball": "npm run build && mv $(npm pack | tail -n 1) test/e2e/apify.tgz",
|
|
62
|
+
"tsc-check-tests": "tsc --noEmit --project test/tsconfig.json",
|
|
63
|
+
"coverage": "vitest --coverage",
|
|
64
|
+
"lint": "eslint",
|
|
65
|
+
"lint:fix": "eslint --fix",
|
|
66
|
+
"format": "prettier --write .",
|
|
67
|
+
"format:check": "prettier --check ."
|
|
68
|
+
},
|
|
69
|
+
"lint-staged": {
|
|
70
|
+
"src/**/*": [
|
|
71
|
+
"eslint --fix"
|
|
36
72
|
],
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"type": "git",
|
|
40
|
-
"url": "git+https://github.com/apify/apify-sdk-js"
|
|
41
|
-
},
|
|
42
|
-
"bugs": {
|
|
43
|
-
"url": "https://github.com/apify/apify-sdk-js/issues"
|
|
44
|
-
},
|
|
45
|
-
"homepage": "https://docs.apify.com/sdk/js",
|
|
46
|
-
"files": [
|
|
47
|
-
"dist",
|
|
48
|
-
"!dist/tsconfig.build.tsbuildinfo"
|
|
73
|
+
"test/**/*": [
|
|
74
|
+
"eslint --fix"
|
|
49
75
|
],
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"@playwright/browser-chromium": "^1.46.0",
|
|
99
|
-
"@types/content-type": "^1.1.8",
|
|
100
|
-
"@types/fs-extra": "^11.0.4",
|
|
101
|
-
"@types/node": "^24.0.0",
|
|
102
|
-
"@types/semver": "^7.5.8",
|
|
103
|
-
"@types/tough-cookie": "^4.0.5",
|
|
104
|
-
"@types/ws": "^8.5.12",
|
|
105
|
-
"commitlint": "^20.0.0",
|
|
106
|
-
"crawlee": "^3.13.5",
|
|
107
|
-
"eslint": "^9.23.0",
|
|
108
|
-
"eslint-config-prettier": "^10.1.1",
|
|
109
|
-
"gen-esm-wrapper": "^1.1.3",
|
|
110
|
-
"globby": "^16.0.0",
|
|
111
|
-
"husky": "^9.1.7",
|
|
112
|
-
"lint-staged": "^16.0.0",
|
|
113
|
-
"playwright": "^1.46.0",
|
|
114
|
-
"prettier": "3.6.2",
|
|
115
|
-
"puppeteer": "^24.0.0",
|
|
116
|
-
"rimraf": "^6.0.1",
|
|
117
|
-
"tsx": "^4.16.5",
|
|
118
|
-
"typescript": "~5.9.0",
|
|
119
|
-
"typescript-eslint": "^8.28.0",
|
|
120
|
-
"vite-tsconfig-paths": "^6.0.0",
|
|
121
|
-
"vitest": "^3.0.0"
|
|
122
|
-
},
|
|
123
|
-
"packageManager": "npm@10.9.2"
|
|
76
|
+
"*": "prettier --write --ignore-unknown"
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@apify/consts": "^2.47.1",
|
|
80
|
+
"@apify/input_secrets": "^1.2.0",
|
|
81
|
+
"@apify/log": "^2.4.3",
|
|
82
|
+
"@apify/timeout": "^0.3.0",
|
|
83
|
+
"@apify/utilities": "^2.13.0",
|
|
84
|
+
"@crawlee/core": "^3.14.1",
|
|
85
|
+
"@crawlee/types": "^3.14.1",
|
|
86
|
+
"@crawlee/utils": "^3.14.1",
|
|
87
|
+
"apify-client": "^2.17.0",
|
|
88
|
+
"fs-extra": "^11.2.0",
|
|
89
|
+
"ow": "^0.28.2",
|
|
90
|
+
"semver": "^7.5.4",
|
|
91
|
+
"tslib": "^2.6.2",
|
|
92
|
+
"ws": "^8.18.0"
|
|
93
|
+
},
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"@apify/eslint-config": "^1.0.0",
|
|
96
|
+
"@apify/tsconfig": "^0.1.0",
|
|
97
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
98
|
+
"@playwright/browser-chromium": "^1.46.0",
|
|
99
|
+
"@types/content-type": "^1.1.8",
|
|
100
|
+
"@types/fs-extra": "^11.0.4",
|
|
101
|
+
"@types/node": "^24.0.0",
|
|
102
|
+
"@types/semver": "^7.5.8",
|
|
103
|
+
"@types/tough-cookie": "^4.0.5",
|
|
104
|
+
"@types/ws": "^8.5.12",
|
|
105
|
+
"commitlint": "^20.0.0",
|
|
106
|
+
"crawlee": "^3.13.5",
|
|
107
|
+
"eslint": "^9.23.0",
|
|
108
|
+
"eslint-config-prettier": "^10.1.1",
|
|
109
|
+
"gen-esm-wrapper": "^1.1.3",
|
|
110
|
+
"globby": "^16.0.0",
|
|
111
|
+
"husky": "^9.1.7",
|
|
112
|
+
"lint-staged": "^16.0.0",
|
|
113
|
+
"playwright": "^1.46.0",
|
|
114
|
+
"prettier": "3.6.2",
|
|
115
|
+
"puppeteer": "^24.0.0",
|
|
116
|
+
"rimraf": "^6.0.1",
|
|
117
|
+
"tsx": "^4.16.5",
|
|
118
|
+
"typescript": "~5.9.0",
|
|
119
|
+
"typescript-eslint": "^8.28.0",
|
|
120
|
+
"vite-tsconfig-paths": "^6.0.0",
|
|
121
|
+
"vitest": "^3.0.0"
|
|
122
|
+
},
|
|
123
|
+
"packageManager": "npm@10.9.2"
|
|
124
124
|
}
|