@olane/o-tool 0.3.2 → 0.3.4
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/node.tool.d.ts +10 -0
- package/dist/node.tool.d.ts.map +1 -0
- package/dist/node.tool.js +7 -0
- package/dist/o-tool.d.ts.map +1 -1
- package/dist/o-tool.js +2 -3
- package/package.json +8 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { oAddress } from '@olane/o-core';
|
|
2
|
+
import { oToolConfig } from './interfaces/tool.interface.js';
|
|
3
|
+
declare const oHostNodeTool_base: any;
|
|
4
|
+
export declare class oHostNodeTool extends oHostNodeTool_base {
|
|
5
|
+
constructor(config: oToolConfig & {
|
|
6
|
+
address: oAddress;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=node.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.tool.d.ts","sourceRoot":"","sources":["../src/node.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAa,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;kCAEL,GAAG;AAA3D,qBAAa,aAAc,SAAQ,kBAAyB;gBAC9C,MAAM,EAAE,WAAW,GAAG;QAAE,OAAO,EAAE,QAAQ,CAAA;KAAE;CAGxD"}
|
package/dist/o-tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-tool.d.ts","sourceRoot":"","sources":["../src/o-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAMV,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"o-tool.d.ts","sourceRoot":"","sources":["../src/o-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAMV,MAAM,eAAe,CAAC;AAQvB;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CA4U7E"}
|
package/dist/o-tool.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CoreUtils, oAddress, oRequest, oToolError, oToolErrorCodes, } from '@olane/o-core';
|
|
2
2
|
import { oProtocolMethods } from '@olane/o-protocol';
|
|
3
3
|
import { ToolUtils } from './tool.utils.js';
|
|
4
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
5
4
|
/**
|
|
6
5
|
* oTool is a mixin that extends the base class and implements the oTool interface
|
|
7
6
|
* @param Base - The base class to extend
|
|
@@ -183,7 +182,7 @@ export function oTool(Base) {
|
|
|
183
182
|
pageContent: m.description,
|
|
184
183
|
metadata: {
|
|
185
184
|
address: this.address?.toString() + '/' + method,
|
|
186
|
-
id:
|
|
185
|
+
id: crypto.randomUUID(),
|
|
187
186
|
},
|
|
188
187
|
},
|
|
189
188
|
],
|
|
@@ -226,7 +225,7 @@ export function oTool(Base) {
|
|
|
226
225
|
pageContent: summary,
|
|
227
226
|
metadata: {
|
|
228
227
|
address: this.address?.toString(),
|
|
229
|
-
id:
|
|
228
|
+
id: crypto.randomUUID(),
|
|
230
229
|
},
|
|
231
230
|
},
|
|
232
231
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-tool",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,12 +34,11 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/eslintrc": "^3.3.1",
|
|
36
36
|
"@eslint/js": "^9.29.0",
|
|
37
|
-
"@olane/o-config": "
|
|
38
|
-
"@olane/o-core": "
|
|
39
|
-
"@olane/o-protocol": "
|
|
37
|
+
"@olane/o-config": "file:../o-config",
|
|
38
|
+
"@olane/o-core": "file:../..",
|
|
39
|
+
"@olane/o-protocol": "file:../o-protocol",
|
|
40
40
|
"@tsconfig/node20": "^20.1.6",
|
|
41
41
|
"@types/jest": "^30.0.0",
|
|
42
|
-
"@types/uuid": "^10.0.0",
|
|
43
42
|
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
44
43
|
"@typescript-eslint/parser": "^8.34.1",
|
|
45
44
|
"eslint": "^9.29.0",
|
|
@@ -55,13 +54,12 @@
|
|
|
55
54
|
"typescript": "^5.8.3"
|
|
56
55
|
},
|
|
57
56
|
"peerDependencies": {
|
|
58
|
-
"@olane/o-config": "^0.3.
|
|
59
|
-
"@olane/o-core": "^0.3.
|
|
60
|
-
"@olane/o-protocol": "^0.3.
|
|
57
|
+
"@olane/o-config": "^0.3.4",
|
|
58
|
+
"@olane/o-core": "^0.3.4",
|
|
59
|
+
"@olane/o-protocol": "^0.3.4"
|
|
61
60
|
},
|
|
62
61
|
"dependencies": {
|
|
63
62
|
"debug": "^4.4.1",
|
|
64
|
-
"dotenv": "^16.5.0"
|
|
65
|
-
"uuid": "^10.0.0"
|
|
63
|
+
"dotenv": "^16.5.0"
|
|
66
64
|
}
|
|
67
65
|
}
|