Skip to content

Commit

Permalink
cli use axios replace fetch (#3741)
Browse files Browse the repository at this point in the history
Co-authored-by: Odilitime <janesmith@airmail.cc>
  • Loading branch information
v1xingyue and odilitime authored Mar 3, 2025
1 parent ae9ca51 commit eb75494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const fs = require('fs')
const { Command } = require('commander')
const program = new Command()
const { version } = require('./package.json')
const axios = require('axios')


const pluginPkgPath = (pluginRepo) => {
Expand All @@ -31,8 +32,8 @@ const pluginsCmd = new Command()
.description('manage elizaOS plugins')

async function getPlugins() {
const resp = await fetch('https://raw.githubusercontent.com/elizaos-plugins/registry/refs/heads/main/index.json')
return await resp.json();
const resp = await axios.get('https://raw.githubusercontent.com/elizaos-plugins/registry/refs/heads/main/index.json')
return resp.data;
}


Expand Down
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"axios": "^1.8.1",
"commander": "^13.1.0"
}
}

0 comments on commit eb75494

Please sign in to comment.