@did-space/core 0.1.70 → 0.1.71

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.
@@ -107,13 +107,17 @@ class Space {
107
107
  var _a, _b;
108
108
  return __awaiter(this, void 0, void 0, function* () {
109
109
  // FIXME: 临时性解决方案,需要新增拓容功能,需要去除白名单功能
110
- const [totalCapacity, usedCapacity] = yield Promise.all([this.driver.get('size'), this.driver.getSpaceSize()]);
110
+ const [did, totalCapacity, usedCapacity] = yield Promise.all([
111
+ this.driver.get('did'),
112
+ this.driver.get('size'),
113
+ this.driver.getSpaceSize(),
114
+ ]);
111
115
  const whiteList = ((_b = (_a = process.env) === null || _a === void 0 ? void 0 : _a.SPACE_WHITE_LIST) !== null && _b !== void 0 ? _b : '')
112
116
  .split(',')
113
117
  .map((s) => s.trim())
114
118
  .filter(Boolean);
115
119
  // 跳过白名单
116
- if (whiteList.length && whiteList.includes(this.driver.options.root)) {
120
+ if (whiteList.length && whiteList.includes(did)) {
117
121
  return {
118
122
  isFull: false,
119
123
  totalCapacity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@did-space/core",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,14 +32,14 @@
32
32
  ]
33
33
  },
34
34
  "dependencies": {
35
- "@arcblock/did": "^1.18.35",
36
- "@arcblock/jwt": "^1.18.35",
37
- "@arcblock/validator": "^1.18.35",
35
+ "@arcblock/did": "^1.18.42",
36
+ "@arcblock/jwt": "^1.18.42",
37
+ "@arcblock/validator": "^1.18.42",
38
38
  "@aws-sdk/client-s3": "^3.45.0",
39
39
  "@aws-sdk/signature-v4-crt": "^3.45.0",
40
- "@blocklet/meta": "^1.8.55",
41
- "@ocap/mcrypto": "^1.18.35",
42
- "@ocap/wallet": "^1.18.35",
40
+ "@blocklet/meta": "^1.8.64",
41
+ "@ocap/mcrypto": "^1.18.42",
42
+ "@ocap/wallet": "^1.18.42",
43
43
  "fs-extra": "^10.0.0",
44
44
  "joi": "^17.5.0",
45
45
  "js-yaml": "^4.1.0",
@@ -61,5 +61,5 @@
61
61
  "ts-jest": "^28.0.6",
62
62
  "typescript": "4.4.4"
63
63
  },
64
- "gitHead": "1c67a8376a2ab06e06c771d34149be4fefe1e7c7"
64
+ "gitHead": "c04bb01970c2ca6fedd630712c92faf467c5d85c"
65
65
  }