@mercuryworkshop/epoxy-transport 2.1.18 → 2.1.19
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/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
- package/src/main.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -1425,10 +1425,12 @@ var EpoxyTransport = class {
|
|
|
1425
1425
|
wisp;
|
|
1426
1426
|
wisp_v2;
|
|
1427
1427
|
udp_extension_required;
|
|
1428
|
-
|
|
1428
|
+
title_case_headers;
|
|
1429
|
+
constructor({ wisp, wisp_v2, udp_extension_required, title_case_headers }) {
|
|
1429
1430
|
this.wisp = wisp;
|
|
1430
1431
|
this.wisp_v2 = wisp_v2 || false;
|
|
1431
1432
|
this.udp_extension_required = udp_extension_required || false;
|
|
1433
|
+
this.title_case_headers = title_case_headers || true;
|
|
1432
1434
|
}
|
|
1433
1435
|
async init() {
|
|
1434
1436
|
await epoxy_bundled_default();
|
|
@@ -1436,6 +1438,7 @@ var EpoxyTransport = class {
|
|
|
1436
1438
|
options.user_agent = navigator.userAgent;
|
|
1437
1439
|
options.udp_extension_required = this.udp_extension_required;
|
|
1438
1440
|
options.wisp_v2 = this.wisp_v2;
|
|
1441
|
+
options.title_case_headers = this.title_case_headers;
|
|
1439
1442
|
this.client = new EpoxyClient(this.wisp, options);
|
|
1440
1443
|
this.ready = true;
|
|
1441
1444
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1363,10 +1363,12 @@ var EpoxyTransport = class {
|
|
|
1363
1363
|
wisp;
|
|
1364
1364
|
wisp_v2;
|
|
1365
1365
|
udp_extension_required;
|
|
1366
|
-
|
|
1366
|
+
title_case_headers;
|
|
1367
|
+
constructor({ wisp, wisp_v2, udp_extension_required, title_case_headers }) {
|
|
1367
1368
|
this.wisp = wisp;
|
|
1368
1369
|
this.wisp_v2 = wisp_v2 || false;
|
|
1369
1370
|
this.udp_extension_required = udp_extension_required || false;
|
|
1371
|
+
this.title_case_headers = title_case_headers || true;
|
|
1370
1372
|
}
|
|
1371
1373
|
async init() {
|
|
1372
1374
|
await epoxy_bundled_default();
|
|
@@ -1374,6 +1376,7 @@ var EpoxyTransport = class {
|
|
|
1374
1376
|
options.user_agent = navigator.userAgent;
|
|
1375
1377
|
options.udp_extension_required = this.udp_extension_required;
|
|
1376
1378
|
options.wisp_v2 = this.wisp_v2;
|
|
1379
|
+
options.title_case_headers = this.title_case_headers;
|
|
1377
1380
|
this.client = new EpoxyClient(this.wisp, options);
|
|
1378
1381
|
this.ready = true;
|
|
1379
1382
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercuryworkshop/epoxy-transport",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.19",
|
|
4
4
|
"description": "a bare transport that implements end-to-end encryption with epoxy-tls and wisp",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"keywords": [],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "AGPL-3.0-only",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "node esbuild.bundle.mjs",
|
|
12
|
-
"
|
|
12
|
+
"prepack": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@mercuryworkshop/epoxy-tls": "2.1.10-1"
|
package/src/main.ts
CHANGED
|
@@ -12,11 +12,13 @@ export default class EpoxyTransport implements BareTransport {
|
|
|
12
12
|
wisp: string;
|
|
13
13
|
wisp_v2: boolean;
|
|
14
14
|
udp_extension_required: boolean;
|
|
15
|
+
title_case_headers: boolean;
|
|
15
16
|
|
|
16
|
-
constructor({ wisp, wisp_v2, udp_extension_required }) {
|
|
17
|
+
constructor({ wisp, wisp_v2, udp_extension_required, title_case_headers }) {
|
|
17
18
|
this.wisp = wisp;
|
|
18
19
|
this.wisp_v2 = wisp_v2 || false;
|
|
19
20
|
this.udp_extension_required = udp_extension_required || false;
|
|
21
|
+
this.title_case_headers = title_case_headers || true;
|
|
20
22
|
}
|
|
21
23
|
async init() {
|
|
22
24
|
await initEpoxy();
|
|
@@ -25,6 +27,7 @@ export default class EpoxyTransport implements BareTransport {
|
|
|
25
27
|
options.user_agent = navigator.userAgent;
|
|
26
28
|
options.udp_extension_required = this.udp_extension_required;
|
|
27
29
|
options.wisp_v2 = this.wisp_v2;
|
|
30
|
+
options.title_case_headers = this.title_case_headers;
|
|
28
31
|
this.client = new EpoxyClient(this.wisp, options);
|
|
29
32
|
|
|
30
33
|
this.ready = true;
|