@nattyjs/common 0.0.1-beta.47 → 0.0.1-beta.49
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/index.cjs +2 -2
- package/dist/index.d.ts +8 -6
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -603,9 +603,9 @@ function registerType(type) {
|
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
class AbstractRunner {
|
|
606
|
-
stop() {
|
|
606
|
+
async stop() {
|
|
607
607
|
if (this.childProcess)
|
|
608
|
-
|
|
608
|
+
this.childProcess.kill();
|
|
609
609
|
}
|
|
610
610
|
async exec(command, args, cwd = process.cwd()) {
|
|
611
611
|
const options = {
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,11 @@ interface LifeCycleEvents {
|
|
|
88
88
|
onStart: () => Promise<void>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
interface WebScheduleConfig {
|
|
92
|
+
interval: number;
|
|
93
|
+
scheduleFunction: () => Promise<void>;
|
|
94
|
+
}
|
|
95
|
+
|
|
91
96
|
interface NattyConfig {
|
|
92
97
|
app: any;
|
|
93
98
|
testModule?: NattyTestModule;
|
|
@@ -102,16 +107,13 @@ interface NattyConfig {
|
|
|
102
107
|
payload?: PayloadConfig;
|
|
103
108
|
secure?: SecureConfig;
|
|
104
109
|
lifeCycle?: LifeCycleEvents;
|
|
105
|
-
|
|
106
|
-
interval: number;
|
|
107
|
-
scheduleFunction: () => Promise<void>;
|
|
108
|
-
};
|
|
110
|
+
webSchedules?: Array<WebScheduleConfig>;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
declare abstract class AbstractRunner {
|
|
112
114
|
abstract run(): void;
|
|
113
115
|
childProcess: ChildProcess;
|
|
114
|
-
stop():
|
|
116
|
+
stop(): Promise<void>;
|
|
115
117
|
protected exec(command: string, args: any[], cwd?: string): Promise<null | string>;
|
|
116
118
|
}
|
|
117
119
|
|
|
@@ -314,4 +316,4 @@ declare function typed(): <T extends {
|
|
|
314
316
|
new (...args: any[]): {};
|
|
315
317
|
}>(OriginalClass: T) => T;
|
|
316
318
|
|
|
317
|
-
export { ALLOW_METHODS, AbstractRunner, ActionFilter, AuthenticationFilter, AuthorizationFilter, BACK_SLASH_REGEX, BLANK, CONTROLLER, Claim, ClassType, ConsoleLogger, DEFAULT_ACTIONS, DEFAULT_CHILD_PATH, DELETE, ENVIRONMENTS, ExceptionFilter, FrameworkType, GET, GlobalConfig, HTTP_METHOD_ROUTES, IActionExecutedContext, IActionExecutingContext, IAuthorizationContext, IExecutionContext, IGNORE_METHODS, List, MetaConfigProps, Middleware, NattyAppConfig, NattyCliConfig, NattyConfig, POST, PUT, RIGHT_SLASH, ROUTE_INSTANCES, ROUTE_METHODS, ROUTE_PATHS, TS_EXTENSION, UserIdentity, commonContainer, createPath, createTestServer, getPath, getPort, isConstructor, isEqual, isFunction, isObject, readEnv, readEnvKey, registerType, typeContainer, typed };
|
|
319
|
+
export { ALLOW_METHODS, AbstractRunner, ActionFilter, AuthenticationFilter, AuthorizationFilter, BACK_SLASH_REGEX, BLANK, CONTROLLER, Claim, ClassType, ConsoleLogger, DEFAULT_ACTIONS, DEFAULT_CHILD_PATH, DELETE, ENVIRONMENTS, ExceptionFilter, FrameworkType, GET, GlobalConfig, HTTP_METHOD_ROUTES, IActionExecutedContext, IActionExecutingContext, IAuthorizationContext, IExecutionContext, IGNORE_METHODS, List, MetaConfigProps, Middleware, NattyAppConfig, NattyCliConfig, NattyConfig, POST, PUT, RIGHT_SLASH, ROUTE_INSTANCES, ROUTE_METHODS, ROUTE_PATHS, TS_EXTENSION, UserIdentity, WebScheduleConfig, commonContainer, createPath, createTestServer, getPath, getPort, isConstructor, isEqual, isFunction, isObject, readEnv, readEnvKey, registerType, typeContainer, typed };
|
package/dist/index.mjs
CHANGED
|
@@ -586,9 +586,9 @@ function registerType(type) {
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
class AbstractRunner {
|
|
589
|
-
stop() {
|
|
589
|
+
async stop() {
|
|
590
590
|
if (this.childProcess)
|
|
591
|
-
|
|
591
|
+
this.childProcess.kill();
|
|
592
592
|
}
|
|
593
593
|
async exec(command, args, cwd = process.cwd()) {
|
|
594
594
|
const options = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattyjs/common",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.49",
|
|
4
4
|
"description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "ajayojha <ojhaajay@outlook.com>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "20.3.1",
|
|
24
|
-
"@nattyjs/types": "0.0.1-beta.
|
|
24
|
+
"@nattyjs/types": "0.0.1-beta.49",
|
|
25
25
|
"unbuild": "1.2.1"
|
|
26
26
|
}
|
|
27
27
|
}
|