@olane/o-tool 0.3.4 → 0.3.6
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.d.ts.map +1 -1
- package/dist/o-tool.js +3 -2
- package/package.json +8 -7
- package/dist/node.tool.d.ts +0 -10
- package/dist/node.tool.d.ts.map +0 -1
- package/dist/node.tool.js +0 -7
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;AASvB;;;;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,6 +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 { v4 as uuidv4 } from 'uuid';
|
|
4
5
|
/**
|
|
5
6
|
* oTool is a mixin that extends the base class and implements the oTool interface
|
|
6
7
|
* @param Base - The base class to extend
|
|
@@ -182,7 +183,7 @@ export function oTool(Base) {
|
|
|
182
183
|
pageContent: m.description,
|
|
183
184
|
metadata: {
|
|
184
185
|
address: this.address?.toString() + '/' + method,
|
|
185
|
-
id:
|
|
186
|
+
id: uuidv4(),
|
|
186
187
|
},
|
|
187
188
|
},
|
|
188
189
|
],
|
|
@@ -225,7 +226,7 @@ export function oTool(Base) {
|
|
|
225
226
|
pageContent: summary,
|
|
226
227
|
metadata: {
|
|
227
228
|
address: this.address?.toString(),
|
|
228
|
-
id:
|
|
229
|
+
id: uuidv4(),
|
|
229
230
|
},
|
|
230
231
|
},
|
|
231
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.6",
|
|
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": "
|
|
38
|
-
"@olane/o-core": "
|
|
39
|
-
"@olane/o-protocol": "
|
|
37
|
+
"@olane/o-config": "0.3.6",
|
|
38
|
+
"@olane/o-core": "0.3.6",
|
|
39
|
+
"@olane/o-protocol": "0.3.6",
|
|
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.6",
|
|
59
|
+
"@olane/o-core": "^0.3.6",
|
|
60
|
+
"@olane/o-protocol": "^0.3.6"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"debug": "^4.4.1",
|
package/dist/node.tool.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
package/dist/node.tool.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|