-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
78 lines (78 loc) · 3.46 KB
/
package.json
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
{
"name": "@hackolade/fetch",
"version": "1.1.0",
"description": "A HTTP client that works in the browser and in Electron",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"types": "./src/index.d.ts",
"files": [
"./doc",
"./dist",
"./src"
],
"keywords": [
"http",
"https",
"client",
"fetch",
"electron",
"proxy",
"certificate",
"cert"
],
"license": "MIT",
"repository": "github:hackolade/fetch",
"scripts": {
"prebuild": "rimraf ./dist",
"build:esm": "swc -C module.type=es6 ./src -d ./dist/esm --ignore **/*.d.ts --strip-leading-paths",
"build:cjs": "swc -C module.type=commonjs ./src -d ./dist/cjs --ignore **/*.d.ts --strip-leading-paths",
"build": "npm run build:esm && npm run build:cjs",
"docker:compose": "docker compose --profile=test up --build --force-recreate --always-recreate-deps --remove-orphans",
"docker:server": "npm run docker:compose -- server",
"docker:server:verbose": "npm run docker:compose -- --attach-dependencies server",
"docker:test": "npm run docker:compose -- --exit-code-from=tests --wait-timeout=120",
"test": "node --test ./test/*.spec.js",
"pretest:app": "npm run build",
"test:app": "electron ./test/resources/app-electron/main.js",
"test:app:direct": "cross-env PORT=3001 SERVER_API_URL=http://127.0.0.1:8080/initiators/direct npm run test:app",
"test:app:cert": "cross-env PORT=3002 SERVER_API_URL=https://127.0.0.1:4443/initiators/cert npm run test:app",
"test:app:proxy": "cross-env PORT=3003 SERVER_API_URL=http://server:8080/initiators/proxy npm run test:app",
"test:app:proxy-basic-auth": "cross-env PORT=3004 SERVER_API_URL=http://server:8080/initiators/proxy-basic-auth npm run test:app",
"test:app:proxy-pac-file": "cross-env PORT=3005 SERVER_API_URL=http://server:8080/initiators/proxy-pac-file npm run test:app",
"test:app:proxy-https-inspection": "cross-env PORT=3006 SERVER_API_URL=https://server:4443/initiators/proxy-https-inspection npm run test:app",
"test:app:custom-cert": "cross-env PORT=3007 SERVER_API_URL=https://127.0.0.1:4443/initiators/custom-cert CUSTOM_CA=OK npm run test:app",
"test:app:custom-proxy": "cross-env PORT=3008 SERVER_API_URL=http://server:8080/initiators/custom-proxy CUSTOM_PROXY_RULES=localhost:3128 npm run test:app",
"test:app:custom-proxy-basic-auth": "cross-env PORT=3009 SERVER_API_URL=http://server:8080/initiators/custom-proxy-basic-auth CUSTOM_PROXY_RULES=localhost:3129 npm run test:app",
"test:app:custom-proxy-pac-file": "cross-env PORT=3010 SERVER_API_URL=http://server:8080/initiators/custom-proxy-pac-file CUSTOM_PROXY_PAC_SCRIPT=http://127.0.0.1:8081/proxy.pac npm run test:app",
"test:server": "cross-env DEBUG=hck-fetch* node ./test/resources/server/server.js",
"prepare": "husky",
"prepublishOnly": "npm run build"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "1.7.26",
"cross-env": "7.0.3",
"debug": "4.3.7",
"electron": "33.2.0",
"express": "4.21.1",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"prettier": "3.3.3",
"rimraf": "6.0.1"
},
"dependencies": {
"@smithy/fetch-http-handler": "4.0.0",
"@smithy/protocol-http": "4.1.5",
"@smithy/querystring-builder": "3.0.8",
"@smithy/types": "3.6.0"
}
}