Helper function that wraps assert.plainObject() to provide better error messages. When assertion fails, it includes the option name in the error message.
(optionName: string, value: unknown)
| 910 | When assertion fails, it includes the option name in the error message. |
| 911 | */ |
| 912 | function assertPlainObject(optionName: string, value: unknown): void { |
| 913 | wrapAssertionWithContext(optionName, () => { |
| 914 | assert.plainObject(value); |
| 915 | }); |
| 916 | } |
| 917 | |
| 918 | export function isSameOrigin(previousUrl: URL, nextUrl: URL): boolean { |
| 919 | return previousUrl.origin === nextUrl.origin |
no test coverage detected
searching dependent graphs…