@did-space/core 0.5.10 → 0.5.12
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.
|
@@ -585,11 +585,13 @@ class ObjectSpace {
|
|
|
585
585
|
},
|
|
586
586
|
type: model_1.TreeModelType.FILE,
|
|
587
587
|
};
|
|
588
|
+
// @FIXME: 可能存在性能问题 @jianchao
|
|
588
589
|
const objects = yield this.options.treeRepository.count({ where });
|
|
589
590
|
const lastModified = yield this.options.treeRepository.max('updatedAt', {
|
|
590
591
|
where,
|
|
591
592
|
});
|
|
592
593
|
// @FIXME: 没有正确关联
|
|
594
|
+
// @FIXME: 可能存在性能问题 @jianchao
|
|
593
595
|
const objectRecords = yield this.options.objectRepository.sequelize.query(`SELECT SUM(Object.size) as totalSize FROM Object JOIN Tree ON Object.id = Tree.objectId WHERE Tree.spaceDid = '${this.options.spaceDid}' AND Tree.type = ${model_1.TreeModelType.FILE} AND Tree.key LIKE '${key}%'`, { type: skypesky_sequelize_1.QueryTypes.SELECT });
|
|
594
596
|
// @ts-expect-error
|
|
595
597
|
const size = objectRecords[0].totalSize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
32
32
|
"@arcblock/validator": "^1.18.126",
|
|
33
33
|
"dayjs": "^1.11.12",
|
|
34
|
-
"debug": "^4.3.
|
|
34
|
+
"debug": "^4.3.6",
|
|
35
35
|
"hasha": "^5.2.2",
|
|
36
36
|
"joi": "^17.13.3",
|
|
37
37
|
"js-yaml": "^4.1.0",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"@arcblock/eslint-config-ts": "^0.3.2",
|
|
47
47
|
"@types/jest": "^28.1.8",
|
|
48
48
|
"@types/node": "18.19.31",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
50
50
|
"eslint": "^8.57.0",
|
|
51
51
|
"jest": "^29.7.0",
|
|
52
52
|
"lint-staged": "^13.3.0",
|
|
53
53
|
"ts-jest": "^28.0.8",
|
|
54
54
|
"typescript": "^4.9.5"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
57
|
-
}
|
|
56
|
+
"gitHead": "bf72406cd5cb5145ef613f444f8aa4401f4c96a5"
|
|
57
|
+
}
|