UNPKG

@uppy/companion-client

Version:

Client library for communication with Companion. Intended for use in Uppy plugins.

13 lines (11 loc) 326 B
'use strict'; class AuthError extends Error { constructor() { super('Authorization required'); this.name = 'AuthError'; // we use a property because of instanceof is unsafe: // https://github.com/transloadit/uppy/pull/4619#discussion_r1406225982 this.isAuthError = true; } } export default AuthError;