(value: string)
| 1606 | } |
| 1607 | |
| 1608 | function validateBaseUpdateFieldsEnv(value: string): string | undefined { |
| 1609 | try { |
| 1610 | const parsed = JSON.parse(value) as unknown; |
| 1611 | if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) { |
| 1612 | return "must_be_json_object"; |
| 1613 | } |
| 1614 | return undefined; |
| 1615 | } catch { |
| 1616 | return "must_be_valid_json"; |
| 1617 | } |
| 1618 | } |
| 1619 | |
| 1620 | function loadLarkSdk(): LarkSdkModule { |
| 1621 | const require = createRequire(new URL("../../packages/services/package.json", import.meta.url)); |
nothing calls this directly
no outgoing calls
no test coverage detected