@did-space/core 0.5.65 → 0.5.67
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/dist/constants/index.d.ts +16 -0
- package/dist/constants/index.js +17 -1
- package/package.json +4 -4
|
@@ -16,4 +16,20 @@ export declare const APP: {
|
|
|
16
16
|
FOLDER_PREFIX: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
+
export declare const SPACE_CONNECT_ERROR_CODE: {
|
|
20
|
+
/** 网络错误 */
|
|
21
|
+
NETWORK_ERROR: number;
|
|
22
|
+
/** 未授权 */
|
|
23
|
+
UNAUTHORIZED: number;
|
|
24
|
+
/** 订阅过期 */
|
|
25
|
+
EXPIRED: number;
|
|
26
|
+
/** 订阅逾期 */
|
|
27
|
+
PAST_DUE: number;
|
|
28
|
+
/** 订阅状态异常 */
|
|
29
|
+
INVALID: number;
|
|
30
|
+
/** 用量不足 */
|
|
31
|
+
UNIT_LIMIT: number;
|
|
32
|
+
/** 跨域限制 */
|
|
33
|
+
CORS_BLOCKED: number;
|
|
34
|
+
};
|
|
19
35
|
export declare const GLOBAL_SPACE_ROOT = "__GLOBAL__";
|
package/dist/constants/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GLOBAL_SPACE_ROOT = exports.APP = exports.HEADERS = exports.APP_BACKUP_STATUS = exports.DID_OBJECTS = exports.APPS = void 0;
|
|
3
|
+
exports.GLOBAL_SPACE_ROOT = exports.SPACE_CONNECT_ERROR_CODE = exports.APP = exports.HEADERS = exports.APP_BACKUP_STATUS = exports.DID_OBJECTS = exports.APPS = void 0;
|
|
4
4
|
exports.APPS = 'apps';
|
|
5
5
|
exports.DID_OBJECTS = '.did-objects';
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -26,4 +26,20 @@ exports.APP = {
|
|
|
26
26
|
FOLDER_PREFIX: '.components',
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
|
+
exports.SPACE_CONNECT_ERROR_CODE = {
|
|
30
|
+
/** 网络错误 */
|
|
31
|
+
NETWORK_ERROR: 1001,
|
|
32
|
+
/** 未授权 */
|
|
33
|
+
UNAUTHORIZED: 1002,
|
|
34
|
+
/** 订阅过期 */
|
|
35
|
+
EXPIRED: 1003,
|
|
36
|
+
/** 订阅逾期 */
|
|
37
|
+
PAST_DUE: 1004,
|
|
38
|
+
/** 订阅状态异常 */
|
|
39
|
+
INVALID: 1005,
|
|
40
|
+
/** 用量不足 */
|
|
41
|
+
UNIT_LIMIT: 1006,
|
|
42
|
+
/** 跨域限制 */
|
|
43
|
+
CORS_BLOCKED: 1007,
|
|
44
|
+
};
|
|
29
45
|
exports.GLOBAL_SPACE_ROOT = '__GLOBAL__';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.67",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"lint-staged": "^13.3.0",
|
|
52
52
|
"ts-jest": "^28.0.8",
|
|
53
53
|
"typescript": "^4.9.5",
|
|
54
|
-
"vite": "^5.4.
|
|
55
|
-
"vitest": "^2.1.
|
|
54
|
+
"vite": "^5.4.11",
|
|
55
|
+
"vitest": "^2.1.5"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "3e77ce650933ce3a1a1fdd7d869d40407de0891c"
|
|
58
58
|
}
|