@igstack/app-catalog-backend-core 4.0.0-alpha-20260920014237 → 4.0.0-alpha-20260920124718
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","names":[],"sources":["../../../src/modules/auth/auth.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"auth.d.mts","names":[],"sources":["../../../src/modules/auth/auth.ts"],"mappings":";;;KAKY,UAAA,GAAa,UAAA,QAAkB,UAAA;AAAA,iBAE3B,UAAA,CAAW,OAAA,EAAS,iBAAA,GAAoB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.mjs","names":[],"sources":["../../../src/modules/auth/auth.ts"],"sourcesContent":["import type { BetterAuthOptions } from 'better-auth'\nimport { betterAuth } from 'better-auth'\nimport { prismaAdapter } from 'better-auth/adapters/prisma'\nimport { getDbClient } from '../../db'\n\
|
|
1
|
+
{"version":3,"file":"auth.mjs","names":[],"sources":["../../../src/modules/auth/auth.ts"],"sourcesContent":["import type { BetterAuthOptions } from 'better-auth'\nimport { betterAuth } from 'better-auth'\nimport { prismaAdapter } from 'better-auth/adapters/prisma'\nimport { getDbClient } from '../../db'\n\nexport type BetterAuth = ReturnType<typeof betterAuth<any>>\n\nexport function createAuth(options: BetterAuthOptions): BetterAuth {\n const prisma = getDbClient()\n return betterAuth({\n ...options,\n basePath: '/api/auth',\n database: prismaAdapter(prisma, { provider: 'postgresql' }),\n })\n}\n"],"mappings":";;;;;AAOA,SAAgB,WAAW,SAAwC;CACjE,MAAM,SAAS,aAAa;AAC5B,QAAO,WAAW;EAChB,GAAG;EACH,UAAU;EACV,UAAU,cAAc,QAAQ,EAAE,UAAU,cAAc,CAAC;EAC5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igstack/app-catalog-backend-core",
|
|
3
|
-
"version": "4.0.0-alpha-
|
|
3
|
+
"version": "4.0.0-alpha-20260920124718",
|
|
4
4
|
"description": "Backend core library for App Catalog",
|
|
5
5
|
"homepage": "https://github.com/lislon/app-catalog",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"tsyringe": "^4.10.0",
|
|
46
46
|
"yaml": "^2.8.0",
|
|
47
47
|
"zod": "^4.3.5",
|
|
48
|
-
"@igstack/app-catalog-shared-core": "4.0.0-alpha-
|
|
49
|
-
"@igstack/app-catalog-table-sync": "4.0.0-alpha-
|
|
48
|
+
"@igstack/app-catalog-shared-core": "4.0.0-alpha-20260920124718",
|
|
49
|
+
"@igstack/app-catalog-table-sync": "4.0.0-alpha-20260920124718"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tanstack/vite-config": "^0.4.3",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=24"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2e00035a66ffa54d07eecbaeb7d75feafa564582",
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsdown",
|
|
79
79
|
"build:lenient": "tsdown",
|
package/src/modules/auth/auth.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { betterAuth } from 'better-auth'
|
|
|
3
3
|
import { prismaAdapter } from 'better-auth/adapters/prisma'
|
|
4
4
|
import { getDbClient } from '../../db'
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
export type BetterAuth = ReturnType<typeof betterAuth<any>>
|
|
8
7
|
|
|
9
8
|
export function createAuth(options: BetterAuthOptions): BetterAuth {
|