@did-space/template 0.3.21 → 0.3.22

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.
@@ -25,6 +25,7 @@ export declare class AppTemplate {
25
25
  addAppConnected(appConnected: AppConnected): Promise<AppConnected>;
26
26
  addAppDisconnected(appDisconnected: AppDisconnected): Promise<AppDisconnected>;
27
27
  addAppBackup(appBackup: AppBackup): Promise<AppBackup>;
28
+ destroyAppBackup(): Promise<void>;
28
29
  updateAppBackupById(id: string, appBackup: Omit<AppBackup, 'id'>): Promise<AppBackup>;
29
30
  addAppRestore(appRestore: AppRestore): Promise<AppRestore>;
30
31
  updateAppRestoreById(id: string, appRestore: Omit<AppRestore, 'id'>): Promise<AppRestore>;
@@ -132,6 +132,13 @@ class AppTemplate {
132
132
  return (0, last_1.default)(latestApp.backup);
133
133
  });
134
134
  }
135
+ destroyAppBackup() {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const app = yield this.get();
138
+ app.backup = [];
139
+ yield this.set(app);
140
+ });
141
+ }
135
142
  updateAppBackupById(id, appBackup) {
136
143
  return __awaiter(this, void 0, void 0, function* () {
137
144
  const app = yield this.get();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@did-space/template",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@arcblock/did": "^1.18.95",
40
40
  "@arcblock/validator": "^1.18.95",
41
- "@did-space/core": "0.3.21",
41
+ "@did-space/core": "0.3.22",
42
42
  "axios": "^0.27.2",
43
43
  "is-url": "^1.2.4",
44
44
  "joi": "^17.9.2",
@@ -63,5 +63,5 @@
63
63
  "ts-jest": "^28.0.6",
64
64
  "typescript": "^4.9.5"
65
65
  },
66
- "gitHead": "558719cb308f43ce1cc62c60125522726d8e1014"
66
+ "gitHead": "09a609e207a621b158581f3d3f8623e61ccbb90a"
67
67
  }