@nattyjs/common 0.0.1-beta.4 → 0.0.1-beta.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.
- package/dist/index.cjs +10 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.mjs +10 -1
- package/package.json +7 -4
package/dist/index.cjs
CHANGED
|
@@ -566,6 +566,15 @@ class List {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
+
var FrameworkType = /* @__PURE__ */ ((FrameworkType2) => {
|
|
570
|
+
FrameworkType2[FrameworkType2["Express"] = 0] = "Express";
|
|
571
|
+
FrameworkType2[FrameworkType2["Fastify"] = 1] = "Fastify";
|
|
572
|
+
FrameworkType2[FrameworkType2["AzureFunction"] = 2] = "AzureFunction";
|
|
573
|
+
FrameworkType2[FrameworkType2["Firebase"] = 3] = "Firebase";
|
|
574
|
+
FrameworkType2[FrameworkType2["Lambda"] = 4] = "Lambda";
|
|
575
|
+
return FrameworkType2;
|
|
576
|
+
})(FrameworkType || {});
|
|
577
|
+
|
|
569
578
|
exports.ALLOW_METHODS = ALLOW_METHODS;
|
|
570
579
|
exports.ActionFilter = ActionFilter;
|
|
571
580
|
exports.AuthenticationFilter = AuthenticationFilter;
|
|
@@ -578,6 +587,7 @@ exports.DEFAULT_CHILD_PATH = DEFAULT_CHILD_PATH;
|
|
|
578
587
|
exports.DELETE = DELETE;
|
|
579
588
|
exports.ENVIRONMENTS = ENVIRONMENTS;
|
|
580
589
|
exports.ExceptionFilter = ExceptionFilter;
|
|
590
|
+
exports.FrameworkType = FrameworkType;
|
|
581
591
|
exports.GET = GET;
|
|
582
592
|
exports.HTTP_METHOD_ROUTES = HTTP_METHOD_ROUTES;
|
|
583
593
|
exports.IGNORE_METHODS = IGNORE_METHODS;
|
package/dist/index.d.ts
CHANGED
|
@@ -207,4 +207,16 @@ declare class List<T> {
|
|
|
207
207
|
declare function isObject(value: any): boolean;
|
|
208
208
|
declare function isEqual(first: any, second: any): boolean;
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
declare enum FrameworkType {
|
|
211
|
+
Express = 0,
|
|
212
|
+
Fastify = 1,
|
|
213
|
+
AzureFunction = 2,
|
|
214
|
+
Firebase = 3,
|
|
215
|
+
Lambda = 4
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface NattyAppConfig extends NattyConfig {
|
|
219
|
+
framework: FrameworkType;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export { ALLOW_METHODS, ActionFilter, AuthenticationFilter, AuthorizationFilter, BACK_SLASH_REGEX, BLANK, CONTROLLER, Claim, ClassType, DEFAULT_ACTIONS, DEFAULT_CHILD_PATH, DELETE, ENVIRONMENTS, ExceptionFilter, FrameworkType, GET, GlobalConfig, HTTP_METHOD_ROUTES, IActionExecutedContext, IActionExecutingContext, IExecutionContext, IGNORE_METHODS, List, MetaConfigProps, Middleware, NattyAppConfig, NattyConfig, POST, PUT, RIGHT_SLASH, ROUTE_INSTANCES, ROUTE_METHODS, ROUTE_PATHS, TS_EXTENSION, UserIdentity, commonContainer, createPath, createTestServer, getPath, isConstructor, isEqual, isFunction, isObject, readEnv, readEnvKey, typeContainer };
|
package/dist/index.mjs
CHANGED
|
@@ -548,4 +548,13 @@ class List {
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
|
|
551
|
+
var FrameworkType = /* @__PURE__ */ ((FrameworkType2) => {
|
|
552
|
+
FrameworkType2[FrameworkType2["Express"] = 0] = "Express";
|
|
553
|
+
FrameworkType2[FrameworkType2["Fastify"] = 1] = "Fastify";
|
|
554
|
+
FrameworkType2[FrameworkType2["AzureFunction"] = 2] = "AzureFunction";
|
|
555
|
+
FrameworkType2[FrameworkType2["Firebase"] = 3] = "Firebase";
|
|
556
|
+
FrameworkType2[FrameworkType2["Lambda"] = 4] = "Lambda";
|
|
557
|
+
return FrameworkType2;
|
|
558
|
+
})(FrameworkType || {});
|
|
559
|
+
|
|
560
|
+
export { ALLOW_METHODS, ActionFilter, AuthenticationFilter, AuthorizationFilter, BACK_SLASH_REGEX, BLANK, CONTROLLER, DEFAULT_ACTIONS, DEFAULT_CHILD_PATH, DELETE, ENVIRONMENTS, ExceptionFilter, FrameworkType, GET, HTTP_METHOD_ROUTES, IGNORE_METHODS, List, MetaConfigProps, Middleware, POST, PUT, RIGHT_SLASH, ROUTE_INSTANCES, ROUTE_METHODS, ROUTE_PATHS, TS_EXTENSION, UserIdentity, commonContainer, createPath, createTestServer, getPath, isConstructor, isEqual, isFunction, isObject, readEnv, readEnvKey, typeContainer };
|
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.6",
|
|
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>",
|
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "unbuild"
|
|
16
16
|
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"dotenv": "16.3.1",
|
|
19
|
+
"dotenv-expand": "10.0.0"
|
|
20
|
+
},
|
|
17
21
|
"devDependencies": {
|
|
18
22
|
"@types/node": "20.3.1",
|
|
19
|
-
"@nattyjs/types": "0.0.1-beta.
|
|
20
|
-
"unbuild": "1.2.1"
|
|
21
|
-
"dotenv-expand": "10.0.0"
|
|
23
|
+
"@nattyjs/types": "0.0.1-beta.6",
|
|
24
|
+
"unbuild": "1.2.1"
|
|
22
25
|
}
|
|
23
26
|
}
|