(options: Record<string, unknown>)
| 40 | const optionsObjectUrlErrorMessage = 'The `url` option is not supported in options objects. Pass it as the first argument instead.'; |
| 41 | |
| 42 | const assertNoUrlInOptionsObject = (options: Record<string, unknown>): void => { |
| 43 | if (Object.hasOwn(options, 'url')) { |
| 44 | throw new TypeError(optionsObjectUrlErrorMessage); |
| 45 | } |
| 46 | }; |
| 47 | |
| 48 | const cloneWithProperty = <Value extends Record<string, unknown>>(value: Value, property: string, propertyValue: unknown): Value => { |
| 49 | const clone = Object.create(Object.getPrototypeOf(value), Object.getOwnPropertyDescriptors(value)) as Value; |
no outgoing calls
no test coverage detected
searching dependent graphs…