You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to mops libraries in Blast, but importing this module probably wont work.
You probably won't be making a browser client.
All I need to know how to get its packages. I assume they are zipped and stored inside a canister somehow
The text was updated successfully, but these errors were encountered:
To search packages you can use main actor from ic-mops npm package.
Packages are not zipped, and can be downloaded. I can move files downloading logic to a separate function and expose it, would it be helpful?
Let's say it will return mapping filename->source for a package.
import{mainActor,downloadPackageFiles}from'ic-mops/api';letmopsActor=awaitmainActor();// searchletlimit=100n;letsearchText='ba';let[packages,_pageCount]=awaitmopsActor.search(searchText,[limit],[]);console.log(packages.map((pkg)=>{returnpkg.config.name;}));// downloadletfiles=awaitdownloadPackageFiles('base');// or with version// let files = await downloadPackageFiles('base', '0.10.1');for(let[filename,data]offiles.entries()){console.log(filename,newTextDecoder().decode(newUint8Array(data)));}
I want to mops libraries in Blast, but importing this module probably wont work.
You probably won't be making a browser client.
All I need to know how to get its packages. I assume they are zipped and stored inside a canister somehow
The text was updated successfully, but these errors were encountered: