arkos 0.1.0-beta.1 → 0.1.2-beta.1
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/exports/error-handler/index.d.ts +3 -8
- package/dist/exports/error-handler/index.d.ts.map +1 -1
- package/dist/exports/error-handler/index.js +2 -8
- package/dist/exports/error-handler/index.js.map +1 -1
- package/dist/exports/index.d.ts +0 -4
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/index.js +4 -4
- package/dist/exports/index.js.map +1 -1
- package/package.json +24 -6
|
@@ -1,12 +1,7 @@
|
|
|
1
|
+
import catchAsync from "../../modules/error-handler/utils/catch-async";
|
|
1
2
|
import AppError from "../../modules/error-handler/utils/app-error";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @namespace errorHandler
|
|
6
|
-
* @property {Function} catchAsync - A function to catch asynchronous errors.
|
|
7
|
-
* @property {Class} AppError - The AppError class to handle errors.
|
|
8
|
-
*/
|
|
9
|
-
export declare const errorHandler: {
|
|
3
|
+
export { catchAsync, AppError };
|
|
4
|
+
declare const errorHandler: {
|
|
10
5
|
catchAsync: (fn: import("express").RequestHandler) => (req: import("express").Request, res: import("express").Response, next: import("express").NextFunction) => void;
|
|
11
6
|
AppError: typeof AppError;
|
|
12
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/error-handler/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/error-handler/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,OAAO,QAAQ,MAAM,6CAA6C,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;AAEhC,QAAA,MAAM,YAAY;2DAM4Y,8BAAY,EAAC,+BAAc,EAAC,oCAAmB;;CAH5c,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import catchAsync from "../../modules/error-handler/utils/catch-async";
|
|
2
2
|
import AppError from "../../modules/error-handler/utils/app-error";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @namespace errorHandler
|
|
7
|
-
* @property {Function} catchAsync - A function to catch asynchronous errors.
|
|
8
|
-
* @property {Class} AppError - The AppError class to handle errors.
|
|
9
|
-
*/
|
|
10
|
-
export const errorHandler = {
|
|
3
|
+
export { catchAsync, AppError };
|
|
4
|
+
const errorHandler = {
|
|
11
5
|
catchAsync,
|
|
12
6
|
AppError,
|
|
13
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/error-handler/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,OAAO,QAAQ,MAAM,6CAA6C,CAAC;AAEnE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exports/error-handler/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,OAAO,QAAQ,MAAM,6CAA6C,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;AAEhC,MAAM,YAAY,GAAG;IACnB,UAAU;IACV,QAAQ;CACT,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/exports/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;CAEV,CAAC;AAEF;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;CAEV,CAAC;AAEF;;;;GAIG;AAMH,eAAe,KAAK,CAAC"}
|
package/dist/exports/index.js
CHANGED
|
@@ -13,9 +13,9 @@ const arkos = {
|
|
|
13
13
|
*
|
|
14
14
|
* @module arkos
|
|
15
15
|
*/
|
|
16
|
-
export * from "./services";
|
|
17
|
-
export * from "./utils";
|
|
18
|
-
export * from "./validation";
|
|
19
|
-
export * from "./error-handler";
|
|
16
|
+
// export * from "./services";
|
|
17
|
+
// export * from "./utils";
|
|
18
|
+
// export * from "./validation";
|
|
19
|
+
// export * from "./error-handler";
|
|
20
20
|
export default arkos;
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,OAAO;CACd,CAAC;AAEF;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,OAAO;CACd,CAAC;AAEF;;;;GAIG;AACH,8BAA8B;AAC9B,2BAA2B;AAC3B,gCAAgC;AAChC,mCAAmC;AAEnC,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arkos",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-beta.1",
|
|
4
4
|
"description": "A super customizable TypeScript package for auto-generating API routes with built-in authentication, email service, error handling, file upload routes, image upload optimization, and seamless Prisma integration.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"module": "dist/index.mjs",
|
|
5
|
+
"main": "dist/exports/index.js",
|
|
6
|
+
"types": "dist/exports/index.d.ts",
|
|
7
|
+
"module": "dist/exports/index.mjs",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/exports/index.mjs",
|
|
11
|
+
"require": "./dist/exports/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./services": {
|
|
14
|
+
"import": "./dist/exports/services/index.mjs",
|
|
15
|
+
"require": "./dist/exports/services/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./utils": {
|
|
18
|
+
"import": "./dist/exports/utils/index.mjs",
|
|
19
|
+
"require": "./dist/exports/utils/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./validation": {
|
|
22
|
+
"import": "./dist/exports/validation/index.mjs",
|
|
23
|
+
"require": "./dist/exports/validation/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./error-handler": {
|
|
26
|
+
"import": "./dist/exports/error-handler/index.mjs",
|
|
27
|
+
"require": "./dist/exports/error-handler/index.js"
|
|
28
|
+
}
|
|
11
29
|
},
|
|
12
30
|
"scripts": {
|
|
13
31
|
"build": "tsc",
|