(command)
| 21 | return fallback; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | function isPlainObject(value) { |
| 26 | return Boolean(value) && typeof value === 'object' && !Array.isArray(value); |
| 27 | } |
| 28 | |
| 29 | function validateHookConfig(data) { |
| 30 | if (!isPlainObject(data)) throw new Error('Hook config must be a JSON object'); |
| 31 | if (!Object.prototype.hasOwnProperty.call(data, 'hooks')) return true; |
no outgoing calls
no test coverage detected