@shuvi/shared 1.0.22 → 1.0.23

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.
@@ -18,6 +18,13 @@ export declare const SHUVI_ERROR: {
18
18
  code: number;
19
19
  message: string;
20
20
  };
21
+ SERVER_ERROR: {
22
+ code: number;
23
+ message: string;
24
+ };
25
+ CLIENT_ERROR: {
26
+ message: string;
27
+ };
21
28
  PAGE_NOT_FOUND: {
22
29
  code: number;
23
30
  message: string;
package/esm/constants.js CHANGED
@@ -20,6 +20,13 @@ export const SHUVI_ERROR = {
20
20
  code: 500,
21
21
  message: 'Internal Application Error.'
22
22
  },
23
+ SERVER_ERROR: {
24
+ code: 500,
25
+ message: 'Internal Server Error.'
26
+ },
27
+ CLIENT_ERROR: {
28
+ message: 'Internal Application Error'
29
+ },
23
30
  PAGE_NOT_FOUND: {
24
31
  code: 404,
25
32
  message: 'This page could not be found.'
@@ -18,6 +18,13 @@ export declare const SHUVI_ERROR: {
18
18
  code: number;
19
19
  message: string;
20
20
  };
21
+ SERVER_ERROR: {
22
+ code: number;
23
+ message: string;
24
+ };
25
+ CLIENT_ERROR: {
26
+ message: string;
27
+ };
21
28
  PAGE_NOT_FOUND: {
22
29
  code: number;
23
30
  message: string;
package/lib/constants.js CHANGED
@@ -23,6 +23,13 @@ exports.SHUVI_ERROR = {
23
23
  code: 500,
24
24
  message: 'Internal Application Error.'
25
25
  },
26
+ SERVER_ERROR: {
27
+ code: 500,
28
+ message: 'Internal Server Error.'
29
+ },
30
+ CLIENT_ERROR: {
31
+ message: 'Internal Application Error'
32
+ },
26
33
  PAGE_NOT_FOUND: {
27
34
  code: 404,
28
35
  message: 'This page could not be found.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/shared",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -33,6 +33,6 @@
33
33
  "node": ">= 16.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@shuvi/hook": "1.0.22"
36
+ "@shuvi/hook": "1.0.23"
37
37
  }
38
38
  }