@bejibun/core 0.1.33 → 0.1.35

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.
@@ -0,0 +1,3 @@
1
+ export * from "../bases/BaseController";
2
+ export * from "../bases/BaseModel";
3
+ export * from "../bases/BaseValidator";
package/bases/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "../bases/BaseController";
2
+ export * from "../bases/BaseModel";
3
+ export * from "../bases/BaseValidator";
@@ -1,5 +1,5 @@
1
- import type { IMiddleware } from "@/types/middleware";
2
- import type { HandlerType, ResourceAction, RouterGroup } from "@/types/router";
1
+ import type { IMiddleware } from "../types/middleware";
2
+ import type { HandlerType, ResourceAction, RouterGroup } from "../types/router";
3
3
  import HttpMethodEnum from "../enums/HttpMethodEnum";
4
4
  export interface ResourceOptions {
5
5
  only?: Array<ResourceAction>;
package/bun.lock CHANGED
@@ -16,9 +16,6 @@
16
16
  "@types/luxon": "^3.7.1",
17
17
  "tsc-alias": "^1.8.16",
18
18
  },
19
- "peerDependencies": {
20
- "typescript": "^5",
21
- },
22
19
  },
23
20
  },
24
21
  "packages": {
@@ -212,8 +209,6 @@
212
209
 
213
210
  "tsc-alias": ["tsc-alias@1.8.16", "", { "dependencies": { "chokidar": "^3.5.3", "commander": "^9.0.0", "get-tsconfig": "^4.10.0", "globby": "^11.0.4", "mylas": "^2.1.9", "normalize-path": "^3.0.0", "plimit-lit": "^1.2.6" }, "bin": { "tsc-alias": "dist/bin/index.js" } }, "sha512-QjCyu55NFyRSBAl6+MTFwplpFcnm2Pq01rR/uxfqJoLMm6X3O14KEGtaSDZpJYaE1bJBGDjD0eSuiIWPe2T58g=="],
214
211
 
215
- "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
216
-
217
212
  "undici-types": ["undici-types@7.14.0", "", {}, "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA=="],
218
213
 
219
214
  "validator": ["validator@13.15.15", "", {}, "sha512-BgWVbCI72aIQy937xbawcs+hrVaN/CZ2UwutgaJ36hGqRrLNM+f5LUT/YPRbo8IV/ASeFzXszezV+y2+rq3l8A=="],
@@ -0,0 +1,2 @@
1
+ export * from "../enums/CorsHeaderEnum";
2
+ export * from "../enums/HttpMethodEnum";
package/enums/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "../enums/CorsHeaderEnum";
2
+ export * from "../enums/HttpMethodEnum";
@@ -0,0 +1,3 @@
1
+ export * from "../exceptions/ModelNotFoundException";
2
+ export * from "../exceptions/RouterInvalidException";
3
+ export * from "../exceptions/ValidatorException";
@@ -0,0 +1,3 @@
1
+ export * from "../exceptions/ModelNotFoundException";
2
+ export * from "../exceptions/RouterInvalidException";
3
+ export * from "../exceptions/ValidatorException";
@@ -1,5 +1,5 @@
1
- import type { IMiddleware } from "@/types/middleware";
2
- import type { HandlerType, RouterGroup } from "@/types/router";
1
+ import type { IMiddleware } from "../types/middleware";
2
+ import type { HandlerType, RouterGroup } from "../types/router";
3
3
  import RouterBuilder, { ResourceOptions } from "../builders/RouterBuilder";
4
4
  import HttpMethodEnum from "../enums/HttpMethodEnum";
5
5
  export default class Router {
@@ -0,0 +1,6 @@
1
+ export * from "../facades/Chalk";
2
+ export * from "../facades/Enum";
3
+ export * from "../facades/Response";
4
+ export * from "../facades/Router";
5
+ export * from "../facades/SoftDeletes";
6
+ export * from "../facades/Str";
@@ -0,0 +1,6 @@
1
+ export * from "../facades/Chalk";
2
+ export * from "../facades/Enum";
3
+ export * from "../facades/Response";
4
+ export * from "../facades/Router";
5
+ export * from "../facades/SoftDeletes";
6
+ export * from "../facades/Str";
package/index.d.ts CHANGED
@@ -1 +1,5 @@
1
+ export * from "./bases/index";
2
+ export * from "./enums/index";
3
+ export * from "./exceptions/index";
4
+ export * from "./facades/index";
1
5
  export * from "./utils/utils";
package/index.js CHANGED
@@ -1 +1,5 @@
1
+ export * from "./bases/index";
2
+ export * from "./enums/index";
3
+ export * from "./exceptions/index";
4
+ export * from "./facades/index";
1
5
  export * from "./utils/utils";
package/package.json CHANGED
@@ -1,36 +1,13 @@
1
1
  {
2
2
  "name": "@bejibun/core",
3
- "version": "0.1.33",
4
- "description": "Core of Bejibun Framework",
5
- "keywords": [
6
- "bun",
7
- "bun framework",
8
- "core",
9
- "bejibun",
10
- "typescript"
11
- ],
12
- "homepage": "https://github.com/crenata/bejibun-core#readme",
13
- "bugs": {
14
- "url": "https://github.com/crenata/bejibun-core/issues"
15
- },
3
+ "version": "0.1.35",
4
+ "author": "Havea Crenata <havea.crenata@gmail.com>",
16
5
  "repository": {
17
6
  "type": "git",
18
7
  "url": "git+https://github.com/crenata/bejibun-core.git"
19
8
  },
20
- "license": "MIT",
21
- "author": "Havea Crenata <havea.crenata@gmail.com>",
22
- "type": "module",
23
9
  "main": "index.js",
24
10
  "module": "index.js",
25
- "types": "index.d.ts",
26
- "scripts": {
27
- "alias": "bunx tsc-alias -p tsconfig.json",
28
- "copy": "cp -rf src/types dist",
29
- "rsync": "rsync -a dist/ ./",
30
- "clean": "rm -rf dist",
31
- "build": "bunx tsc -p tsconfig.json && bun run alias && bun run copy && bun run rsync && bun run clean",
32
- "deploy": "bun run build && npm publish --access public"
33
- },
34
11
  "dependencies": {
35
12
  "@vinejs/vine": "^3.0.1",
36
13
  "chalk": "^5.6.2",
@@ -44,7 +21,27 @@
44
21
  "@types/luxon": "^3.7.1",
45
22
  "tsc-alias": "^1.8.16"
46
23
  },
47
- "peerDependencies": {
48
- "typescript": "^5"
49
- }
24
+ "bugs": {
25
+ "url": "https://github.com/crenata/bejibun-core/issues"
26
+ },
27
+ "description": "Core of Bejibun Framework",
28
+ "homepage": "https://github.com/crenata/bejibun-core#readme",
29
+ "keywords": [
30
+ "bun",
31
+ "bun framework",
32
+ "core",
33
+ "bejibun",
34
+ "typescript"
35
+ ],
36
+ "license": "MIT",
37
+ "scripts": {
38
+ "alias": "bunx tsc-alias -p tsconfig.json",
39
+ "copy": "cp -rf src/types dist",
40
+ "rsync": "rsync -a dist/ ./",
41
+ "clean": "rm -rf dist",
42
+ "build": "bunx tsc -p tsconfig.json && bun run copy && bun run alias && bun run rsync && bun run clean",
43
+ "deploy": "bun run build && npm publish --access public"
44
+ },
45
+ "type": "module",
46
+ "types": "index.d.ts"
50
47
  }
@@ -0,0 +1,3 @@
1
+ export * from "@/bases/BaseController";
2
+ export * from "@/bases/BaseModel";
3
+ export * from "@/bases/BaseValidator";
@@ -0,0 +1,2 @@
1
+ export * from "@/enums/CorsHeaderEnum";
2
+ export * from "@/enums/HttpMethodEnum";
@@ -0,0 +1,3 @@
1
+ export * from "@/exceptions/ModelNotFoundException";
2
+ export * from "@/exceptions/RouterInvalidException";
3
+ export * from "@/exceptions/ValidatorException";
@@ -0,0 +1,6 @@
1
+ export * from "@/facades/Chalk";
2
+ export * from "@/facades/Enum";
3
+ export * from "@/facades/Response";
4
+ export * from "@/facades/Router";
5
+ export * from "@/facades/SoftDeletes";
6
+ export * from "@/facades/Str";
package/src/index.ts CHANGED
@@ -1 +1,9 @@
1
+ export * from "@/bases/index";
2
+
3
+ export * from "@/enums/index";
4
+
5
+ export * from "@/exceptions/index";
6
+
7
+ export * from "@/facades/index";
8
+
1
9
  export * from "@/utils/utils";
@@ -1,2 +1,4 @@
1
1
  export * from "@/types/middleware";
2
- export * from "@/types/router";
2
+ export * from "@/types/router";
3
+ export * from "@/types/validator";
4
+ export * from "@/types/vine";
package/types/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export * from "@/types/middleware";
2
- export * from "@/types/router";
1
+ export * from "../types/middleware";
2
+ export * from "../types/router";
3
+ export * from "../types/validator";
4
+ export * from "../types/vine";
@@ -1,4 +1,4 @@
1
- import type {HandlerType} from "@/types/router";
1
+ import type {HandlerType} from "../types/router";
2
2
 
3
3
  export type MiddlewareType = (handler: HandlerType) => HandlerType;
4
4