@did-space/core 1.1.2 → 1.1.3

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.
@@ -582,7 +582,7 @@ class ObjectSpace extends events_1.default {
582
582
  attributes: ['objectId'],
583
583
  raw: true,
584
584
  });
585
- if (!tree) {
585
+ if (!(tree === null || tree === void 0 ? void 0 : tree.objectId)) {
586
586
  throw new Error(`Object(${key}) not exists`);
587
587
  }
588
588
  return this.driver.readAsOwner((0, utils_1.getHashPath)(tree.objectId), {
@@ -539,7 +539,7 @@ export class ObjectSpace extends EventEmitter {
539
539
  attributes: ['objectId'],
540
540
  raw: true,
541
541
  });
542
- if (!tree) {
542
+ if (!tree?.objectId) {
543
543
  throw new Error(`Object(${key}) not exists`);
544
544
  }
545
545
  return this.driver.readAsOwner(getHashPath(tree.objectId), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@did-space/core",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -111,7 +111,7 @@
111
111
  "@arcblock/did": "^1.20.15",
112
112
  "@arcblock/ipfs-only-hash": "^0.0.2",
113
113
  "@arcblock/validator": "^1.20.15",
114
- "@did-space/constants": "^1.1.2",
114
+ "@did-space/constants": "^1.1.3",
115
115
  "dayjs": "^1.11.13",
116
116
  "debug": "^4.4.1",
117
117
  "destroy": "^1.2.0",
@@ -142,5 +142,5 @@
142
142
  "vite": "^7.0.0",
143
143
  "vitest": "^3.2.4"
144
144
  },
145
- "gitHead": "922e4725da8965f66033b82f9ba28d1d691f9cc5"
145
+ "gitHead": "dc3562763fae2d20d878e85d97919837fadbb132"
146
146
  }