Skip to content

Commit

Permalink
v0.0.4: Updated API url for list of styles
Browse files Browse the repository at this point in the history
  • Loading branch information
NEK-RA committed Sep 29, 2024
1 parent 9bdbdef commit f73d095
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.4

- Updated API url for list of styles

## 0.0.3

- Changed `axios` version to 1.7.4 due to fix of [CVE-2024-39338](https://github.com/advisories/GHSA-8hc4-vh64-cxmj)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fusionbrain-api",
"version": "0.0.3",
"version": "0.0.4",
"description": "A client library for https://fusionbrain.ai/ using their official Beta API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/FusionBrain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class FusionBrain{
*/
public async getStyles(): Promise<StyleInfo[]>{
try{
const response = await axios.get("http://cdn.fusionbrain.ai/static/styles/api");
const response = await axios.get("http://cdn.fusionbrain.ai/static/styles/key");
if(Array.isArray(response.data)){
return response.data.map((obj: any) => StyleInfo.create(obj));
}else{
Expand Down

0 comments on commit f73d095

Please sign in to comment.