botasaurus-desktop-api 4.1.72 → 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/dist/utils.mjs +10 -0
- package/package.json +8 -2
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,6 +1,6 @@
|
|
|
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
6
|
"module": "dist/index.mjs",
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
"require": "./dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
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"
|
|
17
23
|
}
|
|
18
24
|
},
|
|
19
25
|
"author": {
|
|
@@ -43,7 +49,7 @@
|
|
|
43
49
|
"clean-install": "rm -rf dist/ node_modules/ package-lock.json yarn.lock .next/* && npm install",
|
|
44
50
|
"prepublishOnly": "npm run build",
|
|
45
51
|
"upload": "python3 increment_version.py && rm -rf dist/ && npm publish",
|
|
46
|
-
"postbuild": "gen-esm-wrapper dist/index.js dist/index.mjs",
|
|
52
|
+
"postbuild": "gen-esm-wrapper dist/index.js dist/index.mjs && gen-esm-wrapper dist/utils.js dist/utils.mjs",
|
|
47
53
|
"clean": "rimraf dist",
|
|
48
54
|
"test": "npm run build && jest",
|
|
49
55
|
"lint": "eslint",
|