@owservable/actions 2.0.6 → 2.0.8
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/lib/functions/find.command.action.d.ts +2 -1
- package/lib/functions/find.command.action.js.map +1 -1
- package/lib/functions/run.action.as.command.d.ts +2 -1
- package/lib/functions/run.action.as.command.js +4 -1
- package/lib/functions/run.action.as.command.js.map +1 -1
- package/lib/owservable.actions.d.ts +11 -10
- package/lib/owservable.actions.js +7 -4
- package/lib/owservable.actions.js.map +1 -1
- package/package.json +18 -24
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import ActionAsCommandInterface from '../interfaces/action.as.command.interface';
|
|
2
|
+
export declare const findCommandAction: (root: string, cliCommand: string) => ActionAsCommandInterface | null;
|
|
2
3
|
export default findCommandAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.command.action.js","sourceRoot":"","sources":["../../src/functions/find.command.action.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,iDAAoE;AAI7D,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"find.command.action.js","sourceRoot":"","sources":["../../src/functions/find.command.action.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,iDAAoE;AAI7D,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,UAAkB,EAAmC,EAAE;IACtG,MAAM,WAAW,GAAa,IAAA,yCAA+B,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAE/E,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC;YACJ,MAAM,WAAW,GAAuC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;YACpF,IAAI,CAAC,WAAW;gBAAE,SAAS;YAE3B,MAAM,cAAc,GAA6B,IAAI,WAAW,EAAE,CAAC;YAGnE,MAAM,SAAS,GAAuB,cAAc,CAAC,SAAS,EAAE,CAAC;YACjE,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ;gBAAE,SAAS;YAG1D,MAAM,cAAc,GAAa,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC/D,MAAM,aAAa,GAAW,cAAc,CAAC,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YAE3D,IAAI,UAAU,KAAK,aAAa;gBAAE,OAAO,cAAc,CAAC;QACzD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAEhB,OAAO,CAAC,IAAI,CAAC,oDAAoD,UAAU,GAAG,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACjI,CAAC;IACF,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AA3BW,QAAA,iBAAiB,qBA2B5B;AACF,kBAAe,yBAAiB,CAAC"}
|
|
@@ -8,10 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.runActionAsCommand = void 0;
|
|
13
16
|
const commander_1 = require("commander");
|
|
14
|
-
const get_option_and_default_value_1 = require("../functions/get.option.and.default.value");
|
|
17
|
+
const get_option_and_default_value_1 = __importDefault(require("../functions/get.option.and.default.value"));
|
|
15
18
|
const runActionAsCommand = (action) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
19
|
const program = new commander_1.Command();
|
|
17
20
|
const signature = action.signature();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.action.as.command.js","sourceRoot":"","sources":["../../src/functions/run.action.as.command.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"run.action.as.command.js","sourceRoot":"","sources":["../../src/functions/run.action.as.command.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;AAEb,yCAAkC;AAGlC,6GAAiF;AAE1E,MAAM,kBAAkB,GAAG,CAAO,MAAgC,EAAiB,EAAE;IAC3F,MAAM,OAAO,GAAY,IAAI,mBAAO,EAAE,CAAC;IACvC,MAAM,SAAS,GAAW,MAAM,CAAC,SAAS,EAAE,CAAC;IAC7C,MAAM,aAAa,GAAW,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtD,OAAO;SACL,IAAI,CAAC,UAAU,CAAC;SAChB,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;IAEpC,MAAM,OAAO,GAAoB,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAC/D,IAAI,OAAO,EAAE,CAAC;QACb,OAAO,CAAC,OAAO,CAAC,CAAC,MAAc,EAAQ,EAAE;YACxC,MAAM,EAAC,MAAM,EAAE,YAAY,EAAC,GAAuD,IAAA,sCAAwB,EAAC,MAAM,CAAC,CAAC;YACpH,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC,CAAA,CAAC;AArBW,QAAA,kBAAkB,sBAqB7B;AACF,kBAAe,0BAAkB,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import findCommandAction from './functions/find.command.action';
|
|
2
2
|
import runActionAsCommand from './functions/run.action.as.command';
|
|
3
3
|
import getOptionAndDefaultValue from './functions/get.option.and.default.value';
|
|
4
|
-
import ActionInterface from './interfaces/action.interface';
|
|
5
|
-
import ActionAsWorkerInterface from './interfaces/action.as.worker.interface';
|
|
6
|
-
import ActionAsWatcherInterface from './interfaces/action.as.watcher.interface';
|
|
7
|
-
import ActionAsCommandInterface from './interfaces/action.as.command.interface';
|
|
8
|
-
import ActionAsCronjobInterface from './interfaces/action.as.cronjob.interface';
|
|
9
|
-
import ActionAsControllerInterface from './interfaces/action.as.controller.interface';
|
|
4
|
+
import type ActionInterface from './interfaces/action.interface';
|
|
5
|
+
import type ActionAsWorkerInterface from './interfaces/action.as.worker.interface';
|
|
6
|
+
import type ActionAsWatcherInterface from './interfaces/action.as.watcher.interface';
|
|
7
|
+
import type ActionAsCommandInterface from './interfaces/action.as.command.interface';
|
|
8
|
+
import type ActionAsCronjobInterface from './interfaces/action.as.cronjob.interface';
|
|
9
|
+
import type ActionAsControllerInterface from './interfaces/action.as.controller.interface';
|
|
10
10
|
import Action from './abstracts/action';
|
|
11
|
-
import CommandSignatureType from './types/command.signature.type';
|
|
12
|
-
import CommandOptionType from './types/command.option.type';
|
|
13
|
-
import CommandContextType from './types/command.context.type';
|
|
14
|
-
export { findCommandAction, runActionAsCommand, getOptionAndDefaultValue,
|
|
11
|
+
import type CommandSignatureType from './types/command.signature.type';
|
|
12
|
+
import type CommandOptionType from './types/command.option.type';
|
|
13
|
+
import type CommandContextType from './types/command.context.type';
|
|
14
|
+
export { findCommandAction, runActionAsCommand, getOptionAndDefaultValue, Action };
|
|
15
|
+
export type { ActionInterface, ActionAsWorkerInterface, ActionAsWatcherInterface, ActionAsCommandInterface, ActionAsCronjobInterface, ActionAsControllerInterface, CommandSignatureType, CommandOptionType, CommandContextType };
|
|
15
16
|
declare const OwservableActions: {};
|
|
16
17
|
export default OwservableActions;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.Action = exports.getOptionAndDefaultValue = exports.runActionAsCommand = exports.findCommandAction = void 0;
|
|
4
|
-
const find_command_action_1 = require("./functions/find.command.action");
|
|
7
|
+
const find_command_action_1 = __importDefault(require("./functions/find.command.action"));
|
|
5
8
|
exports.findCommandAction = find_command_action_1.default;
|
|
6
|
-
const run_action_as_command_1 = require("./functions/run.action.as.command");
|
|
9
|
+
const run_action_as_command_1 = __importDefault(require("./functions/run.action.as.command"));
|
|
7
10
|
exports.runActionAsCommand = run_action_as_command_1.default;
|
|
8
|
-
const get_option_and_default_value_1 = require("./functions/get.option.and.default.value");
|
|
11
|
+
const get_option_and_default_value_1 = __importDefault(require("./functions/get.option.and.default.value"));
|
|
9
12
|
exports.getOptionAndDefaultValue = get_option_and_default_value_1.default;
|
|
10
|
-
const action_1 = require("./abstracts/action");
|
|
13
|
+
const action_1 = __importDefault(require("./abstracts/action"));
|
|
11
14
|
exports.Action = action_1.default;
|
|
12
15
|
const OwservableActions = {};
|
|
13
16
|
exports.default = OwservableActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owservable.actions.js","sourceRoot":"","sources":["../src/owservable.actions.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"owservable.actions.js","sourceRoot":"","sources":["../src/owservable.actions.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AAGb,0FAAgE;AAoBxD,4BApBD,6BAAiB,CAoBC;AAnBzB,8FAAmE;AAmBxC,6BAnBpB,+BAAkB,CAmBoB;AAlB7C,4GAAgF;AAkBjC,mCAlBxC,sCAAwB,CAkBwC;AAPvE,gEAAwC;AAOiC,iBAPlE,gBAAM,CAOkE;AAY/E,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,kBAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owservable/actions",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "actions pattern",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.11.0"
|
|
@@ -22,15 +22,14 @@
|
|
|
22
22
|
"clear:lib": "del /S /Q lib\\*",
|
|
23
23
|
"build": "pnpm clear:lib & tsc",
|
|
24
24
|
"build:watch": "tsc --watch",
|
|
25
|
-
"lint": "
|
|
26
|
-
"clean": "
|
|
25
|
+
"lint": "eslint .",
|
|
26
|
+
"clean": "eslint --fix .",
|
|
27
27
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
28
28
|
"sync": "git pull & git fetch origin & git merge origin/main & pnpm i & git branch",
|
|
29
29
|
"docs": "typedoc --readme none --out docs src/owservable.actions.ts",
|
|
30
30
|
"test": "jest --coverage --config jest.config.js",
|
|
31
31
|
"quick": "jest --config jest.config.js",
|
|
32
32
|
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
|
|
33
|
-
"sonar": "sonarjs -e .sonarlint/**,node_modules/**,coverage/**,.nyc_output/**",
|
|
34
33
|
"test_qube": "jest --coverage --config jest.config.js --reporter=jest-sonar-reporter",
|
|
35
34
|
"up": "pnpm up -i",
|
|
36
35
|
"latest": "pnpm up -i -L",
|
|
@@ -39,38 +38,30 @@
|
|
|
39
38
|
"preinstall": "npx only-allow pnpm"
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
|
-
"@owservable/folders": "^2.0.
|
|
43
|
-
"@types/node": "^25.
|
|
41
|
+
"@owservable/folders": "^2.0.8",
|
|
42
|
+
"@types/node": "^25.6.0",
|
|
44
43
|
"commander": "^14.0.3"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
46
|
+
"@eslint/js": "^10.0.1",
|
|
47
47
|
"@types/jest": "^30.0.0",
|
|
48
48
|
"coveralls": "^3.0.9",
|
|
49
|
+
"eslint": "^10.2.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.1",
|
|
51
|
+
"eslint-plugin-sonarjs": "^4.0.2",
|
|
49
52
|
"jest": "^30.3.0",
|
|
50
53
|
"jest-sonar-reporter": "^2.0.0",
|
|
51
|
-
"prettier": "^3.8.
|
|
54
|
+
"prettier": "^3.8.3",
|
|
52
55
|
"skeletest": "^0.7.4",
|
|
53
|
-
"sonarjs": "^1.0.0",
|
|
54
56
|
"source-map-support": "^0.5.21",
|
|
55
57
|
"strictr": "^0.5.6",
|
|
56
|
-
"ts-jest": "^29.4.
|
|
58
|
+
"ts-jest": "^29.4.9",
|
|
57
59
|
"ts-node": "^10.9.2",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"typedoc": "^0.28.18",
|
|
62
|
-
"typescript": "^5.9.3"
|
|
60
|
+
"typedoc": "^0.28.19",
|
|
61
|
+
"typescript": "^6.0.2",
|
|
62
|
+
"typescript-eslint": "^8.46.0"
|
|
63
63
|
},
|
|
64
64
|
"pnpm": {
|
|
65
|
-
"allowedDeprecatedVersions": {
|
|
66
|
-
"tslint": "6.1.3"
|
|
67
|
-
},
|
|
68
|
-
"updateConfig": {
|
|
69
|
-
"ignoreDependencies": [
|
|
70
|
-
"sonarjs",
|
|
71
|
-
"tslint"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
65
|
"overrides": {
|
|
75
66
|
"mem@<4.0.0": ">=4.0.0",
|
|
76
67
|
"yargs-parser@>=6.0.0 <13.1.2": ">=13.1.2",
|
|
@@ -99,7 +90,10 @@
|
|
|
99
90
|
"minimatch@>=10.0.0 <10.2.1": ">=10.2.1",
|
|
100
91
|
"minimatch@>=10.0.0 <10.2.3": ">=10.2.3",
|
|
101
92
|
"minimatch@<3.1.4": ">=3.1.4",
|
|
102
|
-
"ajv@<6.14.0": ">=6.14.0"
|
|
93
|
+
"ajv@<6.14.0": ">=6.14.0",
|
|
94
|
+
"brace-expansion@>=2.0.0 <2.0.3": ">=2.0.3",
|
|
95
|
+
"lodash@>=4.0.0 <=4.17.23": ">=4.18.0",
|
|
96
|
+
"lodash@<=4.17.23": ">=4.18.0"
|
|
103
97
|
},
|
|
104
98
|
"neverBuiltDependencies": []
|
|
105
99
|
},
|