@did-space/core 0.5.19 → 0.5.20

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.
@@ -362,7 +362,10 @@ class ObjectSpace extends events_1.default {
362
362
  throw err;
363
363
  }
364
364
  finally {
365
- this.emit('space.writeAsOwner.after', { spaceDid: this.options.spaceDid, key });
365
+ this.emit('space.writeAsOwner.after', {
366
+ spaceDid: this.options.spaceDid,
367
+ key,
368
+ });
366
369
  debug('writeAsOwner.after', JSON.stringify({ key, options: (0, omit_1.default)(options, 'data') }));
367
370
  }
368
371
  });
@@ -531,7 +534,10 @@ class ObjectSpace extends events_1.default {
531
534
  throw err;
532
535
  }
533
536
  finally {
534
- this.emit('space.deleteAsOwner.after', { spaceDid: this.options.spaceDid, key });
537
+ this.emit('space.deleteAsOwner.after', {
538
+ spaceDid: this.options.spaceDid,
539
+ key,
540
+ });
535
541
  }
536
542
  });
537
543
  }
@@ -551,7 +557,9 @@ class ObjectSpace extends events_1.default {
551
557
  if (!tree) {
552
558
  throw new Error(`Object(${key}) not exists`);
553
559
  }
554
- return this.driver.readAsOwner((0, utils_1.getHashPath)(tree.objectId), { useGlobal: true });
560
+ return this.driver.readAsOwner((0, utils_1.getHashPath)(tree.objectId), {
561
+ useGlobal: true,
562
+ });
555
563
  });
556
564
  }
557
565
  existsAsOwner(key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@did-space/core",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,5 +53,5 @@
53
53
  "ts-jest": "^28.0.8",
54
54
  "typescript": "^4.9.5"
55
55
  },
56
- "gitHead": "cf6bb7b57bf3391fead97351996e7f6f135b0e24"
56
+ "gitHead": "81b6a0d179194b4fe9c2411b24b74a3015a4dac0"
57
57
  }