Socket
Socket
Sign inDemoInstall

graphql-spotify

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-spotify - npm Package Compare versions

Comparing version 0.4.14 to 0.4.141

28

dist/lib.js

@@ -576,4 +576,4 @@ module.exports =

const {
PlaylistLoader, PlaylistTracksLoader, AlbumLoader, UserLoader, ArtistLoader,
AudioFeaturesLoader, SavedContainsLoader, TrackLoader
PlaylistLoader, PlaylistTracksLoader, AlbumsLoader, UserLoader, ArtistsLoader,
AudioFeaturesLoader, SavedContainsLoader, TracksLoader
} = (0, _SpotifyWebApi.makeLoaders)(token);

@@ -595,6 +595,6 @@

artist: async (obj, { artistId }) => {
return await ArtistLoader.load(artistId);
return await ArtistsLoader.load(artistId);
},
track: async (obj, { id }) => {
return await TrackLoader.load(id);
return await TracksLoader.load(id);
},

@@ -657,15 +657,15 @@ audioFeatures: async (obj, { id }) => {

followerCount: async ({ id }) => {
const artistFull = await ArtistLoader.load(id);
const artistFull = await ArtistsLoader.load(id);
return artistFull.followers.total;
},
images: async ({ id }) => {
const artistFull = await ArtistLoader.load(id);
const artistFull = await ArtistsLoader.load(id);
return artistFull.images;
},
popularity: async ({ id }) => {
const artistFull = await ArtistLoader.load(id);
const artistFull = await ArtistsLoader.load(id);
return artistFull.popularity;
},
genres: async ({ id }) => {
const artistFull = await ArtistLoader.load(id);
const artistFull = await ArtistsLoader.load(id);
return artistFull.genres;

@@ -677,19 +677,19 @@ }

genres: async object => {
const AlbumFull = await AlbumLoader.load(object.id);
const AlbumFull = await AlbumsLoader.load(object.id);
return AlbumFull.genres;
},
label: async object => {
const AlbumFull = await AlbumLoader.load(object.id);
const AlbumFull = await AlbumsLoader.load(object.id);
return AlbumFull.label;
},
popularity: async object => {
const AlbumFull = await AlbumLoader.load(object.id);
const AlbumFull = await AlbumsLoader.load(object.id);
return AlbumFull.popularity;
},
release_date: async object => {
const { release_date } = await AlbumLoader.load(object.id);
const { release_date } = await AlbumsLoader.load(object.id);
return release_date;
},
release_date_precision: async object => {
const { release_date_precision } = await AlbumLoader.load(object.id);
const { release_date_precision } = await AlbumsLoader.load(object.id);
return release_date_precision;

@@ -871,3 +871,3 @@ }

PlaylistLoader: makePlaylistLoader(token),
PlaylistTracksLoader: makePlaylistLoader(token),
PlaylistTracksLoader: makePlaylistTracksLoader(token),
AlbumsLoader: makeAlbumsLoader(token),

@@ -874,0 +874,0 @@ ArtistsLoader: makeArtistsLoader(token),

{
"name": "graphql-spotify",
"version": "0.4.14",
"version": "0.4.141",
"description": "GraphQL Schema And Resolvers For Spotify Web API",

@@ -5,0 +5,0 @@ "main": "dist/lib.js",

@@ -7,4 +7,4 @@ import {

const {
PlaylistLoader, PlaylistTracksLoader, AlbumLoader, UserLoader, ArtistLoader,
AudioFeaturesLoader, SavedContainsLoader, TrackLoader
PlaylistLoader, PlaylistTracksLoader, AlbumsLoader, UserLoader, ArtistsLoader,
AudioFeaturesLoader, SavedContainsLoader, TracksLoader
} = makeLoaders(token);

@@ -26,6 +26,6 @@

artist: async(obj, {artistId}) => {
return await ArtistLoader.load(artistId)
return await ArtistsLoader.load(artistId)
},
track: async(obj, {id}) => {
return await TrackLoader.load(id)
return await TracksLoader.load(id)
},

@@ -88,15 +88,15 @@ audioFeatures: async (obj, {id}) => {

followerCount: async ({ id }) => {
const artistFull = await ArtistLoader.load(id)
const artistFull = await ArtistsLoader.load(id)
return artistFull.followers.total
},
images: async ({ id }) => {
const artistFull = await ArtistLoader.load(id)
const artistFull = await ArtistsLoader.load(id)
return artistFull.images
},
popularity: async ({ id }) => {
const artistFull = await ArtistLoader.load(id)
const artistFull = await ArtistsLoader.load(id)
return artistFull.popularity
},
genres: async ({ id }) => {
const artistFull = await ArtistLoader.load(id)
const artistFull = await ArtistsLoader.load(id)
return artistFull.genres

@@ -108,19 +108,19 @@ },

genres: async (object) => {
const AlbumFull = await AlbumLoader.load(object.id)
const AlbumFull = await AlbumsLoader.load(object.id)
return AlbumFull.genres
},
label: async (object) => {
const AlbumFull = await AlbumLoader.load(object.id)
const AlbumFull = await AlbumsLoader.load(object.id)
return AlbumFull.label
},
popularity: async (object) => {
const AlbumFull = await AlbumLoader.load(object.id)
const AlbumFull = await AlbumsLoader.load(object.id)
return AlbumFull.popularity
},
release_date: async (object) => {
const { release_date } = await AlbumLoader.load(object.id)
const { release_date } = await AlbumsLoader.load(object.id)
return release_date
},
release_date_precision: async (object) => {
const { release_date_precision } = await AlbumLoader.load(object.id)
const { release_date_precision } = await AlbumsLoader.load(object.id)
return release_date_precision

@@ -127,0 +127,0 @@ }

@@ -129,3 +129,3 @@ import 'isomorphic-fetch'

PlaylistLoader : makePlaylistLoader(token),
PlaylistTracksLoader: makePlaylistLoader(token),
PlaylistTracksLoader: makePlaylistTracksLoader(token),
AlbumsLoader: makeAlbumsLoader(token),

@@ -132,0 +132,0 @@ ArtistsLoader: makeArtistsLoader(token),

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc