Skip to content

Commit f3fe339

Browse files
committed
update Handshake version
1 parent 67cd3b8 commit f3fe339

File tree

4 files changed

+50
-8
lines changed

4 files changed

+50
-8
lines changed

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/param",
3-
"version": "0.1.9",
3+
"version": "0.2.0",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]
@@ -16,6 +16,7 @@
1616
"@std/assert": "jsr:@std/assert@^1.0.2",
1717
"@tls/enum": "jsr:@tls/enum@^0.7.3",
1818
"@tls/extension": "jsr:@tls/extension@^0.3.0",
19+
"@tls/handshake": "jsr:@tls/handshake@^0.0.5",
1920
"@tls/struct": "jsr:@tls/struct@^0.3.7"
2021
}
2122
}

deno.lock

Lines changed: 43 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dep.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from "@tls/struct"
22
export * from "@tls/extension"
3-
export * from "@tls/enum"
3+
export * from "@tls/enum"
4+
export * from "@tls/handshake"

src/encrypted.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// deno-lint-ignore-file no-slow-types
22
// @ts-self-types="../type/encrypted.d.ts"
3-
import { ContentType, HandshakeType } from "./dep.ts";
3+
import { Handshake, HandshakeType } from "./dep.ts";
44
import { Uint16, Constrained, Uint24, parseItems } from "./dep.ts";
55
import {
66
Extension, ExtensionType,
@@ -40,11 +40,11 @@ export class EncryptedExtensions extends Constrained {
4040
}
4141

4242
get handshake() {
43-
return HandshakeType.ENCRYPTED_EXTENSIONS.handshake(this);
43+
return new Handshake(HandshakeType.ENCRYPTED_EXTENSIONS, this);
4444
}
4545

4646
get record() {
47-
return ContentType.HANDSHAKE.tlsPlaintext(this.handshake)
47+
return this.handshake.record
4848
}
4949
}
5050

0 commit comments

Comments
 (0)