@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.
@@ -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;AAQvB;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CA4U7E"}
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: crypto.randomUUID(),
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: crypto.randomUUID(),
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.4",
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": "file:../o-config",
38
- "@olane/o-core": "file:../..",
39
- "@olane/o-protocol": "file:../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.4",
58
- "@olane/o-core": "^0.3.4",
59
- "@olane/o-protocol": "^0.3.4"
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",
@@ -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
@@ -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"}
package/dist/node.tool.js DELETED
@@ -1,7 +0,0 @@
1
- import { oTool } from './o-tool.js';
2
- import { oHostNode } from '@olane/o-core';
3
- export class oHostNodeTool extends oTool(oHostNode) {
4
- constructor(config) {
5
- super(config);
6
- }
7
- }