1.4.9 • Published 2 years ago

@alicloud/console-fetcher-interceptor-res-error-message v1.4.9

Weekly downloads
123
License
MIT
Repository
github
Last release
2 years ago

@alicloud/console-fetcher-interceptor-res-error-message

@alicloud/fetcher 响应错误拦截,国际化通用的错误的 message。

@alicloud/fetcher 为了保证自己的普适性,不会对其封装的错误进行国际化,这个拦截器就是为了做这件事情。

  • 仅对 网络错误网络超时请求响应状态错误 做国际化输出;
  • 没有额外 config 扩展

INSTALL

tnpm i @alicloud/console-fetcher-interceptor-res-error-message -S

APIs

import createFetcher, {
  Fetcher
} from '@alicloud/fetcher';
// import interceptors 2
import intercept from '@alicloud/console-fetcher-interceptor-res-error-message';
// import interceptors 2

const fetcher: Fetcher = createFetcher();

// ... add interceptors 1  
intercept(fetcher);
// ... add interceptors 2

export default fetcher
1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.6

2 years ago

1.4.4

2 years ago

1.4.2

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.0

3 years ago

1.2.1

2 years ago

1.1.88-alpha.0

3 years ago

1.1.87

3 years ago

1.3.0

2 years ago

1.1.85-alpha.4

3 years ago

1.1.85-alpha.3

3 years ago

1.1.85-alpha.2

3 years ago

1.1.81

3 years ago

1.1.85

3 years ago

1.1.84

3 years ago

1.1.83

3 years ago

1.1.86

3 years ago

1.1.65

3 years ago

1.1.64

3 years ago

1.1.63

3 years ago

1.1.62

3 years ago

1.1.61

3 years ago

1.1.60

3 years ago

1.1.55-alpha.4

3 years ago

1.1.58

3 years ago

1.1.57

3 years ago

1.1.56

3 years ago

1.1.55-alpha.3

3 years ago

1.1.54

3 years ago

1.1.51

3 years ago

1.1.50

3 years ago

1.1.53

3 years ago

1.1.49

3 years ago

1.1.48

3 years ago

1.1.47

3 years ago

1.1.46

3 years ago

1.1.44

3 years ago

1.1.43

3 years ago

1.1.42

3 years ago

1.1.41

3 years ago

1.1.40

3 years ago

1.1.32

3 years ago

1.1.37

3 years ago

1.1.35

3 years ago

1.1.39

3 years ago

1.1.31

3 years ago

1.1.30

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.23

4 years ago

1.1.25

4 years ago

1.1.20

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.9

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.66

4 years ago

1.0.65

4 years ago

1.0.64

4 years ago

1.0.63

4 years ago

1.0.62

4 years ago

1.0.61

4 years ago

1.0.60

4 years ago

1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

4 years ago

1.0.55

4 years ago

1.0.53

4 years ago

1.0.52

4 years ago

1.0.50

4 years ago

1.0.48

4 years ago

1.0.47

4 years ago

1.0.46

4 years ago

1.0.44

4 years ago

1.0.45

4 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.33

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago