@owservable/actions 0.0.8 → 0.1.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/lib/abstracts/action.d.ts +8 -8
- package/lib/abstracts/action.js +19 -19
- package/lib/functions/find.command.action.d.ts +3 -3
- package/lib/functions/find.command.action.js +22 -22
- package/lib/functions/get.option.and.default.value.d.ts +5 -5
- package/lib/functions/get.option.and.default.value.js +14 -14
- package/lib/functions/run.action.as.command.d.ts +3 -3
- package/lib/functions/run.action.as.command.js +33 -33
- package/lib/interfaces/action.as.command.interface.d.ts +5 -5
- package/lib/interfaces/action.as.command.interface.js +2 -2
- package/lib/interfaces/action.as.controller.interface.d.ts +5 -5
- package/lib/interfaces/action.as.controller.interface.js +2 -2
- package/lib/interfaces/action.as.cronjob.interface.d.ts +7 -7
- package/lib/interfaces/action.as.cronjob.interface.js +2 -2
- package/lib/interfaces/action.as.watcher.interface.d.ts +5 -5
- package/lib/interfaces/action.as.watcher.interface.js +2 -2
- package/lib/interfaces/action.as.worker.interface.d.ts +5 -5
- package/lib/interfaces/action.as.worker.interface.js +2 -2
- package/lib/interfaces/action.interface.d.ts +4 -4
- package/lib/interfaces/action.interface.js +2 -2
- package/lib/owservable.actions.d.ts +13 -13
- package/lib/owservable.actions.js +13 -13
- package/package.json +8 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default abstract class Action {
|
|
2
|
-
protected _signature: string;
|
|
3
|
-
protected _description: string;
|
|
4
|
-
protected _schedule: string;
|
|
5
|
-
signature(): string;
|
|
6
|
-
description(): string;
|
|
7
|
-
schedule(): string;
|
|
8
|
-
}
|
|
1
|
+
export default abstract class Action {
|
|
2
|
+
protected _signature: string;
|
|
3
|
+
protected _description: string;
|
|
4
|
+
protected _schedule: string;
|
|
5
|
+
signature(): string;
|
|
6
|
+
description(): string;
|
|
7
|
+
schedule(): string;
|
|
8
|
+
}
|
package/lib/abstracts/action.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class Action {
|
|
4
|
-
constructor() {
|
|
5
|
-
this._signature = '';
|
|
6
|
-
this._description = '';
|
|
7
|
-
this._schedule = '';
|
|
8
|
-
}
|
|
9
|
-
signature() {
|
|
10
|
-
return this._signature;
|
|
11
|
-
}
|
|
12
|
-
description() {
|
|
13
|
-
return this._description;
|
|
14
|
-
}
|
|
15
|
-
schedule() {
|
|
16
|
-
return this._schedule;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = Action;
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Action {
|
|
4
|
+
constructor() {
|
|
5
|
+
this._signature = '';
|
|
6
|
+
this._description = '';
|
|
7
|
+
this._schedule = '';
|
|
8
|
+
}
|
|
9
|
+
signature() {
|
|
10
|
+
return this._signature;
|
|
11
|
+
}
|
|
12
|
+
description() {
|
|
13
|
+
return this._description;
|
|
14
|
+
}
|
|
15
|
+
schedule() {
|
|
16
|
+
return this._schedule;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = Action;
|
|
20
20
|
//# sourceMappingURL=action.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ActionAsCommandInterface from '../interfaces/action.as.command.interface';
|
|
2
|
-
export declare const findCommandAction: (root: string, cliCommand: string) => ActionAsCommandInterface;
|
|
3
|
-
export default findCommandAction;
|
|
1
|
+
import ActionAsCommandInterface from '../interfaces/action.as.command.interface';
|
|
2
|
+
export declare const findCommandAction: (root: string, cliCommand: string) => ActionAsCommandInterface;
|
|
3
|
+
export default findCommandAction;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findCommandAction = void 0;
|
|
4
|
-
const lodash_1 = require("lodash");
|
|
5
|
-
const folders_1 = require("@owservable/folders");
|
|
6
|
-
const findCommandAction = (root, cliCommand) => {
|
|
7
|
-
const actionPaths = (0, folders_1.listSubfoldersFilesByFolderName)(root, 'actions');
|
|
8
|
-
let action;
|
|
9
|
-
(0, lodash_1.each)(actionPaths, (actionPath) => {
|
|
10
|
-
console.log(' - [@owservable/actions] Initializing command action', actionPath);
|
|
11
|
-
const ActionClass = require(actionPath).default;
|
|
12
|
-
const actionInstance = new ActionClass();
|
|
13
|
-
const actionCommand = (0, lodash_1.first)(actionInstance.signature().split(' '));
|
|
14
|
-
if (cliCommand === actionCommand) {
|
|
15
|
-
action = actionInstance;
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return action;
|
|
20
|
-
};
|
|
21
|
-
exports.findCommandAction = findCommandAction;
|
|
22
|
-
exports.default = exports.findCommandAction;
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findCommandAction = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
const folders_1 = require("@owservable/folders");
|
|
6
|
+
const findCommandAction = (root, cliCommand) => {
|
|
7
|
+
const actionPaths = (0, folders_1.listSubfoldersFilesByFolderName)(root, 'actions');
|
|
8
|
+
let action;
|
|
9
|
+
(0, lodash_1.each)(actionPaths, (actionPath) => {
|
|
10
|
+
console.log(' - [@owservable/actions] Initializing command action', actionPath);
|
|
11
|
+
const ActionClass = require(actionPath).default;
|
|
12
|
+
const actionInstance = new ActionClass();
|
|
13
|
+
const actionCommand = (0, lodash_1.first)(actionInstance.signature().split(' '));
|
|
14
|
+
if (cliCommand === actionCommand) {
|
|
15
|
+
action = actionInstance;
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return action;
|
|
20
|
+
};
|
|
21
|
+
exports.findCommandAction = findCommandAction;
|
|
22
|
+
exports.default = exports.findCommandAction;
|
|
23
23
|
//# sourceMappingURL=find.command.action.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const getOptionAndDefaultValue: (config: string) => {
|
|
2
|
-
option: string;
|
|
3
|
-
defaultValue: string;
|
|
4
|
-
};
|
|
5
|
-
export default getOptionAndDefaultValue;
|
|
1
|
+
export declare const getOptionAndDefaultValue: (config: string) => {
|
|
2
|
+
option: string;
|
|
3
|
+
defaultValue: string;
|
|
4
|
+
};
|
|
5
|
+
export default getOptionAndDefaultValue;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getOptionAndDefaultValue = void 0;
|
|
4
|
-
const getOptionAndDefaultValue = (config) => {
|
|
5
|
-
let defaultValue;
|
|
6
|
-
let option = config.substring(1).substring(-1).slice(0, -1);
|
|
7
|
-
if (option.indexOf('=') >= 0) {
|
|
8
|
-
defaultValue = option.substring(option.indexOf('=') + 1).slice(0, -1);
|
|
9
|
-
option = option.replace('=' + defaultValue, '');
|
|
10
|
-
}
|
|
11
|
-
return { option, defaultValue };
|
|
12
|
-
};
|
|
13
|
-
exports.getOptionAndDefaultValue = getOptionAndDefaultValue;
|
|
14
|
-
exports.default = exports.getOptionAndDefaultValue;
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOptionAndDefaultValue = void 0;
|
|
4
|
+
const getOptionAndDefaultValue = (config) => {
|
|
5
|
+
let defaultValue;
|
|
6
|
+
let option = config.substring(1).substring(-1).slice(0, -1);
|
|
7
|
+
if (option.indexOf('=') >= 0) {
|
|
8
|
+
defaultValue = option.substring(option.indexOf('=') + 1).slice(0, -1);
|
|
9
|
+
option = option.replace('=' + defaultValue, '');
|
|
10
|
+
}
|
|
11
|
+
return { option, defaultValue };
|
|
12
|
+
};
|
|
13
|
+
exports.getOptionAndDefaultValue = getOptionAndDefaultValue;
|
|
14
|
+
exports.default = exports.getOptionAndDefaultValue;
|
|
15
15
|
//# sourceMappingURL=get.option.and.default.value.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ActionAsCommandInterface from '../interfaces/action.as.command.interface';
|
|
2
|
-
export declare const runActionAsCommand: (action: ActionAsCommandInterface) => Promise<void>;
|
|
3
|
-
export default runActionAsCommand;
|
|
1
|
+
import ActionAsCommandInterface from '../interfaces/action.as.command.interface';
|
|
2
|
+
export declare const runActionAsCommand: (action: ActionAsCommandInterface) => Promise<void>;
|
|
3
|
+
export default runActionAsCommand;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.runActionAsCommand = void 0;
|
|
13
|
-
const commander_1 = require("commander");
|
|
14
|
-
const lodash_1 = require("lodash");
|
|
15
|
-
const get_option_and_default_value_1 = require("../functions/get.option.and.default.value");
|
|
16
|
-
const runActionAsCommand = (action) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
const program = new commander_1.Command();
|
|
18
|
-
const signature = action.signature();
|
|
19
|
-
const actionCommand = (0, lodash_1.first)(signature.split(' '));
|
|
20
|
-
program
|
|
21
|
-
.name('pnpm cli')
|
|
22
|
-
.command(actionCommand)
|
|
23
|
-
.description(action.description());
|
|
24
|
-
const options = signature.match(/{([^}]*)}/g);
|
|
25
|
-
(0, lodash_1.each)(options, (config) => {
|
|
26
|
-
const { option, defaultValue } = (0, get_option_and_default_value_1.default)(config);
|
|
27
|
-
program.option(option, '', defaultValue);
|
|
28
|
-
});
|
|
29
|
-
program.parse(process.argv);
|
|
30
|
-
return action.asCommand(program.opts());
|
|
31
|
-
});
|
|
32
|
-
exports.runActionAsCommand = runActionAsCommand;
|
|
33
|
-
exports.default = exports.runActionAsCommand;
|
|
1
|
+
'use strict';
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.runActionAsCommand = void 0;
|
|
13
|
+
const commander_1 = require("commander");
|
|
14
|
+
const lodash_1 = require("lodash");
|
|
15
|
+
const get_option_and_default_value_1 = require("../functions/get.option.and.default.value");
|
|
16
|
+
const runActionAsCommand = (action) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
+
const program = new commander_1.Command();
|
|
18
|
+
const signature = action.signature();
|
|
19
|
+
const actionCommand = (0, lodash_1.first)(signature.split(' '));
|
|
20
|
+
program
|
|
21
|
+
.name('pnpm cli')
|
|
22
|
+
.command(actionCommand)
|
|
23
|
+
.description(action.description());
|
|
24
|
+
const options = signature.match(/{([^}]*)}/g);
|
|
25
|
+
(0, lodash_1.each)(options, (config) => {
|
|
26
|
+
const { option, defaultValue } = (0, get_option_and_default_value_1.default)(config);
|
|
27
|
+
program.option(option, '', defaultValue);
|
|
28
|
+
});
|
|
29
|
+
program.parse(process.argv);
|
|
30
|
+
return action.asCommand(program.opts());
|
|
31
|
+
});
|
|
32
|
+
exports.runActionAsCommand = runActionAsCommand;
|
|
33
|
+
exports.default = exports.runActionAsCommand;
|
|
34
34
|
//# sourceMappingURL=run.action.as.command.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ActionInterface from './action.interface';
|
|
2
|
-
export default interface ActionAsCommandInterface extends ActionInterface {
|
|
3
|
-
signature(): string;
|
|
4
|
-
asCommand(options: any): Promise<void>;
|
|
5
|
-
}
|
|
1
|
+
import ActionInterface from './action.interface';
|
|
2
|
+
export default interface ActionAsCommandInterface extends ActionInterface {
|
|
3
|
+
signature(): string;
|
|
4
|
+
asCommand(options: any): Promise<void>;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=action.as.command.interface.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ActionInterface from './action.interface';
|
|
2
|
-
export default interface ActionAsControllerInterface extends ActionInterface {
|
|
3
|
-
routes(): Promise<any>;
|
|
4
|
-
asController(request: any, reply: any): Promise<void>;
|
|
5
|
-
}
|
|
1
|
+
import ActionInterface from './action.interface';
|
|
2
|
+
export default interface ActionAsControllerInterface extends ActionInterface {
|
|
3
|
+
routes(): Promise<any>;
|
|
4
|
+
asController(request: any, reply: any): Promise<void>;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=action.as.controller.interface.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ActionInterface from './action.interface';
|
|
2
|
-
export default interface ActionAsCronjobInterface extends ActionInterface {
|
|
3
|
-
schedule(): string;
|
|
4
|
-
asCronjob(): Promise<void>;
|
|
5
|
-
asCronjobInit?(): Promise<void>;
|
|
6
|
-
cronjobOptions?(): string;
|
|
7
|
-
}
|
|
1
|
+
import ActionInterface from './action.interface';
|
|
2
|
+
export default interface ActionAsCronjobInterface extends ActionInterface {
|
|
3
|
+
schedule(): string;
|
|
4
|
+
asCronjob(): Promise<void>;
|
|
5
|
+
asCronjobInit?(): Promise<void>;
|
|
6
|
+
cronjobOptions?(): string;
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=action.as.cronjob.interface.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ActionInterface from './action.interface';
|
|
2
|
-
export default interface ActionAsWatcherInterface extends ActionInterface {
|
|
3
|
-
asWatcher(): Promise<void>;
|
|
4
|
-
asWatcherInit?(): Promise<void>;
|
|
5
|
-
}
|
|
1
|
+
import ActionInterface from './action.interface';
|
|
2
|
+
export default interface ActionAsWatcherInterface extends ActionInterface {
|
|
3
|
+
asWatcher(): Promise<void>;
|
|
4
|
+
asWatcherInit?(): Promise<void>;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=action.as.watcher.interface.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ActionInterface from './action.interface';
|
|
2
|
-
export default interface ActionAsWorkerInterface extends ActionInterface {
|
|
3
|
-
asWorker(): Promise<void>;
|
|
4
|
-
asWorkerInit?(): Promise<void>;
|
|
5
|
-
}
|
|
1
|
+
import ActionInterface from './action.interface';
|
|
2
|
+
export default interface ActionAsWorkerInterface extends ActionInterface {
|
|
3
|
+
asWorker(): Promise<void>;
|
|
4
|
+
asWorkerInit?(): Promise<void>;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=action.as.worker.interface.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default interface ActionInterface {
|
|
2
|
-
description(): string;
|
|
3
|
-
handle(...args: any[]): Promise<any>;
|
|
4
|
-
}
|
|
1
|
+
export default interface ActionInterface {
|
|
2
|
+
description(): string;
|
|
3
|
+
handle(...args: any[]): Promise<any>;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=action.interface.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import findCommandAction from './functions/find.command.action';
|
|
2
|
-
import runActionAsCommand from './functions/run.action.as.command';
|
|
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';
|
|
10
|
-
import Action from './abstracts/action';
|
|
11
|
-
export { findCommandAction, runActionAsCommand, getOptionAndDefaultValue, ActionInterface, ActionAsWorkerInterface, ActionAsWatcherInterface, ActionAsCommandInterface, ActionAsCronjobInterface, ActionAsControllerInterface, Action };
|
|
12
|
-
declare const OwservableActions: {};
|
|
13
|
-
export default OwservableActions;
|
|
1
|
+
import findCommandAction from './functions/find.command.action';
|
|
2
|
+
import runActionAsCommand from './functions/run.action.as.command';
|
|
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';
|
|
10
|
+
import Action from './abstracts/action';
|
|
11
|
+
export { findCommandAction, runActionAsCommand, getOptionAndDefaultValue, ActionInterface, ActionAsWorkerInterface, ActionAsWatcherInterface, ActionAsCommandInterface, ActionAsCronjobInterface, ActionAsControllerInterface, Action };
|
|
12
|
+
declare const OwservableActions: {};
|
|
13
|
+
export default OwservableActions;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Action = exports.getOptionAndDefaultValue = exports.runActionAsCommand = exports.findCommandAction = void 0;
|
|
4
|
-
const find_command_action_1 = require("./functions/find.command.action");
|
|
5
|
-
exports.findCommandAction = find_command_action_1.default;
|
|
6
|
-
const run_action_as_command_1 = require("./functions/run.action.as.command");
|
|
7
|
-
exports.runActionAsCommand = run_action_as_command_1.default;
|
|
8
|
-
const get_option_and_default_value_1 = require("./functions/get.option.and.default.value");
|
|
9
|
-
exports.getOptionAndDefaultValue = get_option_and_default_value_1.default;
|
|
10
|
-
const action_1 = require("./abstracts/action");
|
|
11
|
-
exports.Action = action_1.default;
|
|
12
|
-
const OwservableActions = {};
|
|
13
|
-
exports.default = OwservableActions;
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Action = exports.getOptionAndDefaultValue = exports.runActionAsCommand = exports.findCommandAction = void 0;
|
|
4
|
+
const find_command_action_1 = require("./functions/find.command.action");
|
|
5
|
+
exports.findCommandAction = find_command_action_1.default;
|
|
6
|
+
const run_action_as_command_1 = require("./functions/run.action.as.command");
|
|
7
|
+
exports.runActionAsCommand = run_action_as_command_1.default;
|
|
8
|
+
const get_option_and_default_value_1 = require("./functions/get.option.and.default.value");
|
|
9
|
+
exports.getOptionAndDefaultValue = get_option_and_default_value_1.default;
|
|
10
|
+
const action_1 = require("./abstracts/action");
|
|
11
|
+
exports.Action = action_1.default;
|
|
12
|
+
const OwservableActions = {};
|
|
13
|
+
exports.default = OwservableActions;
|
|
14
14
|
//# sourceMappingURL=owservable.actions.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owservable/actions",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "list subfolders by name",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"preinstall": "npx only-allow pnpm"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@owservable/folders": "^0.0
|
|
39
|
-
"@types/lodash": "^4.14.
|
|
40
|
-
"@types/node": "^18.11
|
|
41
|
-
"commander": "^
|
|
38
|
+
"@owservable/folders": "^0.1.0",
|
|
39
|
+
"@types/lodash": "^4.14.192",
|
|
40
|
+
"@types/node": "^18.15.11",
|
|
41
|
+
"commander": "^10.0.0",
|
|
42
42
|
"lodash": "^4.17.20"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"coveralls": "^3.0.9",
|
|
50
50
|
"mocha": "^10.2.0",
|
|
51
51
|
"nyc": "^15.1.0",
|
|
52
|
-
"prettier": "^2.8.
|
|
52
|
+
"prettier": "^2.8.7",
|
|
53
53
|
"sonarjs": "^1.0.0",
|
|
54
54
|
"source-map-support": "^0.5.21",
|
|
55
55
|
"ts-node": "^10.9.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tslint-config-prettier": "^1.18.0",
|
|
58
58
|
"tslint-etc": "^1.13.7",
|
|
59
59
|
"tslint-no-unused-expression-chai": "^0.1.4",
|
|
60
|
-
"typedoc": "^0.
|
|
61
|
-
"typescript": "^
|
|
60
|
+
"typedoc": "^0.24.1",
|
|
61
|
+
"typescript": "^5.0.4"
|
|
62
62
|
}
|
|
63
63
|
}
|