-
Notifications
You must be signed in to change notification settings - Fork 142
feat: Support secret placeholders in all config fields #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
92ba5f9
bfbbea3
3d87bfa
5e05526
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -186,6 +186,50 @@ const sealSecret = async (value: string): Promise<string> => { | |||||||||||
| return encrypt(value); | ||||||||||||
| }; | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * Helper to check if a value is a plain object (not null, array, Date, etc.) | ||||||||||||
| */ | ||||||||||||
| const isPlainObject = (value: unknown): value is Record<string, unknown> => { | ||||||||||||
| return typeof value === "object" && value !== null && !Array.isArray(value) && value.constructor === Object; | ||||||||||||
|
||||||||||||
| return typeof value === "object" && value !== null && !Array.isArray(value) && value.constructor === Object; | |
| if (typeof value !== "object" || value === null) return false; | |
| if (Object.prototype.toString.call(value) !== "[object Object]") return false; | |
| const proto = Object.getPrototypeOf(value); | |
| return proto === Object.prototype || proto === null; |
Uh oh!
There was an error while loading. Please reload this page.