Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sub-api package #6931

Closed
roiLeo opened this issue Aug 24, 2023 · 3 comments · Fixed by #7304
Closed

Update sub-api package #6931

roiLeo opened this issue Aug 24, 2023 · 3 comments · Fixed by #7304
Labels
A-maintenance A-nuxt A-vue3 dependencies Pull requests that update a dependency file

Comments

@roiLeo
Copy link
Contributor

roiLeo commented Aug 24, 2023

https://www.npmjs.com/package/@kodadot1/sub-api

⚠️ we still use import Connector from '@kodadot1/sub-api'

@roiLeo roiLeo added dependencies Pull requests that update a dependency file A-nuxt A-vue3 A-maintenance labels Aug 24, 2023
@yangwao
Copy link
Member

yangwao commented Aug 24, 2023

breaking version incoming

@roiLeo roiLeo mentioned this issue Sep 14, 2023
18 tasks
@roiLeo
Copy link
Contributor Author

roiLeo commented Sep 18, 2023

Hello @vikiival any idea how to rewrite these lines with new version of sub-api?

const { getInstance: Api } = Connector
// try to connect next possible url
await Api().connect(nextTryUrls[0])

@vikiival
Copy link
Member

vikiival commented Sep 19, 2023

Hello @vikiival any idea how to rewrite these lines with new version of sub-api?

Hello @roiLeo

You can either use factory or instapi

https://github.com/kodadot/packages/tree/main/sub-api#whats-in-the-box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-maintenance A-nuxt A-vue3 dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants