@florianjs/opaque-node 0.1.0

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.
@@ -0,0 +1,4 @@
1
+ //#region src/index.d.ts
2
+ declare function bootstrap(): Promise<void>;
3
+ //#endregion
4
+ export { bootstrap };
package/dist/index.mjs ADDED
@@ -0,0 +1,11 @@
1
+ import { fetchSecrets, injectEnv } from "@florianjs/opaque";
2
+ //#region src/index.ts
3
+ async function bootstrap() {
4
+ injectEnv(await fetchSecrets({
5
+ vaultUrl: process.env.OPAQUE_VAULT_URL ?? "",
6
+ privateKey: process.env.OPAQUE_PRIVATE_KEY ?? "",
7
+ project: process.env.OPAQUE_PROJECT ?? ""
8
+ }), process.env);
9
+ }
10
+ //#endregion
11
+ export { bootstrap };
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@florianjs/opaque-node",
3
+ "version": "0.1.0",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "types": "./dist/index.d.mts"
12
+ }
13
+ },
14
+ "dependencies": {
15
+ "@florianjs/opaque": "0.1.0"
16
+ },
17
+ "scripts": {
18
+ "pack": "vp pack"
19
+ }
20
+ }