@aloma.io/integration-sdk 3.0.7-rc3 → 3.0.7

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/build/cli.mjs CHANGED
File without changes
@@ -2,10 +2,8 @@ import JWE from "./index.mjs";
2
2
  const main = async () => {
3
3
  const jwe = new JWE({});
4
4
  await jwe.newPair();
5
- console.log("private key");
6
- console.log(await jwe.exportPrivateAsBase64());
7
- console.log("public key");
8
- console.log(await jwe.exportPublicAsBase64());
5
+ console.log("PRIVATE_KEY=" + (await jwe.exportPrivateAsBase64()));
6
+ console.log("PUBLIC_KEY=" + (await jwe.exportPublicAsBase64()));
9
7
  };
10
8
  setTimeout(() => null, 100);
11
9
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.0.7-rc3",
3
+ "version": "3.0.7",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -4,10 +4,8 @@ const main = async () => {
4
4
  const jwe = new JWE({});
5
5
  await jwe.newPair();
6
6
 
7
- console.log("private key");
8
- console.log(await jwe.exportPrivateAsBase64());
9
- console.log("public key");
10
- console.log(await jwe.exportPublicAsBase64());
7
+ console.log("PRIVATE_KEY=" + (await jwe.exportPrivateAsBase64()));
8
+ console.log("PUBLIC_KEY=" + (await jwe.exportPublicAsBase64()));
11
9
  };
12
10
 
13
11
  setTimeout(() => null, 100);
@@ -11,7 +11,8 @@
11
11
  "dev": "./node_modules/typescript/bin/tsc --watch",
12
12
  "build": "./node_modules/@aloma.io/integration-sdk/build/cli.mjs build; ./node_modules/typescript/bin/tsc",
13
13
  "test": "./node_modules/mocha/bin/_mocha --recursive",
14
- "format": "yarn prettier --write src/"
14
+ "format": "yarn prettier --write src/",
15
+ "generate-keys": "node node_modules/@aloma.io/integration-sdk/build/internal/util/jwe/cli.mjs"
15
16
  },
16
17
  "dependencies": {
17
18
  "@aloma.io/integration-sdk": "^3"