@abtnode/constant 1.16.15-beta-324519fc → 1.16.15-beta-58d50c9a

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.
Files changed (2) hide show
  1. package/index.js +11 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -288,11 +288,19 @@ const USER_TYPE = Object.freeze({
288
288
  });
289
289
 
290
290
  const PROD_DID_SPACES = {
291
- BUY_SPACE_PAGE: 'https://www.didspaces.com/app/buySpace',
292
- APP_IDS: ['zNKq13Dr2TBHELpLDUJFGxepiGP7YHbAVxPn', 'zNKq6yG8AVbwdRBDJSNCDVJJUQD1AXdkK7Wp'],
293
291
  CORE_URL: 'https://www.didspaces.com/app',
294
292
  };
295
293
 
294
+ const BACKUPS = {
295
+ STATUS: {
296
+ PROGRESS: null,
297
+ SUCCEEDED: 0,
298
+ FAILED: 1,
299
+ },
300
+ // 备份的超时时间是 6 小时
301
+ TIMEOUT_HOURS: 6,
302
+ };
303
+
296
304
  // 10s 上报统计一次
297
305
  const MONITOR_RECORD_INTERVAL_SEC = 10;
298
306
 
@@ -517,6 +525,7 @@ module.exports = Object.freeze({
517
525
  BLOCKLET_CACHE_TTL: 3600 * 1000, // 1 hour
518
526
 
519
527
  PROD_DID_SPACES,
528
+ BACKUPS,
520
529
 
521
530
  MONITOR_HISTORY_LENGTH,
522
531
  MONITOR_RECORD_INTERVAL_SEC,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.15-beta-324519fc",
6
+ "version": "1.16.15-beta-58d50c9a",
7
7
  "description": "ABT Node constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^27.5.1"
22
22
  },
23
- "gitHead": "b1a9384dc9985e590bee01548ed4f38cba470a6b"
23
+ "gitHead": "c54236c1daace6451db561fa6b3eea21ba07bb4d"
24
24
  }