botasaurus-desktop-api 4.1.71 → 4.1.73
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 +1 -1
- package/dist/bundle.js +9067 -0
- package/dist/bundle.js.map +1 -0
- package/dist/index.mjs +5 -0
- package/dist/utils.mjs +10 -0
- package/package.json +86 -49
package/dist/index.mjs
ADDED
package/dist/utils.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import mod from "./utils.js";
|
|
2
|
+
|
|
3
|
+
export default mod;
|
|
4
|
+
export const createDirectoryIfNotExists = mod.createDirectoryIfNotExists;
|
|
5
|
+
export const createOutputDirectoryIfNotExists = mod.createOutputDirectoryIfNotExists;
|
|
6
|
+
export const getFilenameFromResponseHeaders = mod.getFilenameFromResponseHeaders;
|
|
7
|
+
export const relativePath = mod.relativePath;
|
|
8
|
+
export const removeAfterFirstSlash = mod.removeAfterFirstSlash;
|
|
9
|
+
export const writeFileResponse = mod.writeFileResponse;
|
|
10
|
+
export const writeJsonResponse = mod.writeJsonResponse;
|
package/package.json
CHANGED
|
@@ -1,57 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botasaurus-desktop-api",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.73",
|
|
4
4
|
"description": "The Botasaurus Desktop API Client provides programmatic access to Botasaurus Desktop scrapers with a developer-friendly API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"browser": "dist/bundle.js",
|
|
9
|
+
"unpkg": "dist/bundle.js",
|
|
7
10
|
"exports": {
|
|
8
|
-
".": "./
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
"./package.json": "./package.json",
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"browser": "./dist/bundle.js"
|
|
17
|
+
},
|
|
18
|
+
"./utils": {
|
|
19
|
+
"import": "./dist/utils.mjs",
|
|
20
|
+
"require": "./dist/utils.js",
|
|
21
|
+
"types": "./dist/utils.d.ts",
|
|
22
|
+
"browser": "./dist/utils.js"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=15.10.0"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@apify/eslint-config-ts": "^0.2.3",
|
|
29
|
-
"@apify/tsconfig": "^0.1.0",
|
|
30
|
-
"@types/node": "^16.4.13",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
32
|
-
"@typescript-eslint/parser": "^8.31.1",
|
|
33
|
-
"eslint": "^8.10.0",
|
|
34
|
-
"rimraf": "^5.0.1",
|
|
35
|
-
"ts-node": "^10.2.0",
|
|
36
|
-
"typescript": "^5.8.3"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "tsc -w",
|
|
40
|
-
"build": "rimraf dist tsconfig.tsbuildinfo && tsc && rimraf tsconfig.tsbuildinfo",
|
|
41
|
-
"build-mv": "npm run build && mv -f ~/Documents/grow/botasaurus/js/botasaurus-desktop-api/dist/* ~/Documents/playground/my-project-name/node_modules/botasaurus-desktop-api/dist/",
|
|
42
|
-
"build-dev": "nodemon --watch \"src/**/*.ts\" --exec \"npm run build-mv\"",
|
|
43
|
-
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
44
|
-
"update": "npm update botasaurus",
|
|
45
|
-
"clean-install": "rm -rf dist/ node_modules/ package-lock.json yarn.lock .next/* && npm install",
|
|
46
|
-
"prepublishOnly": "npm run build",
|
|
47
|
-
"local-proxy": "node ./dist/run_locally.js",
|
|
48
|
-
"mtest": "node test/test.mjs",
|
|
49
|
-
"upload": "python3 increment_version.py && rm -rf dist/ && npm publish",
|
|
50
|
-
"test": "nyc cross-env NODE_OPTIONS=--insecure-http-parser mocha --bail",
|
|
51
|
-
"test:watch": "nyc cross-env NODE_OPTIONS=--insecure-http-parser mocha --bail --watch",
|
|
52
|
-
"lint": "eslint src",
|
|
53
|
-
"lint-fix": "eslint src --fix"
|
|
54
|
-
},
|
|
55
25
|
"author": {
|
|
56
26
|
"name": "Chetan",
|
|
57
27
|
"url": "https://www.omkar.cloud"
|
|
@@ -64,7 +34,74 @@
|
|
|
64
34
|
"bugs": {
|
|
65
35
|
"url": "https://github.com/omkarcloud/botasaurus/issues"
|
|
66
36
|
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"botasaurus-desktop-api"
|
|
39
|
+
],
|
|
40
|
+
"homepage": "https://github.com/omkarcloud/botasaurus",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"!dist/*.tsbuildinfo"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "npm run clean && npm run build:node && npm run build:browser",
|
|
47
|
+
"build-mv": "npm run build && mv -f ~/Documents/grow/botasaurus/js/botasaurus-desktop-api/dist/* ~/Documents/playground/my-project-name/node_modules/botasaurus-desktop-api/dist/",
|
|
48
|
+
"build-dev": "nodemon --watch \"src/**/*.ts\" --exec \"npm run build-mv\"",
|
|
49
|
+
"clean-install": "rm -rf dist/ node_modules/ package-lock.json yarn.lock .next/* && npm install",
|
|
50
|
+
"prepublishOnly": "npm run build",
|
|
51
|
+
"upload": "python3 increment_version.py && rm -rf dist/ && npm publish",
|
|
52
|
+
"postbuild": "gen-esm-wrapper dist/index.js dist/index.mjs && gen-esm-wrapper dist/utils.js dist/utils.mjs",
|
|
53
|
+
"clean": "rimraf dist",
|
|
54
|
+
"test": "npm run build && jest",
|
|
55
|
+
"lint": "eslint",
|
|
56
|
+
"lint:fix": "eslint --fix",
|
|
57
|
+
"tsc-check-tests": "tsc --noEmit --project test/tsconfig.json",
|
|
58
|
+
"format": "prettier --write .",
|
|
59
|
+
"format:check": "prettier --check .",
|
|
60
|
+
"build:node": "tsc",
|
|
61
|
+
"build:browser": "rsbuild build"
|
|
62
|
+
},
|
|
67
63
|
"dependencies": {
|
|
68
|
-
"axios": "^1.
|
|
69
|
-
|
|
70
|
-
}
|
|
64
|
+
"axios": "^1.6.7",
|
|
65
|
+
"tslib": "^2.5.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@apify/eslint-config": "^1.0.0",
|
|
69
|
+
"@apify/tsconfig": "^0.1.1",
|
|
70
|
+
"@babel/cli": "^7.21.0",
|
|
71
|
+
"@babel/core": "^7.21.0",
|
|
72
|
+
"@babel/preset-env": "^7.20.2",
|
|
73
|
+
"@babel/register": "^7.21.0",
|
|
74
|
+
"@crawlee/puppeteer": "^3.2.2",
|
|
75
|
+
"@rsbuild/core": "^1.3.6",
|
|
76
|
+
"@rsbuild/plugin-node-polyfill": "^1.3.0",
|
|
77
|
+
"@stylistic/eslint-plugin-ts": "^4.2.0",
|
|
78
|
+
"@types/async-retry": "^1.4.5",
|
|
79
|
+
"@types/content-type": "^1.1.5",
|
|
80
|
+
"@types/express": "^4.17.17",
|
|
81
|
+
"@types/fs-extra": "^11.0.1",
|
|
82
|
+
"@types/jest": "^29.4.0",
|
|
83
|
+
"@types/node": "^22.0.0",
|
|
84
|
+
"ajv": "^8.17.1",
|
|
85
|
+
"babel-loader": "^10.0.0",
|
|
86
|
+
"body-parser": "^1.20.3",
|
|
87
|
+
"compression": "^1.7.4",
|
|
88
|
+
"eslint": "^9.24.0",
|
|
89
|
+
"eslint-config-prettier": "^10.1.2",
|
|
90
|
+
"express": "^4.21.1",
|
|
91
|
+
"fs-extra": "^11.1.0",
|
|
92
|
+
"gen-esm-wrapper": "^1.1.2",
|
|
93
|
+
"globals": "^16.0.0",
|
|
94
|
+
"jest": "^29.4.3",
|
|
95
|
+
"prettier": "^3.5.3",
|
|
96
|
+
"process": "^0.11.10",
|
|
97
|
+
"puppeteer": "^24.0.0",
|
|
98
|
+
"rimraf": "^6.0.0",
|
|
99
|
+
"source-map-support": "^0.5.21",
|
|
100
|
+
"ts-jest": "^29.0.5",
|
|
101
|
+
"ts-loader": "^9.4.2",
|
|
102
|
+
"ts-node": "^10.9.1",
|
|
103
|
+
"typescript": "^5.8.3",
|
|
104
|
+
"typescript-eslint": "^8.29.1"
|
|
105
|
+
},
|
|
106
|
+
"packageManager": "npm@10.9.2"
|
|
107
|
+
}
|