@olane/o-tools-common 0.7.6 → 0.7.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/dist/init.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { StorageTool } from '@olane/o-storage';
2
2
  import { SearchTool } from './search/search.tool.js';
3
3
  import { EncryptionTool } from './encryption/encryption.tool.js';
4
+ import { oApprovalTool } from '@olane/o-approval';
4
5
  import { oLaneTool } from '@olane/o-lane';
5
- export declare const initCommonTools: (oNode: oLaneTool) => Promise<(SearchTool | EncryptionTool | StorageTool)[]>;
6
+ export declare const initCommonTools: (oNode: oLaneTool) => Promise<(SearchTool | EncryptionTool | StorageTool | oApprovalTool)[]>;
6
7
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAiB,SAAS,2DA0BrD,CAAC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAiB,SAAS,2EAoCrD,CAAC"}
package/dist/init.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { StorageTool } from '@olane/o-storage';
2
2
  import { SearchTool } from './search/search.tool.js';
3
3
  import { EncryptionTool } from './encryption/encryption.tool.js';
4
+ import { oApprovalTool } from '@olane/o-approval';
4
5
  export const initCommonTools = async (oNode) => {
5
6
  const params = {
6
7
  parent: oNode.address,
@@ -19,6 +20,16 @@ export const initCommonTools = async (oNode) => {
19
20
  name: 'search',
20
21
  ...params,
21
22
  }),
23
+ new oApprovalTool({
24
+ ...params,
25
+ name: 'approval',
26
+ mode: 'allow', // Default mode
27
+ preferences: {
28
+ whitelist: [],
29
+ blacklist: [],
30
+ timeout: 180000, // 3 minutes
31
+ },
32
+ }),
22
33
  ];
23
34
  await Promise.all(tools.map(async (tool) => {
24
35
  await tool.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-tools-common",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,13 +54,14 @@
54
54
  "typescript": "5.4.5"
55
55
  },
56
56
  "peerDependencies": {
57
- "@olane/o-config": "^0.7.5",
58
- "@olane/o-core": "^0.7.5",
59
- "@olane/o-lane": "^0.7.5",
60
- "@olane/o-leader": "^0.7.5",
61
- "@olane/o-protocol": "^0.7.5",
62
- "@olane/o-storage": "^0.7.5",
63
- "@olane/o-tool": "^0.7.5"
57
+ "@olane/o-approval": "^0.7.5",
58
+ "@olane/o-config": "^0.7.6",
59
+ "@olane/o-core": "^0.7.6",
60
+ "@olane/o-lane": "^0.7.6",
61
+ "@olane/o-leader": "^0.7.6",
62
+ "@olane/o-protocol": "^0.7.6",
63
+ "@olane/o-storage": "^0.7.6",
64
+ "@olane/o-tool": "^0.7.6"
64
65
  },
65
66
  "dependencies": {
66
67
  "debug": "^4.4.1",