Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ipbyrne committed Apr 8, 2024
1 parent f1f9e00 commit a383a12
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Isaac Byrne (me@ipbyrne.com)",
"module": "dist/index.esm.js",
"license": "Apache-2.0",
"version": "1.1.0",
"version": "1.1.1",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/cipher/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as cipher from "./cipher";
import { generate, encrypt, decrypt } from "./cipher";

export default cipher;
export default { generate, encrypt, decrypt };
15 changes: 13 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ import {
} from "./utils";
import { decrypt, encrypt, generate } from "./cipher/cipher";
import { PrivateKeyJwk, Data } from "./types";
import * as Types from "./types";
export {
PrivateKeyJwk,
Data,
HDPath,
KeyTypes,
KTY,
Path,
CRV,
X,
KeyCreateParam,
KeyCreateParamFromKey,
PublicKeyJwk,
} from "./types";

export const encryptQuery = (
query: any,
Expand Down Expand Up @@ -77,5 +89,4 @@ export default {
encryptData,
decryptData,
generateEncryptionPrivateKey: generate,
Types,
};

0 comments on commit a383a12

Please sign in to comment.