@inversifyjs/http-better-auth 2.0.0
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 +20 -0
- package/LICENSE +21 -0
- package/README.md +6 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.d.ts +3 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.js +34 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.js.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpressController.d.ts +3 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpressController.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpressController.js +34 -0
- package/lib/cjs/auth/calculations/buildBetterAuthExpressController.js.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthFastifyController.d.ts +3 -0
- package/lib/cjs/auth/calculations/buildBetterAuthFastifyController.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthFastifyController.js +86 -0
- package/lib/cjs/auth/calculations/buildBetterAuthFastifyController.js.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthHonoController.d.ts +3 -0
- package/lib/cjs/auth/calculations/buildBetterAuthHonoController.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthHonoController.js +32 -0
- package/lib/cjs/auth/calculations/buildBetterAuthHonoController.js.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.d.ts +6 -0
- package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.js +13 -0
- package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.js.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.d.ts +5 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.js +13 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.js.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.spec.d.ts +2 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.spec.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.d.ts +5 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.js +13 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.js.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.spec.d.ts +2 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.spec.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.d.ts +5 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.js +14 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.js.map +1 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.spec.d.ts +2 -0
- package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.spec.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/getBetterAuthFromRequest.d.ts +4 -0
- package/lib/cjs/auth/calculations/getBetterAuthFromRequest.d.ts.map +1 -0
- package/lib/cjs/auth/calculations/getBetterAuthFromRequest.js +13 -0
- package/lib/cjs/auth/calculations/getBetterAuthFromRequest.js.map +1 -0
- package/lib/cjs/auth/calculations/getBetterAuthFromRequest.spec.d.ts +2 -0
- package/lib/cjs/auth/calculations/getBetterAuthFromRequest.spec.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.d.ts +2 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.int.spec.d.ts +2 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.js +10 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.js.map +1 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.spec.d.ts +2 -0
- package/lib/cjs/auth/decorators/ExpressUserSession.spec.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.d.ts +2 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.int.spec.d.ts +2 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.js +10 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.js.map +1 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.spec.d.ts +2 -0
- package/lib/cjs/auth/decorators/FastifyUserSession.spec.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/HonoUserSession.d.ts +2 -0
- package/lib/cjs/auth/decorators/HonoUserSession.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/HonoUserSession.int.spec.d.ts +2 -0
- package/lib/cjs/auth/decorators/HonoUserSession.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/decorators/HonoUserSession.js +10 -0
- package/lib/cjs/auth/decorators/HonoUserSession.js.map +1 -0
- package/lib/cjs/auth/decorators/HonoUserSession.spec.d.ts +2 -0
- package/lib/cjs/auth/decorators/HonoUserSession.spec.d.ts.map +1 -0
- package/lib/cjs/auth/models/BetterAuth.d.ts +3 -0
- package/lib/cjs/auth/models/BetterAuth.d.ts.map +1 -0
- package/lib/cjs/auth/models/BetterAuth.js +3 -0
- package/lib/cjs/auth/models/BetterAuth.js.map +1 -0
- package/lib/cjs/auth/models/UserSession.d.ts +6 -0
- package/lib/cjs/auth/models/UserSession.d.ts.map +1 -0
- package/lib/cjs/auth/models/UserSession.js +3 -0
- package/lib/cjs/auth/models/UserSession.js.map +1 -0
- package/lib/cjs/auth/models/betterAuthControllerServiceIdentifier.d.ts +2 -0
- package/lib/cjs/auth/models/betterAuthControllerServiceIdentifier.d.ts.map +1 -0
- package/lib/cjs/auth/models/betterAuthControllerServiceIdentifier.js +5 -0
- package/lib/cjs/auth/models/betterAuthControllerServiceIdentifier.js.map +1 -0
- package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.d.ts +2 -0
- package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.d.ts.map +1 -0
- package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.js +5 -0
- package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.js.map +1 -0
- package/lib/cjs/auth/models/betterAuthProperty.d.ts +2 -0
- package/lib/cjs/auth/models/betterAuthProperty.d.ts.map +1 -0
- package/lib/cjs/auth/models/betterAuthProperty.js +5 -0
- package/lib/cjs/auth/models/betterAuthProperty.js.map +1 -0
- package/lib/cjs/auth/models/betterAuthServiceIdentifier.d.ts +2 -0
- package/lib/cjs/auth/models/betterAuthServiceIdentifier.d.ts.map +1 -0
- package/lib/cjs/auth/models/betterAuthServiceIdentifier.js +5 -0
- package/lib/cjs/auth/models/betterAuthServiceIdentifier.js.map +1 -0
- package/lib/cjs/auth/services/BaseBetterAuthContainerModule.d.ts +13 -0
- package/lib/cjs/auth/services/BaseBetterAuthContainerModule.d.ts.map +1 -0
- package/lib/cjs/auth/services/BaseBetterAuthContainerModule.js +31 -0
- package/lib/cjs/auth/services/BaseBetterAuthContainerModule.js.map +1 -0
- package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.d.ts +9 -0
- package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.int.spec.d.ts +2 -0
- package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.js +15 -0
- package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.js.map +1 -0
- package/lib/cjs/auth/services/BetterAuthExpressContainerModule.d.ts +9 -0
- package/lib/cjs/auth/services/BetterAuthExpressContainerModule.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthExpressContainerModule.int.spec.d.ts +2 -0
- package/lib/cjs/auth/services/BetterAuthExpressContainerModule.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthExpressContainerModule.js +15 -0
- package/lib/cjs/auth/services/BetterAuthExpressContainerModule.js.map +1 -0
- package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.d.ts +9 -0
- package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.int.spec.d.ts +2 -0
- package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.js +15 -0
- package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.js.map +1 -0
- package/lib/cjs/auth/services/BetterAuthHonoContainerModule.d.ts +9 -0
- package/lib/cjs/auth/services/BetterAuthHonoContainerModule.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthHonoContainerModule.int.spec.d.ts +2 -0
- package/lib/cjs/auth/services/BetterAuthHonoContainerModule.int.spec.d.ts.map +1 -0
- package/lib/cjs/auth/services/BetterAuthHonoContainerModule.js +15 -0
- package/lib/cjs/auth/services/BetterAuthHonoContainerModule.js.map +1 -0
- package/lib/cjs/index.d.ts +11 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +20 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/esm/index.d.ts +49 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +3 -0
- package/package.json +88 -0
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Roberto Pintos López",
|
|
3
|
+
"bugs": {
|
|
4
|
+
"url": "https://github.com/inversify/monorepo/issues"
|
|
5
|
+
},
|
|
6
|
+
"description": "InversifyJs http Better Auth package",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@inversifyjs/http-core": "2.0.0"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@hono/node-server": "1.19.4",
|
|
12
|
+
"@stryker-mutator/core": "9.1.1",
|
|
13
|
+
"@stryker-mutator/typescript-checker": "9.1.1",
|
|
14
|
+
"@stryker-mutator/vitest-runner": "9.1.1",
|
|
15
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
16
|
+
"@types/express": "5.0.3",
|
|
17
|
+
"@types/express4": "npm:@types/express@4.17.23",
|
|
18
|
+
"@types/node": "22.18.6",
|
|
19
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
20
|
+
"better-sqlite3": "^12.3.0",
|
|
21
|
+
"eslint": "9.36.0",
|
|
22
|
+
"fastify": "5.6.1",
|
|
23
|
+
"hono": "4.9.8",
|
|
24
|
+
"prettier": "3.6.2",
|
|
25
|
+
"rimraf": "6.0.1",
|
|
26
|
+
"rollup": "4.52.0",
|
|
27
|
+
"ts-loader": "9.5.4",
|
|
28
|
+
"tslib": "2.8.1",
|
|
29
|
+
"typescript": "5.9.2",
|
|
30
|
+
"vitest": "3.2.4",
|
|
31
|
+
"@inversifyjs/http-express": "2.0.0",
|
|
32
|
+
"@inversifyjs/http-express-v4": "2.0.0",
|
|
33
|
+
"@inversifyjs/http-fastify": "2.0.0",
|
|
34
|
+
"@inversifyjs/http-hono": "2.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devEngines": {
|
|
37
|
+
"node": "^22.10.2",
|
|
38
|
+
"pnpm": "^10.13.1"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://inversify.io",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"dependency injection",
|
|
43
|
+
"dependency inversion",
|
|
44
|
+
"di",
|
|
45
|
+
"inversion of control container",
|
|
46
|
+
"ioc",
|
|
47
|
+
"javascript",
|
|
48
|
+
"node",
|
|
49
|
+
"typescript"
|
|
50
|
+
],
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"main": "lib/cjs/index.js",
|
|
53
|
+
"module": "lib/esm/index.js",
|
|
54
|
+
"exports": {
|
|
55
|
+
".": {
|
|
56
|
+
"import": "./lib/esm/index.js",
|
|
57
|
+
"require": "./lib/cjs/index.js"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"name": "@inversifyjs/http-better-auth",
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"better-auth": "^1.3.13",
|
|
63
|
+
"inversify": "^7.10.0"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public"
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/inversify/monorepo.git"
|
|
71
|
+
},
|
|
72
|
+
"version": "2.0.0",
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "pnpm run build:cjs && pnpm run build:esm",
|
|
75
|
+
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
|
|
76
|
+
"build:esm": "rollup -c ./rollup.config.mjs && pnpm exec foundation-ts-package-esm ./lib/esm",
|
|
77
|
+
"build:clean": "rimraf lib",
|
|
78
|
+
"format": "prettier --write ./src",
|
|
79
|
+
"lint": "eslint ./src",
|
|
80
|
+
"prebuild": "pnpm run build:clean",
|
|
81
|
+
"test": "vitest run",
|
|
82
|
+
"test:integration": "pnpm run test --project Integration",
|
|
83
|
+
"test:coverage": "pnpm run test:unit --coverage",
|
|
84
|
+
"test:mutation": "stryker run",
|
|
85
|
+
"test:uncommitted": "pnpm run test --changed=HEAD",
|
|
86
|
+
"test:unit": "pnpm run test --project Unit"
|
|
87
|
+
}
|
|
88
|
+
}
|