@olane/o-tools-common 0.7.16 → 0.7.18
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.
|
@@ -4,7 +4,9 @@ import { oLaneTool } from '@olane/o-lane';
|
|
|
4
4
|
import { oNodeToolConfig } from '@olane/o-node';
|
|
5
5
|
export declare class EncryptionTool extends oLaneTool {
|
|
6
6
|
private encryptionService;
|
|
7
|
-
constructor(config: oNodeToolConfig
|
|
7
|
+
constructor(config: oNodeToolConfig & {
|
|
8
|
+
vaultKey?: string;
|
|
9
|
+
});
|
|
8
10
|
_tool_encrypt(request: oRequest): Promise<ToolResult>;
|
|
9
11
|
_tool_decrypt(request: oRequest): Promise<ToolResult>;
|
|
10
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption.tool.d.ts","sourceRoot":"","sources":["../../src/encryption/encryption.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBAAa,cAAe,SAAQ,SAAS;IAC3C,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,MAAM,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"encryption.tool.d.ts","sourceRoot":"","sources":["../../src/encryption/encryption.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBAAa,cAAe,SAAQ,SAAS;IAC3C,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,MAAM,EAAE,eAAe,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;IAUrD,aAAa,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAWrD,aAAa,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAU5D"}
|
|
@@ -10,7 +10,7 @@ export class EncryptionTool extends oLaneTool {
|
|
|
10
10
|
methods: ENCRYPTION_PARAMS,
|
|
11
11
|
description: 'Tool to encrypt and decrypt sensitive data',
|
|
12
12
|
});
|
|
13
|
-
this.encryptionService = new EncryptionService(process.env.VAULT_KEY);
|
|
13
|
+
this.encryptionService = new EncryptionService(config.vaultKey || process.env.VAULT_KEY);
|
|
14
14
|
}
|
|
15
15
|
async _tool_encrypt(request) {
|
|
16
16
|
const params = request.params;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-tools-common",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"typescript": "5.4.5"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@olane/o-approval": "0.7.
|
|
56
|
-
"@olane/o-config": "0.7.
|
|
57
|
-
"@olane/o-core": "0.7.
|
|
58
|
-
"@olane/o-lane": "0.7.
|
|
59
|
-
"@olane/o-leader": "0.7.
|
|
60
|
-
"@olane/o-protocol": "0.7.
|
|
61
|
-
"@olane/o-storage": "0.7.
|
|
62
|
-
"@olane/o-tool": "0.7.
|
|
55
|
+
"@olane/o-approval": "0.7.18",
|
|
56
|
+
"@olane/o-config": "0.7.18",
|
|
57
|
+
"@olane/o-core": "0.7.18",
|
|
58
|
+
"@olane/o-lane": "0.7.18",
|
|
59
|
+
"@olane/o-leader": "0.7.18",
|
|
60
|
+
"@olane/o-protocol": "0.7.18",
|
|
61
|
+
"@olane/o-storage": "0.7.18",
|
|
62
|
+
"@olane/o-tool": "0.7.18",
|
|
63
63
|
"debug": "^4.4.1",
|
|
64
64
|
"dotenv": "^16.5.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "9c7cfe1919dd912645dab3b5788f34d5ddd4a761"
|
|
67
67
|
}
|