spoko-design-system 0.2.63 → 0.2.65

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/index.ts CHANGED
@@ -53,12 +53,12 @@ export { default as getProductChecklist } from './src/utils/product/getProductCh
53
53
  export { default as getShorterDescription } from './src/utils/seo/getShorterDescription';
54
54
 
55
55
  // Utils: Text
56
+
56
57
  export { getTranslation, text2paragraphs, countWords, firstSentence, removeSemicolon } from './src/utils/text';
57
- export { apiInfo, getData} from './src/utils/getData';
58
+ export { apiInfo } from './src/utils/getData';
58
59
  export { default as formatDate } from './src/utils/text/formatDate';
59
60
  export { default as formatLocaleNumber } from './src/utils/text/formatLocaleNumber';
60
61
  export { default as formatPad } from './src/utils/text/formatPad';
61
62
  export { default as getNumberFormatted } from './src/utils/text/getNumberFormatted';
62
63
  export { default as getTranslatedLink } from './src/utils/text/getTranslatedLink';
63
-
64
-
64
+ export { default as getApiCategories } from './src/utils/api/getCategories';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.2.63",
3
+ "version": "0.2.65",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -1,3 +1,5 @@
1
- import { getData } from "@utils/getData"
1
+ import { getData } from "../getData"
2
2
 
3
3
  export const getApiCategories = await getData('categories')
4
+
5
+ export default getApiCategories;
@@ -52,4 +52,4 @@ export const getData = async <T>(type: string): Promise<T | null> => {
52
52
  }
53
53
  };
54
54
 
55
- export default getData;
55
+ export default apiInfo;