Skip to content

Commit

Permalink
Merge pull-request #52
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Aug 30, 2024
2 parents d298782 + 40f375f commit 53b1778
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 28 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Vendored files
noble-hashes.js
noble-ed25519.js
hpke-core.js
4 changes: 4 additions & 0 deletions auth/hpke-core.js

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions auth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -999,14 +999,9 @@ <h2>Message log</h2>
})();
</script>

<!--
Script importing HPKE lib until we can replace it
Because this is loaded as a module JSDOM can't load it properly
Code in here isn't tested, so let's keep this to a minimum!
-->
<script type="module">
// TODO: this should be bundled at build time or replaced with code written by Turnkey entirely.
import * as hpke from "https://esm.sh/@hpke/core@1.2.7";
// Vendor @hpke/core from https://esm.sh/@hpke/[email protected]
import * as hpke from "./hpke-core.js";

// In memory spot for the credential to live. We do NOT persist it to localStorage.
var CREDENTIAL_BYTES = null;
Expand Down
4 changes: 4 additions & 0 deletions export/hpke-core.js

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions export/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -827,14 +827,9 @@ <h2>Message log</h2>
})();
</script>

<!--
Script importing HPKE lib until we can replace it
Because this is loaded as a module JSDOM can't load it properly
Code in here isn't tested, so let's keep this to a minimum!
-->
<script type="module">
// TODO: this should be bundled at build time or replaced with code written by Turnkey entirely.
import * as hpke from "https://esm.sh/@hpke/core@1.2.7";
// Vendor @hpke/core from https://esm.sh/@hpke/[email protected]
import * as hpke from "./hpke-core.js";

document.addEventListener(
"DOMContentLoaded",
Expand Down
4 changes: 4 additions & 0 deletions import/hpke-core.js

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions import/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,9 @@
})();
</script>

<!--
Script importing HPKE lib until we can replace it
Because this is loaded as a module JSDOM can't load it properly
Code in here isn't tested, so let's keep this to a minimum!
-->
<script type="module">
// TODO: this should be bundled at build time or replaced with code written by Turnkey entirely.
import * as hpke from "https://esm.sh/@hpke/core@1.2.7";
// Vendor @hpke/core from https://esm.sh/@hpke/[email protected]
import * as hpke from "./hpke-core.js";

document.addEventListener(
"DOMContentLoaded",
Expand Down
9 changes: 2 additions & 7 deletions import/standalone.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,9 @@ <h2>Message log</h2>
})();
</script>

<!--
Script importing HPKE lib until we can replace it
Because this is loaded as a module JSDOM can't load it properly
Code in here isn't tested, so let's keep this to a minimum!
-->
<script type="module">
// TODO: this should be bundled at build time or replaced with code written by Turnkey entirely.
import * as hpke from "https://esm.sh/@hpke/core@1.2.7";
// Vendor @hpke/core from https://esm.sh/@hpke/[email protected]
import * as hpke from "./hpke-core.js";

document.addEventListener(
"DOMContentLoaded",
Expand Down

0 comments on commit 53b1778

Please sign in to comment.