a javascript SDK (using supabase) to interact with radio4000 (browser,node)
Bot releases are hidden (Show)
Published by oskarrough over 1 year ago
Added tests for authentication and most CRUD for channels + tracks using the SDK methods.
Possibly the sql
test doesn't belong in this repo. Could move this part to supabase
repo.
Also switched the supabase-client.js
to read the config from env variables, but it's commented out for now, because I'm not sure how this integrates with the CI. It worked for build.
That being said, once we cp .env.example .env
and uncomment the code it works.
createChannel()
now takes an optional userId
... for the channel to be created. If not supplied, we fall back to the session user. If no session user, we throw an error.
Published by oskarrough almost 2 years ago
Published by oskarrough almost 2 years ago
Published by oskarrough almost 2 years ago
This release changes the exports from this module.
See https://radio4000.github.io/sdk/docs/
Full diff https://github.com/radio4000/sdk/compare/0.0.21...0.1.0
Published by oskarrough almost 2 years ago
Change argument from id to canEditChannel(slug)
Published by oskarrough almost 2 years ago
Adds two new methods
canEditChannel(id)
canEditTrack(id)
Both return a promise that resolves as a boolean.
Published by 4www almost 2 years ago
{ data: null, error: {code, message}}
in case of errorPublished by oskarrough almost 2 years ago
Fix bug with createChannel error handling
Published by oskarrough almost 2 years ago
Fix bug with firebase slug taken
Published by oskarrough almost 2 years ago
findChannelTracks(slug) now uses slug instead of id
Published by 4www almost 2 years ago
sdk.findChannelTracks(channel_id)
Published by oskarrough almost 2 years ago
Published by oskarrough almost 2 years ago
New sdk.findFirebaseChannelBySlug()
Published by 4www almost 2 years ago
Add npm@media-url-parser
capabilities and providers
:
sdk.providers
sdk.providers.mediaUrlParser()
Published by oskarrough almost 2 years ago
Update Supabase dependency
Published by oskarrough almost 2 years ago
bugfix for fetch in node
Published by 4www almost 2 years ago
sdk.findUserChannels()
Published by 4www about 2 years ago
Published by oskarrough about 2 years ago
Changes arguments for most channel+track methods
Published by oskarrough about 2 years ago
playing around with exports