@bejibun/core 0.1.32 → 0.1.34
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/bases/index.d.ts +3 -0
- package/bases/index.js +3 -0
- package/builders/RouterBuilder.d.ts +2 -2
- package/bun.lock +0 -5
- package/enums/index.d.ts +2 -0
- package/enums/index.js +2 -0
- package/exceptions/index.d.ts +3 -0
- package/exceptions/index.js +3 -0
- package/facades/Router.d.ts +2 -2
- package/facades/index.d.ts +6 -0
- package/facades/index.js +6 -0
- package/index.d.ts +5 -0
- package/index.js +5 -0
- package/package.json +25 -28
- package/src/bases/index.ts +3 -0
- package/src/enums/index.ts +2 -0
- package/src/exceptions/index.ts +3 -0
- package/src/facades/index.ts +6 -0
- package/src/index.ts +11 -1
- package/src/types/index.d.ts +3 -1
- package/tsconfig.json +1 -1
- package/types/index.d.ts +4 -2
- package/types/middleware.d.ts +1 -1
package/bases/index.d.ts
ADDED
package/bases/index.js
ADDED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IMiddleware } from "
|
|
2
|
-
import type { HandlerType, ResourceAction, RouterGroup } from "
|
|
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=="],
|
package/enums/index.d.ts
ADDED
package/enums/index.js
ADDED
package/facades/Router.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IMiddleware } from "
|
|
2
|
-
import type { HandlerType, RouterGroup } from "
|
|
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 {
|
package/facades/index.js
ADDED
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bejibun/core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
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.34",
|
|
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
|
-
"
|
|
48
|
-
"
|
|
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
|
}
|
package/src/index.ts
CHANGED
package/src/types/index.d.ts
CHANGED
package/tsconfig.json
CHANGED
package/types/index.d.ts
CHANGED
package/types/middleware.d.ts
CHANGED