@uglyunicorn/pie 0.1.3 → 0.1.5

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/body.txt CHANGED
@@ -0,0 +1,5 @@
1
+ * Refactor EnvelopeContext type in index.ts and clean up hpke.ts exports
2
+
3
+ * Update package version to 0.1.5 in package.json
4
+
5
+ * Refactor envelopeContext return type in hpke.ts to use generic CipherContext<Envelope> for improved type safety
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uglyunicorn/pie",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Schema-validated envelopes using HPKE",
5
5
  "keywords": [
6
6
  "schema",
@@ -1 +1,6 @@
1
- export { createCipherSuite, envelopeContext } from "./hpke";
1
+ import type { EnvelopeContext as EnvelopeContextType } from "..";
2
+ import type { Envelope } from "./hpke";
3
+
4
+ export { createCipherSuite, envelopeContext, type Envelope } from "./hpke";
5
+
6
+ export type EnvelopeContext = EnvelopeContextType<Envelope>;