@odg/command 1.24.4 → 1.26.0
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/Generators/MakeFile.d.ts +1 -1
- package/dist/Generators/MakeFile.d.ts.map +1 -1
- package/dist/Generators/MakeFile.js +22 -28
- package/dist/Generators/MakeFile.js.map +1 -1
- package/dist/Generators/StubCreator.js +18 -24
- package/dist/Generators/StubCreator.js.map +1 -1
- package/dist/Registrations/pascal-to-dot-lower.js +2 -6
- package/dist/Registrations/pascal-to-dot-lower.js.map +1 -1
- package/dist/Registrations/register.d.ts +1 -1
- package/dist/Registrations/register.d.ts.map +1 -1
- package/dist/Registrations/register.js +24 -27
- package/dist/Registrations/register.js.map +1 -1
- package/dist/Registrations/ts-mutators.js +20 -30
- package/dist/Registrations/ts-mutators.js.map +1 -1
- package/dist/Registrations/types.js +1 -2
- package/dist/index.js +12 -17
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/odg.js +2 -1
- package/package.json +19 -12
- package/stubs/handler.stub +3 -11
- /package/{agents.md → AGENTS.md} +0 -0
package/odg.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odg/command",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "ODGCommander used to create files based in stubs",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"homepage": "https://github.com/ODGodinho/ODGMono/tree/main/packages/commander",
|
|
8
15
|
"repository": {
|
|
9
16
|
"type": "git",
|
|
@@ -35,28 +42,28 @@
|
|
|
35
42
|
"./dist/",
|
|
36
43
|
"./stubs/",
|
|
37
44
|
"./README.md",
|
|
38
|
-
"./
|
|
45
|
+
"./AGENTS.md"
|
|
39
46
|
],
|
|
40
47
|
"author": "Dragons Gamers <https://www.linkedin.com/in/victor-alves-odgodinho>",
|
|
41
48
|
"license": "MIT",
|
|
42
49
|
"devDependencies": {
|
|
43
|
-
"@odg/eslint-config": "^3.
|
|
50
|
+
"@odg/eslint-config": "^3.18.0",
|
|
44
51
|
"@odg/tsconfig": "^1.9.0",
|
|
45
52
|
"@types/node": ">=24",
|
|
46
|
-
"@vitest/coverage-istanbul": "^
|
|
47
|
-
"concurrently": "^10.0.
|
|
53
|
+
"@vitest/coverage-istanbul": "^5.0.0",
|
|
54
|
+
"concurrently": "^10.0.5",
|
|
48
55
|
"reflect-metadata": "^0.2.2",
|
|
49
56
|
"rimraf": "^6.1.3",
|
|
50
|
-
"tsc-alias": "^1.9.
|
|
51
|
-
"tsx": "^4.23.
|
|
57
|
+
"tsc-alias": "^1.9.4",
|
|
58
|
+
"tsx": "^4.23.13",
|
|
52
59
|
"typescript": "^6.0.3",
|
|
53
|
-
"vite": "^8.
|
|
54
|
-
"vitest": "^
|
|
60
|
+
"vite": "^8.3.0",
|
|
61
|
+
"vitest": "^5.0.0"
|
|
55
62
|
},
|
|
56
63
|
"dependencies": {
|
|
57
|
-
"@odg/chemical-x": "^2.
|
|
58
|
-
"@odg/exception": "^1.
|
|
59
|
-
"@odg/log": "^1.
|
|
64
|
+
"@odg/chemical-x": "^2.19.0",
|
|
65
|
+
"@odg/exception": "^1.20.0",
|
|
66
|
+
"@odg/log": "^1.21.0",
|
|
60
67
|
"commander": "^15.0.0",
|
|
61
68
|
"ts-morph": "^28.0.0"
|
|
62
69
|
}
|
package/stubs/handler.stub
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
type HandlerSolutionType,
|
|
5
5
|
ODGDecorators,
|
|
6
6
|
RetryAction,
|
|
7
|
+
type SelectorType,
|
|
7
8
|
} from "@odg/chemical-x";
|
|
8
9
|
import type { Exception } from "@odg/exception";
|
|
9
10
|
|
|
@@ -13,6 +14,8 @@ import { BaseHandler } from "@handlers/BaseHandler";
|
|
|
13
14
|
@ODGDecorators.injectable(ContainerName.{{ HandlerClassName }})
|
|
14
15
|
export class {{ HandlerClassName }} extends BaseHandler implements HandlerInterface {
|
|
15
16
|
|
|
17
|
+
public readonly $s: SelectorType = {};
|
|
18
|
+
|
|
16
19
|
public async waitForHandler(): Promise<HandlerFunction> {
|
|
17
20
|
return Promise.race([
|
|
18
21
|
this.identifySuccess(),
|
|
@@ -28,17 +31,6 @@ export class {{ HandlerClassName }} extends BaseHandler implements HandlerInterf
|
|
|
28
31
|
return this.config.get(ConfigName.HANDLER_ATTEMPT);
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
public override async retrying(exception: Exception, attempt: number): Promise<RetryAction> {
|
|
32
|
-
await this.logger.debug(`Step {{ HandlerClassName }}: Failed Attempt ${attempt}.`);
|
|
33
|
-
await this.logger.warning(exception.message);
|
|
34
|
-
|
|
35
|
-
return RetryAction.Default;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public override async success(): Promise<void> {
|
|
39
|
-
await this.logger.debug("Step {{ HandlerClassName }} finish with success.");
|
|
40
|
-
}
|
|
41
|
-
|
|
42
34
|
/**
|
|
43
35
|
* Identify if found success page
|
|
44
36
|
*
|
/package/{agents.md → AGENTS.md}
RENAMED
|
File without changes
|