@solely/simple-fm
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -1,2 +0,2 @@ | ||
import type { AlbumGetInfoType, AlbumGetTopTagsType, AlbumSearchType } from '~/types/'; | ||
import type { AlbumGetInfoType, AlbumGetTopTagsType, AlbumSearchType } from '../types'; | ||
export default class Album { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,4 +0,4 @@ | ||
import { sanitizeURL } from '@utils/links'; | ||
import { request } from '~/request'; | ||
import { ImageSizes } from '~/types/'; | ||
import { sanitizeURL } from '../utils/links'; | ||
import { request } from '../request'; | ||
import { ImageSizes } from '../types'; | ||
export default class Album { | ||
@@ -5,0 +5,0 @@ token; |
@@ -1,2 +0,2 @@ | ||
import type { ArtistGetInfoType, ArtistSearchType, ArtistSimilarType, ArtistTopAlbumsType, ArtistTopTagsType, ArtistTopTracksType } from '~/types/'; | ||
import type { ArtistGetInfoType, ArtistSearchType, ArtistSimilarType, ArtistTopAlbumsType, ArtistTopTagsType, ArtistTopTracksType } from '../types'; | ||
export default class Artist { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,4 +0,4 @@ | ||
import { sanitizeURL } from '@utils/links'; | ||
import { request } from '~/request'; | ||
import { ImageSizes } from '~/types/'; | ||
import { sanitizeURL } from '../utils/links'; | ||
import { request } from '../request'; | ||
import { ImageSizes } from '../types'; | ||
export default class Artist { | ||
@@ -5,0 +5,0 @@ token; |
@@ -1,2 +0,2 @@ | ||
import type { ChartTopArtistsType, ChartTopTagsType, ChartTopTracksType } from '~/types/'; | ||
import type { ChartTopArtistsType, ChartTopTagsType, ChartTopTracksType } from '../types'; | ||
export default class Chart { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,2 +0,2 @@ | ||
import { request } from '~/request'; | ||
import { request } from '../request'; | ||
export default class Chart { | ||
@@ -3,0 +3,0 @@ token; |
@@ -1,2 +0,2 @@ | ||
import type { GeoArtistType, GeoTrackType } from '~/types/'; | ||
import type { GeoArtistType, GeoTrackType } from '../types'; | ||
export default class Geo { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,2 +0,2 @@ | ||
import { request } from '~/request'; | ||
import { request } from '../request'; | ||
export default class Geo { | ||
@@ -3,0 +3,0 @@ token; |
@@ -1,2 +0,2 @@ | ||
import type { TagGetInfoType, TagTopAlbumsType, TagTopArtistsType, TagTopTracksType, TagWeeklyChartListType } from '~/types/'; | ||
import type { TagGetInfoType, TagTopAlbumsType, TagTopArtistsType, TagTopTracksType, TagWeeklyChartListType } from '../types'; | ||
export default class Tag { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,4 +0,4 @@ | ||
import { sanitizeURL } from '@utils/links'; | ||
import { request } from '~/request'; | ||
import { ImageSizes } from '~/types/'; | ||
import { sanitizeURL } from '../utils/links'; | ||
import { request } from '../request'; | ||
import { ImageSizes } from '../types'; | ||
export default class Tag { | ||
@@ -5,0 +5,0 @@ token; |
@@ -1,2 +0,2 @@ | ||
import type { TrackGetInfoType, TrackSearchType, TrackSimilarType, TrackTopTagsType } from '~/types/'; | ||
import type { TrackGetInfoType, TrackSearchType, TrackSimilarType, TrackTopTagsType } from '../types'; | ||
export default class Track { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,4 +0,4 @@ | ||
import { sanitizeURL } from '@utils/links'; | ||
import { request } from '~/request'; | ||
import { ImageSizes } from '~/types/'; | ||
import { sanitizeURL } from '../utils/links'; | ||
import { request } from '../request'; | ||
import { ImageSizes } from '../types'; | ||
export default class Track { | ||
@@ -5,0 +5,0 @@ token; |
@@ -1,2 +0,2 @@ | ||
import type { PersonalTagTypes, UserArtistsType, UserGetInfoType, UserLovedTracksType, UserPersonalTagsType, UserRecentTrackType, UserTopAlbumsType, UserTopTagsType, UserTopTracksType, UserFriendsType } from '~/types/'; | ||
import type { PersonalTagTypes, UserArtistsType, UserGetInfoType, UserLovedTracksType, UserPersonalTagsType, UserRecentTrackType, UserTopAlbumsType, UserTopTagsType, UserTopTracksType, UserFriendsType } from '../types'; | ||
export default class User { | ||
@@ -3,0 +3,0 @@ private readonly token; |
@@ -1,4 +0,4 @@ | ||
import { sanitizeURL } from '@utils/links'; | ||
import { request } from '~/request'; | ||
import { ImageSizes } from '~/types/'; | ||
import { sanitizeURL } from '../utils/links'; | ||
import { request } from '../request'; | ||
import { ImageSizes } from '../types'; | ||
export default class User { | ||
@@ -5,0 +5,0 @@ token; |
@@ -1,9 +0,9 @@ | ||
import Album from '@classes/album.class'; | ||
import Artist from '@classes/artist.class'; | ||
import Chart from '@classes/chart.class'; | ||
import Geo from '@classes/geo.class'; | ||
import Tag from '@classes/tag.class'; | ||
import Track from '@classes/track.class'; | ||
import User from '@classes/user.class'; | ||
export * from '~/types'; | ||
import Album from './classes/album.class'; | ||
import Artist from './classes/artist.class'; | ||
import Chart from './classes/chart.class'; | ||
import Geo from './classes/geo.class'; | ||
import Tag from './classes/tag.class'; | ||
import Track from './classes/track.class'; | ||
import User from './classes/user.class'; | ||
export * from './types'; | ||
export default class SimpleFMClient { | ||
@@ -10,0 +10,0 @@ private readonly token; |
@@ -1,9 +0,9 @@ | ||
import Album from '@classes/album.class'; | ||
import Artist from '@classes/artist.class'; | ||
import Chart from '@classes/chart.class'; | ||
import Geo from '@classes/geo.class'; | ||
import Tag from '@classes/tag.class'; | ||
import Track from '@classes/track.class'; | ||
import User from '@classes/user.class'; | ||
export * from '~/types'; | ||
import Album from './classes/album.class'; | ||
import Artist from './classes/artist.class'; | ||
import Chart from './classes/chart.class'; | ||
import Geo from './classes/geo.class'; | ||
import Tag from './classes/tag.class'; | ||
import Track from './classes/track.class'; | ||
import User from './classes/user.class'; | ||
export * from './types'; | ||
export default class SimpleFMClient { | ||
@@ -10,0 +10,0 @@ token; |
import { SearchParameters } from 'ofetch'; | ||
import { RequestMethods } from '~/types'; | ||
import { RequestMethods } from './types'; | ||
export declare function request<T = unknown, M = RequestMethods>(method: M, params: SearchParameters): Promise<T>; |
import { $fetch, FetchError } from 'ofetch'; | ||
import LastFMError from '@utils/error'; | ||
import LastFMError from './utils/error'; | ||
export async function request(method, params) { | ||
@@ -4,0 +4,0 @@ const baseURL = 'https://ws.audioscrobbler.com/2.0'; |
@@ -64,2 +64,2 @@ export declare const ImageSizes: string[]; | ||
export * from './user.type'; | ||
export * from '~/responses'; | ||
export * from '../responses'; |
@@ -9,2 +9,2 @@ export const ImageSizes = ['extralarge', 'large', 'medium', 'small']; | ||
export * from './user.type'; | ||
export * from '~/responses'; | ||
export * from '../responses'; |
{ | ||
"name": "@solely/simple-fm", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"license": "Zlib", | ||
@@ -13,3 +13,3 @@ "type": "module", | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc && tscpaths -p tsconfig.json -s ./src -o ./dist", | ||
"dev": "tsc --watch", | ||
@@ -48,2 +48,3 @@ "lint": "eslint .", | ||
"rimraf": "^5.0.1", | ||
"tscpaths": "^0.0.9", | ||
"tsx": "^3.12.7", | ||
@@ -50,0 +51,0 @@ "typescript": "^5.1.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95681
16