Skip to content

Commit 43d1f0a

Browse files
committed
revise EndOfEarlyData
1 parent ae1a90f commit 43d1f0a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/enum",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]

src/handshaketype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class EndOfEarlyData extends Uint8Array {
143143
constructor(){
144144
super()
145145
}
146-
get handshake(){ return HandshakeType.handshake(this)}
146+
get handshake(){ return HandshakeType.END_OF_EARLY_DATA.handshake(this)}
147147
}
148148

149149
// npx -p typescript tsc ./src/handshaketype.js --declaration --allowJs --emitDeclarationOnly --lib ESNext --outDir ./dist

test/handshaketype_test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HandshakeType } from "../src/handshaketype.js";
1+
import { HandshakeType, EndOfEarlyData } from "../src/handshaketype.js";
22

33
console.log(HandshakeType.CLIENT_HELLO);
44
console.log(HandshakeType.CLIENT_HELLO)
@@ -9,3 +9,9 @@ for (const e of codes) {
99
console.log(`name: ${parse.name} value: ${parse.value}`)
1010
}
1111

12+
13+
const eoData = new EndOfEarlyData;
14+
const eoDataHandshake = eoData.handshake;
15+
const eoDataTlsInnerPlaintext = eoDataHandshake.tlsInnerPlaintext();
16+
17+

0 commit comments

Comments
 (0)