@olane/o-storage 0.7.12-alpha.5 → 0.7.12-alpha.51
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.tool.d.ts","sourceRoot":"","sources":["../../src/storage.tool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,WAAY,SAAQ,SAAS;gBAC5B,MAAM,EAAE,eAAe;IAS7B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"storage.tool.d.ts","sourceRoot":"","sources":["../../src/storage.tool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,WAAY,SAAQ,SAAS;gBAC5B,MAAM,EAAE,eAAe;IAS7B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CA0ClC"}
|
package/dist/src/storage.tool.js
CHANGED
|
@@ -15,49 +15,42 @@ export class StorageTool extends oLaneTool {
|
|
|
15
15
|
}
|
|
16
16
|
async initialize() {
|
|
17
17
|
await super.initialize();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
parent: this.address,
|
|
56
|
-
leader: this.leader,
|
|
57
|
-
storageBackend: process.env.OS_CONFIG_STORAGE ||
|
|
58
|
-
'disk',
|
|
59
|
-
});
|
|
60
|
-
await node.start();
|
|
61
|
-
this.addChildNode(node);
|
|
18
|
+
const tools = [
|
|
19
|
+
new DiskStorageProvider({
|
|
20
|
+
name: 'disk',
|
|
21
|
+
parent: this.address,
|
|
22
|
+
leader: this.leader,
|
|
23
|
+
address: new oAddress('o://disk'),
|
|
24
|
+
}),
|
|
25
|
+
new MemoryStorageProvider({
|
|
26
|
+
name: 'memory',
|
|
27
|
+
parent: this.address,
|
|
28
|
+
leader: this.leader,
|
|
29
|
+
address: new oAddress('o://memory'),
|
|
30
|
+
}),
|
|
31
|
+
new SecureStorageProvider({
|
|
32
|
+
name: 'secure',
|
|
33
|
+
parent: this.address,
|
|
34
|
+
leader: this.leader,
|
|
35
|
+
address: new oAddress('o://secure'),
|
|
36
|
+
}),
|
|
37
|
+
new PlaceholderTool({
|
|
38
|
+
name: 'placeholder storage',
|
|
39
|
+
parent: this.address,
|
|
40
|
+
leader: this.leader,
|
|
41
|
+
}),
|
|
42
|
+
new OSConfigStorageTool({
|
|
43
|
+
name: 'os-config',
|
|
44
|
+
parent: this.address,
|
|
45
|
+
leader: this.leader,
|
|
46
|
+
storageBackend: process.env.OS_CONFIG_STORAGE || 'disk',
|
|
47
|
+
}),
|
|
48
|
+
];
|
|
49
|
+
for (const tool of tools) {
|
|
50
|
+
tool.hookInitializeFinished = () => {
|
|
51
|
+
this.addChildNode(tool);
|
|
52
|
+
};
|
|
53
|
+
await tool.start();
|
|
54
|
+
}
|
|
62
55
|
}
|
|
63
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-storage",
|
|
3
|
-
"version": "0.7.12-alpha.
|
|
3
|
+
"version": "0.7.12-alpha.51",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"typescript": "5.4.5"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@olane/o-config": "0.7.12-alpha.
|
|
58
|
-
"@olane/o-core": "0.7.12-alpha.
|
|
59
|
-
"@olane/o-lane": "0.7.12-alpha.
|
|
60
|
-
"@olane/o-node": "0.7.12-alpha.
|
|
61
|
-
"@olane/o-protocol": "0.7.12-alpha.
|
|
62
|
-
"@olane/o-tool": "0.7.12-alpha.
|
|
57
|
+
"@olane/o-config": "0.7.12-alpha.51",
|
|
58
|
+
"@olane/o-core": "0.7.12-alpha.51",
|
|
59
|
+
"@olane/o-lane": "0.7.12-alpha.51",
|
|
60
|
+
"@olane/o-node": "0.7.12-alpha.51",
|
|
61
|
+
"@olane/o-protocol": "0.7.12-alpha.51",
|
|
62
|
+
"@olane/o-tool": "0.7.12-alpha.51",
|
|
63
63
|
"debug": "^4.4.1",
|
|
64
64
|
"dotenv": "^16.5.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "b877e1e95a2bf32845ec30072eb72422fd25aba7"
|
|
67
67
|
}
|