Skip to content

Commit

Permalink
chore(errors): moved errors into separate package
Browse files Browse the repository at this point in the history
  • Loading branch information
seth2810 committed Aug 19, 2024
1 parent 3384412 commit dcfd5c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export * from './lib/SpotifyAPI';
export * from './lib/Manager';
export * from './lib/http/HttpManager';
export * from './lib/album/AlbumManager';
export * from './lib/artist/ArtistManager';
export * from './lib/audio/AudioManager';
export * from './lib/http/HttpManager';
export * from './lib/me/MeManager';
export * from './lib/search/SearchManager';
export * from './lib/track/TrackManager';
export * from './lib/user/UserManager';
export * from './lib/errors';

// Interfaces
export * from './interfaces/Config';
export * from './interfaces/Errors';
export * from './interfaces/Spotify';
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/http/AuthManager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console */
import axios, { AxiosInstance } from 'axios';
import { AuthError } from '../../interfaces/Errors';
import { AuthError } from '../errors';
import { PrivateConfig, SpotifyConfig } from '../../interfaces/Config';

const accountsApiUrl = 'https://accounts.spotify.com/api';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/http/HttpManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
RatelimitError,
RequestRetriesExceededError,
UnauthorizedError
} from '../../interfaces/Errors';
} from '../errors';
import { PrivateConfig, SpotifyConfig } from '../../interfaces/Config';
import { sleep } from '../../util/sleep';
import { AuthManager } from './AuthManager';
Expand Down

0 comments on commit dcfd5c4

Please sign in to comment.