( json: JSONType )
| 82 | }; |
| 83 | |
| 84 | export const createSchemaElseUndefined = ( |
| 85 | json: JSONType |
| 86 | ): Schema | undefined => { |
| 87 | if (!json) return undefined; |
| 88 | return createSchema(json); |
| 89 | }; |
| 90 | |
| 91 | export const safelyGetURLHost = (url: string): string | null => { |
| 92 | try { |