diff --git a/package-lock.json b/package-lock.json index 612bf4f..d02b13d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5366,6 +5366,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=10" } @@ -5382,6 +5383,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=10" } @@ -5398,6 +5400,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -5414,6 +5417,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -5430,6 +5434,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -5446,6 +5451,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -5462,6 +5468,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -5478,6 +5485,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -5494,6 +5502,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -5510,6 +5519,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -9723,6 +9733,10 @@ "node": ">= 0.10.0" } }, + "node_modules/express-dapp": { + "resolved": "sites/express-dapp", + "link": true + }, "node_modules/express-session": { "version": "1.17.3", "license": "MIT", @@ -17478,7 +17492,7 @@ "typescript": "^5.3.3" }, "engines": { - "node": ">=18.0.0 <21.0.0" + "node": ">=18.0.0" } }, "sites/dapp-ui": { @@ -17535,6 +17549,41 @@ "funding": { "url": "https://github.com/sponsors/isaacs" } + }, + "sites/express-dapp": { + "version": "0.0.1", + "license": "AGPL-3.0", + "dependencies": { + "@liquid/auth-api": "*", + "@nestjs/common": "^10.0.0", + "@nestjs/core": "^10.0.0", + "@nestjs/platform-express": "^10.0.0", + "reflect-metadata": "^0.1.13", + "rxjs": "^7.8.1" + }, + "devDependencies": { + "@nestjs/cli": "^10.0.0", + "@nestjs/schematics": "^10.0.0", + "@nestjs/testing": "^10.0.0", + "@types/express": "^4.17.17", + "@types/jest": "^29.5.2", + "@types/node": "^20.3.1", + "@types/supertest": "^2.0.12", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "eslint": "^8.42.0", + "eslint-config-prettier": "^9.0.0", + "eslint-plugin-prettier": "^5.0.0", + "jest": "^29.5.0", + "prettier": "^3.0.0", + "source-map-support": "^0.5.21", + "supertest": "^6.3.3", + "ts-jest": "^29.1.0", + "ts-loader": "^9.4.3", + "ts-node": "^10.9.1", + "tsconfig-paths": "^4.2.0", + "typescript": "^5.1.3" + } } } } diff --git a/services/liquid-auth-api-js/package.json b/services/liquid-auth-api-js/package.json index eb97b12..495121b 100644 --- a/services/liquid-auth-api-js/package.json +++ b/services/liquid-auth-api-js/package.json @@ -9,6 +9,14 @@ "files": [ "./src/**/*.md" ], + "main": "dist/src/index.js", + "types": "dist/src/index.d.ts", + "exports": { + ".": { + "default": "./dist/src/index.js", + "types": "./dist/src/index.d.ts" + } + }, "scripts": { "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", diff --git a/services/liquid-auth-api-js/src/assertion/assertion.controller.ts b/services/liquid-auth-api-js/src/assertion/assertion.controller.ts index c4865b1..a8de005 100644 --- a/services/liquid-auth-api-js/src/assertion/assertion.controller.ts +++ b/services/liquid-auth-api-js/src/assertion/assertion.controller.ts @@ -30,14 +30,9 @@ import { ApiUnauthorizedResponse, } from '@nestjs/swagger'; import { User } from '../auth/auth.schema.js'; -// TODO: Make doc loader utility -const filePath = join(process.cwd(), './src/assertion'); -const requestDescription = readFileSync( - join(filePath, 'assertion.controller.post.request.md'), -).toString(); -const responseDescription = readFileSync( - join(filePath, 'assertion.controller.post.response.md'), -).toString(); +// TODO: make a loader for descriptions +const requestDescription = ''; +const responseDescription = ''; /** * Assertion Controller diff --git a/services/liquid-auth-api-js/src/auth/index.ts b/services/liquid-auth-api-js/src/auth/index.ts new file mode 100644 index 0000000..53a24c7 --- /dev/null +++ b/services/liquid-auth-api-js/src/auth/index.ts @@ -0,0 +1,6 @@ +export * from './auth.controller.js'; +export * from './auth.guard.js'; +export * from './auth.module.js'; +export * from './auth.schema.js'; +export * from './auth.service.js'; +export * from './session.schema.js'; diff --git a/services/liquid-auth-api-js/src/index.ts b/services/liquid-auth-api-js/src/index.ts new file mode 100644 index 0000000..2de8035 --- /dev/null +++ b/services/liquid-auth-api-js/src/index.ts @@ -0,0 +1,5 @@ +export * from './auth/index.js'; +export * from './app.module.js'; +export * from './app.service.js'; +export * from './sentry.filter.js'; +export * from './adapters/redis-io.adapter.js';