1.2.0 • Published 14 days ago

@itcase/common v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

Requests functions

  • formatURL(url, addProtocol)
  • sendAxiosRequest({ config, onSuccess, onError })
  • async sendServerSideRequest(urls)

Utils functions

  • createFileFromDataURL(fileName = 'file', dataURL)
  • getLanguageProp(item = {}, key = '', language)

Note

  • Use arrow function for some helpers and utils: const someUtilFunction = (configURL) => {}
  • Use function for main things as components and hooks: function SomeComponent() {}" and "function useSomeThings() {}
  • Set "export" things always on bottom of file:

    import things from 'some/path/things'
    
    ...
    <<<code>>>
    ...
    
    export { someNamedTing, someUtilFunction }
    export default MainThing
1.2.0

14 days ago

1.1.17

21 days ago

1.1.16

29 days ago

1.1.15

2 months ago

1.1.14

2 months ago

1.1.13

2 months ago

1.1.12

3 months ago

1.1.11

5 months ago

1.1.10

6 months ago

1.1.9

6 months ago

1.1.8

7 months ago

1.1.7

8 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago