@olane/o-tool 0.3.5 → 0.3.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/o-tool.js +3 -3
- package/package.json +8 -7
package/dist/o-tool.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
5
5
|
/**
|
|
6
6
|
* oTool is a mixin that extends the base class and implements the oTool interface
|
|
7
7
|
* @param Base - The base class to extend
|
|
@@ -183,7 +183,7 @@ export function oTool(Base) {
|
|
|
183
183
|
pageContent: m.description,
|
|
184
184
|
metadata: {
|
|
185
185
|
address: this.address?.toString() + '/' + method,
|
|
186
|
-
id:
|
|
186
|
+
id: uuidv4(),
|
|
187
187
|
},
|
|
188
188
|
},
|
|
189
189
|
],
|
|
@@ -226,7 +226,7 @@ export function oTool(Base) {
|
|
|
226
226
|
pageContent: summary,
|
|
227
227
|
metadata: {
|
|
228
228
|
address: this.address?.toString(),
|
|
229
|
-
id:
|
|
229
|
+
id: uuidv4(),
|
|
230
230
|
},
|
|
231
231
|
},
|
|
232
232
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-tool",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/eslintrc": "^3.3.1",
|
|
36
36
|
"@eslint/js": "^9.29.0",
|
|
37
|
-
"@olane/o-config": "0.3.
|
|
38
|
-
"@olane/o-core": "0.3.
|
|
39
|
-
"@olane/o-protocol": "0.3.
|
|
37
|
+
"@olane/o-config": "0.3.7",
|
|
38
|
+
"@olane/o-core": "0.3.7",
|
|
39
|
+
"@olane/o-protocol": "0.3.7",
|
|
40
40
|
"@tsconfig/node20": "^20.1.6",
|
|
41
41
|
"@types/jest": "^30.0.0",
|
|
42
|
+
"@types/uuid": "^10.0.0",
|
|
42
43
|
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
43
44
|
"@typescript-eslint/parser": "^8.34.1",
|
|
44
45
|
"eslint": "^9.29.0",
|
|
@@ -54,9 +55,9 @@
|
|
|
54
55
|
"typescript": "^5.8.3"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
|
-
"@olane/o-config": "^0.3.
|
|
58
|
-
"@olane/o-core": "^0.3.
|
|
59
|
-
"@olane/o-protocol": "^0.3.
|
|
58
|
+
"@olane/o-config": "^0.3.7",
|
|
59
|
+
"@olane/o-core": "^0.3.7",
|
|
60
|
+
"@olane/o-protocol": "^0.3.7"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"debug": "^4.4.1",
|