REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.07 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/express/src/errors.ts
Text
Base64
export const MISSING_AUTH_CONFIG_ERROR = 'You must configure either "authenticate" method or assign an auth "provider"'; export const INVALID_AUTH_CONFIG_ERROR = 'You cannot configure both "authenticate" and "provider". "authenticate" will be removed in next major release.'; export class WrongArgumentError extends Error { constructor(message: string) { super(message); this.name = "WrongArgumentError"; } } export class OldBodyParserUsedError extends Error { constructor( message = ` You probably used old \`body-parser\` middleware, which is not compatible with @adminjs/express. In order to make it work you will have to 1. move body-parser invocation after the AdminJS setup like this: const adminJs = new AdminJS() const router = new buildRouter(adminJs) app.use(adminJs.options.rootPath, router) // body parser goes after the AdminJS router app.use(bodyParser()) 2. Upgrade body-parser to the latest version and use it like this: app.use(bodyParser.json()) ` ) { super(message); this.name = "WrongArgumentError"; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
authentication
DIR
-
drwxr-xr-x
2026-02-28 00:29:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
typings
DIR
-
drwxr-xr-x
2026-02-28 00:28:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildAuthenticatedRouter.ts
3.17 KB
lrw-r--r--
2026-02-28 00:28:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildRouter.ts
3.57 KB
lrw-r--r--
2026-02-28 00:28:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
convertRoutes.ts
120 B
lrw-r--r--
2026-02-28 00:28:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
errors.ts
1.07 KB
lrw-r--r--
2026-02-28 00:28:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
3.75 KB
lrw-r--r--
2026-02-28 00:29:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
logger.ts
245 B
lrw-r--r--
2026-02-28 00:29:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
types.ts
1.12 KB
lrw-r--r--
2026-02-28 00:29:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).