fix: version bump, tsc errors

This commit is contained in:
2026-09-04 11:23:59 +02:00
parent c32569317a
commit c95a452cd8
3 changed files with 19 additions and 14 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@janishutz/login-sdk-server-stubs", "name": "@janishutz/login-sdk-server-stubs",
"version": "1.0.1", "version": "1.4.0",
"description": "Server side client stubs for janishutz.com account service", "description": "Server side client stubs for janishutz.com account service",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
+1 -1
View File
@@ -48,7 +48,7 @@ const getSignedIn = ( _request: express.Request ): boolean => {
* @returns The extra data you stored * @returns The extra data you stored
*/ */
const getExtraSessionData = ( request: express.Request ): object => { const getExtraSessionData = ( request: express.Request ): object => {
return request.session.otherData; return request.session.otherData ?? {};
}; };
+17 -12
View File
@@ -1,13 +1,18 @@
{ {
"compilerOptions": { "compilerOptions": {
"outDir": "./dist", "outDir": "./dist",
"allowJs": true, "rootDir": "./src",
"target": "ES6", "allowJs": true,
"skipLibCheck": true, "target": "ES6",
"allowSyntheticDefaultImports": true, "skipLibCheck": true,
"types": ["node"], "allowSyntheticDefaultImports": true,
"module": "NodeNext", "types": [
"moduleResolution": "NodeNext" "node"
}, ],
"include": [ "./src/**/*" ], "module": "NodeNext",
} "moduleResolution": "NodeNext"
},
"include": [
"./src/**/*"
]
}