sprintify-ui 0.0.147 → 0.0.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.147",
3
+ "version": "0.0.148",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -114,11 +114,11 @@ const filteredIcons = computed(() => {
114
114
  });
115
115
 
116
116
  function fetchIcons() {
117
- config.http
118
- .get('https://api.iconify.design/collection?prefix=' + props.collection)
119
- .then((response) => {
120
- icons.value = response.data.uncategorized;
121
- suffixes.value = response.data.suffixes;
117
+ fetch('https://api.iconify.design/collection?prefix=' + props.collection)
118
+ .then((response) => response.json())
119
+ .then((data) => {
120
+ icons.value = data.uncategorized;
121
+ suffixes.value = data.suffixes;
122
122
  suffix.value = Object.keys(suffixes.value)[0] as string;
123
123
  });
124
124
  }