@bbki.ng/backend 0.3.2 → 0.3.4
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/CHANGELOG.md +16 -0
- package/eslint.config.js +12 -0
- package/package.json +14 -2
- package/src/index.ts +7 -9
- package/tsconfig.json +5 -10
- package/worker-configuration.d.ts +10852 -0
- package/src/controllers/authn/db.ts +0 -98
- package/src/controllers/authn/register.controller.ts +0 -53
- package/src/controllers/authn/verify.controller.ts +0 -71
- package/src/routes/authn.routes.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# backend
|
|
2
2
|
|
|
3
|
+
## 0.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e8eb9e: upgrade tailwindcss
|
|
8
|
+
|
|
9
|
+
## 0.3.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f12873e: update config
|
|
14
|
+
- 152ba35: update config
|
|
15
|
+
- 04c87c5: update config
|
|
16
|
+
- 74bdf37: update config
|
|
17
|
+
- 9142b64: update mono repo config
|
|
18
|
+
|
|
3
19
|
## 0.3.2
|
|
4
20
|
|
|
5
21
|
## 0.3.1
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import cloudflareConfig from '@bbki.ng/config/eslint/cloudflare';
|
|
2
|
+
import { includeIgnoreFile } from '@eslint/compat';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
|
|
9
|
+
export default [
|
|
10
|
+
includeIgnoreFile(path.resolve(__dirname, '.gitignore')),
|
|
11
|
+
...cloudflareConfig,
|
|
12
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbki.ng/backend",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@simplewebauthn/server": "13.2.2",
|
|
@@ -8,9 +8,21 @@
|
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@cloudflare/workers-types": "4.20251128.0",
|
|
11
|
+
"@eslint/compat": "^1.0.0",
|
|
12
|
+
"@eslint/js": "^8.57.0",
|
|
11
13
|
"@types/node": "25.0.3",
|
|
12
|
-
"
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
15
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
16
|
+
"eslint": "^8.57.0",
|
|
17
|
+
"eslint-plugin-import": "^2.29.0",
|
|
18
|
+
"eslint-plugin-unicorn": "^51.0.0",
|
|
19
|
+
"globals": "^14.0.0",
|
|
20
|
+
"prettier": "^3.2.0",
|
|
21
|
+
"typescript": "^5.3.0",
|
|
22
|
+
"wrangler": "^4.58.0",
|
|
23
|
+
"@bbki.ng/config": "1.0.2"
|
|
13
24
|
},
|
|
25
|
+
"prettier": "@bbki.ng/config/prettier",
|
|
14
26
|
"scripts": {
|
|
15
27
|
"dev": "wrangler dev",
|
|
16
28
|
"deploy": "wrangler deploy --minify",
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import app from
|
|
1
|
+
import app from './config/app.config';
|
|
2
2
|
|
|
3
|
-
import { commentRouter } from
|
|
4
|
-
import {
|
|
5
|
-
import { streamingRouter } from "./routes/streaming.routes";
|
|
3
|
+
import { commentRouter } from './routes/comment.routes';
|
|
4
|
+
import { streamingRouter } from './routes/streaming.routes';
|
|
6
5
|
|
|
7
|
-
app.route(
|
|
8
|
-
app.route(
|
|
9
|
-
app.route("streaming", streamingRouter);
|
|
6
|
+
app.route('comment', commentRouter);
|
|
7
|
+
app.route('streaming', streamingRouter);
|
|
10
8
|
|
|
11
|
-
app.get(
|
|
12
|
-
return c.text(
|
|
9
|
+
app.get('/', c => {
|
|
10
|
+
return c.text('Hello Hono!');
|
|
13
11
|
});
|
|
14
12
|
|
|
15
13
|
export default app;
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "Bundler",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"lib": [
|
|
9
|
-
"ESNext"
|
|
10
|
-
],
|
|
4
|
+
"moduleResolution": "bundler",
|
|
11
5
|
"jsx": "react-jsx",
|
|
12
|
-
"jsxImportSource": "hono/jsx"
|
|
6
|
+
"jsxImportSource": "hono/jsx",
|
|
7
|
+
"types": ["@cloudflare/workers-types", "node"],
|
|
13
8
|
},
|
|
14
|
-
}
|
|
9
|
+
}
|