apify-cli 0.19.2-beta.8 → 0.19.2
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/package.json +111 -111
- package/src/lib/utils.js +9 -1
package/package.json
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
2
|
+
"name": "apify-cli",
|
|
3
|
+
"version": "0.19.2",
|
|
4
|
+
"description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "cross-env APIFY_CLI_SKIP_UPDATE_CHECK=1 vitest run",
|
|
8
|
+
"test-python": "cross-env APIFY_CLI_SKIP_UPDATE_CHECK=1 vitest run -t '.*\\[python\\]'",
|
|
9
|
+
"lint": "eslint src test",
|
|
10
|
+
"lint:fix": "eslint src test --fix",
|
|
11
|
+
"commands-md": "npm run manifest && oclif-dev readme",
|
|
12
|
+
"prepare-release": "npm run commands-md && npm run prod-shrinkwrap",
|
|
13
|
+
"prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
|
|
14
|
+
"manifest": "rm -f oclif.manifest.json && oclif-dev manifest",
|
|
15
|
+
"postinstall": "node \"./src/bin/run\" check-version && node ./src/lib/community"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src",
|
|
19
|
+
"oclif.manifest.json",
|
|
20
|
+
"index.js",
|
|
21
|
+
"package.json"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"apify": "./src/bin/run"
|
|
25
|
+
},
|
|
26
|
+
"contributors": [
|
|
27
|
+
"Jakub Drobník <jakub.drobnik@apify.com>",
|
|
28
|
+
"Jan Curn <jan@apify.com>"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/apify/apify-cli.git"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"apify",
|
|
36
|
+
"client",
|
|
37
|
+
"node",
|
|
38
|
+
"command",
|
|
39
|
+
"line",
|
|
40
|
+
"bash"
|
|
41
|
+
],
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "Apify",
|
|
44
|
+
"email": "support@apify.com",
|
|
45
|
+
"url": "https://www.apify.com"
|
|
46
|
+
},
|
|
47
|
+
"license": "Apache-2.0",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/apify/apify-cli/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/apify/apify-cli#readme",
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=16.0.0"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@apify/actor-templates": "^0.1.4",
|
|
57
|
+
"@apify/consts": "^2.23.0",
|
|
58
|
+
"@apify/input_schema": "^3.5.8",
|
|
59
|
+
"@apify/utilities": "^2.9.3",
|
|
60
|
+
"@crawlee/memory-storage": "^3.5.8",
|
|
61
|
+
"@oclif/command": "^1.8.36",
|
|
62
|
+
"@oclif/config": "^1.18.17",
|
|
63
|
+
"@oclif/errors": "^1.3.6",
|
|
64
|
+
"@oclif/plugin-commands": "^2.1.0",
|
|
65
|
+
"@oclif/plugin-help": "^5.1.12",
|
|
66
|
+
"@root/walk": "^1.1.0",
|
|
67
|
+
"adm-zip": "^0.5.10",
|
|
68
|
+
"ajv": "^8.12.0",
|
|
69
|
+
"apify-client": "^2.9.0",
|
|
70
|
+
"archiver-promise": "^1.0.0",
|
|
71
|
+
"axios": "^1.6.7",
|
|
72
|
+
"chalk": "^4.1.2",
|
|
73
|
+
"computer-name": "^0.1.0",
|
|
74
|
+
"configparser": "^0.3.10",
|
|
75
|
+
"cors": "^2.8.5",
|
|
76
|
+
"detect-indent": "^6.1.0",
|
|
77
|
+
"escape-string-regexp": "^4.0.0",
|
|
78
|
+
"express": "^4.18.2",
|
|
79
|
+
"globby": "^11.1.0",
|
|
80
|
+
"handlebars": "^4.7.8",
|
|
81
|
+
"inquirer": "^7.3.3",
|
|
82
|
+
"is-ci": "^3.0.1",
|
|
83
|
+
"is-online": "^10.0.0",
|
|
84
|
+
"istextorbinary": "^8.0.0",
|
|
85
|
+
"jju": "^1.4.0",
|
|
86
|
+
"load-json-file": "^6.2.0",
|
|
87
|
+
"mime": "^3.0.0",
|
|
88
|
+
"mixpanel": "^0.18.0",
|
|
89
|
+
"open": "^8.4.0",
|
|
90
|
+
"ow": "^0.28.2",
|
|
91
|
+
"rimraf": "^3.0.2",
|
|
92
|
+
"semver": "^7.5.4",
|
|
93
|
+
"tiged": "^2.12.5",
|
|
94
|
+
"underscore": "^1.13.6",
|
|
95
|
+
"write-json-file": "^4.3.0"
|
|
96
|
+
},
|
|
97
|
+
"devDependencies": {
|
|
98
|
+
"@apify/eslint-config": "^0.4.0",
|
|
99
|
+
"@oclif/dev-cli": "^1.26.0",
|
|
100
|
+
"@oclif/test": "^2.1.0",
|
|
101
|
+
"cross-env": "^7.0.3",
|
|
102
|
+
"eslint": "^8.53.0",
|
|
103
|
+
"vitest": "^1.0.4"
|
|
104
|
+
},
|
|
105
|
+
"oclif": {
|
|
106
|
+
"bin": "apify",
|
|
107
|
+
"commands": "./src/commands",
|
|
108
|
+
"hooks": {
|
|
109
|
+
"init": [
|
|
110
|
+
"./src/hooks/init"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
112
113
|
}
|
|
113
|
-
}
|
|
114
114
|
}
|
package/src/lib/utils.js
CHANGED
|
@@ -21,6 +21,7 @@ const {
|
|
|
21
21
|
const AdmZip = require('adm-zip');
|
|
22
22
|
const { ApifyClient } = require('apify-client');
|
|
23
23
|
const archiver = require('archiver-promise');
|
|
24
|
+
const axios = require('axios');
|
|
24
25
|
const escapeStringRegexp = require('escape-string-regexp');
|
|
25
26
|
const globby = require('globby');
|
|
26
27
|
const inquirer = require('inquirer');
|
|
@@ -139,7 +140,14 @@ const getApifyClientOptions = (token, apiBaseUrl) => {
|
|
|
139
140
|
token,
|
|
140
141
|
baseUrl: apiBaseUrl || process.env.APIFY_CLIENT_BASE_URL,
|
|
141
142
|
requestInterceptors: [(config) => {
|
|
142
|
-
config.headers
|
|
143
|
+
if (!config.headers) {
|
|
144
|
+
config.headers = new axios.AxiosHeaders();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
for (const [key, value] of Object.entries(APIFY_CLIENT_DEFAULT_HEADERS)) {
|
|
148
|
+
config.headers[key] = value;
|
|
149
|
+
}
|
|
150
|
+
|
|
143
151
|
return config;
|
|
144
152
|
}],
|
|
145
153
|
};
|