sdk

a javascript SDK (using supabase) to interact with radio4000 (browser,node)

Downloads
94
Stars
0
Committers
4

Bot releases are hidden (Show)

sdk - 0.1.3

Published by oskarrough over 1 year ago

New tests

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.

Env vars

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.

sdk - https://github.com/radio4000/sdk/releases/tag/0.1.2

Published by oskarrough almost 2 years ago

sdk - 0.1.1

Published by oskarrough almost 2 years ago

sdk - 0.1.0

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

sdk - https://github.com/radio4000/sdk/releases/tag/0.0.21

Published by oskarrough almost 2 years ago

Change argument from id to canEditChannel(slug)

sdk - 0.0.20

Published by oskarrough almost 2 years ago

Adds two new methods

canEditChannel(id)
canEditTrack(id)

Both return a promise that resolves as a boolean.

sdk - 0.0.19

Published by 4www almost 2 years ago

  • fix sdk res to { data: null, error: {code, message}} in case of error
sdk - https://github.com/radio4000/sdk/releases/tag/0.0.18

Published by oskarrough almost 2 years ago

Fix bug with createChannel error handling

sdk - https://github.com/radio4000/sdk/releases/tag/0.0.17

Published by oskarrough almost 2 years ago

Fix bug with firebase slug taken

sdk - https://github.com/radio4000/sdk/releases/tag/0.0.16

Published by oskarrough almost 2 years ago

findChannelTracks(slug) now uses slug instead of id

sdk - 0.0.15

Published by 4www almost 2 years ago

  • add sdk.findChannelTracks(channel_id)
sdk - https://github.com/radio4000/sdk/releases/tag/0.0.14

Published by oskarrough almost 2 years ago

sdk - 0.0.13

Published by oskarrough almost 2 years ago

New sdk.findFirebaseChannelBySlug()

sdk - 0.0.12

Published by 4www almost 2 years ago

Add npm@media-url-parser capabilities and providers:

  • sdk.providers
  • sdk.providers.mediaUrlParser()
sdk - 0.0.11

Published by oskarrough almost 2 years ago

Update Supabase dependency

sdk - 0.0.10

Published by oskarrough almost 2 years ago

bugfix for fetch in node

sdk - 0.0.9

Published by 4www almost 2 years ago

  • add sdk.findUserChannels()
sdk - 0.0.8

Published by 4www about 2 years ago

  • error code for channelCreate, when slug is in use in firebase db
sdk - https://github.com/radio4000/sdk/releases/tag/0.0.7

Published by oskarrough about 2 years ago

Changes arguments for most channel+track methods

sdk - https://github.com/radio4000/sdk/releases/tag/0.0.6

Published by oskarrough about 2 years ago

playing around with exports

Package Rankings
Top 12.52% on Npmjs.org
Badges
Extracted from project README
Publish Package to npmjs
Related Projects