INNER CODE UNIT · TypeScript
UnexpectedNetworkError
vercel/storage · packages/global-config/src/utils/index.ts:9
export class UnexpectedNetworkError extends Error {
constructor(res: Response) {
super(
`@vercel/global-config: Unexpected error due to response with status code ${res.status}`,
);
}
}
/**
* Checks if an object has a property
*/
export function hasOwn<X extends object, Y extends PropertyKey>(
obj: X,
prop: Y,
): obj is X & Record<Y, unknown> {
return Object.hasOwn(obj, prop);
}