Skip to content

Commit bea1c7d

Browse files
authored
Merge pull request #363 from dajiaji/move-samples-to-x
Move samples to x.
2 parents 844d0da + d99a5a1 commit bea1c7d

File tree

22 files changed

+199
-257
lines changed

22 files changed

+199
-257
lines changed

deno.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
"./x/dhkem-secp256k1",
88
"./x/hybridkem-x25519-kyber768",
99
"./x/hpke-js",
10-
"./samples/deno-hpke-core",
11-
"./samples/deno-hpke-js"
10+
"./x/core/samples/deno",
11+
"./x/chacha20poly1305/samples/deno",
12+
"./x/dhkem-x25519/samples/deno",
13+
"./x/dhkem-x448/samples/deno",
14+
"./x/dhkem-secp256k1/samples/deno",
15+
"./x/hybridkem-x25519-kyber768/samples/deno",
16+
"./x/hpke-js/samples/deno"
1217
],
1318
"imports": {
1419
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",

deno.lock

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/deno-hpke-core/deno.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

samples/deno-hpke-js/deno.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

samples/deno-hpke-js/main.ts

Lines changed: 0 additions & 72 deletions
This file was deleted.

x/chacha20poly1305/samples/deno/deno.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"dev": "deno run --watch main.ts"
44
},
55
"imports": {
6-
"@hpke/chacha20poly1305": "jsr:@hpke/chacha20poly1305@^1.2.9",
7-
"@hpke/core": "jsr:@hpke/core@^1.2.9",
8-
"@std/assert": "jsr:@std/assert@1"
6+
"@hpke/chacha20poly1305": "jsr:@hpke/chacha20poly1305@^1.3.0",
7+
"@hpke/core": "jsr:@hpke/core@^1.3.0"
98
}
109
}

x/chacha20poly1305/samples/deno/deno.lock

Lines changed: 0 additions & 36 deletions
This file was deleted.

x/chacha20poly1305/samples/deno/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ async function doHpke() {
3232

3333
try {
3434
doHpke();
35-
} catch (_err: unknown) {
36-
console.log("doHPKE() failed.");
35+
} catch (err: unknown) {
36+
console.log("Error: ", err as Error);
3737
}

x/core/samples/deno/deno.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"tasks": {
33
"dev": "deno run --watch main.ts"
4-
},
5-
"imports": {
6-
"@hpke/core": "jsr:@hpke/core@^1.2.9",
7-
"@std/assert": "jsr:@std/assert@1"
84
}
95
}

x/core/samples/deno/deno.lock

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)