@datatruck/cli 0.41.11 → 0.41.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.
@@ -106,7 +106,12 @@ class ResticRepository extends RepositoryAbstract_1.RepositoryAbstract {
106
106
  });
107
107
  const result = await restic.snapshots({
108
108
  tags: [
109
- ...(data.options.ids?.map((id) => ResticRepository.createSnapshotTag(id.length === 8 ? RepositoryAbstract_1.SnapshotTagEnum.SHORT_ID : RepositoryAbstract_1.SnapshotTagEnum.ID, id)) ?? []),
109
+ ...(data.options.ids?.flatMap((id) => id.length === 8
110
+ ? [
111
+ ResticRepository.createSnapshotTag(RepositoryAbstract_1.SnapshotTagEnum.ID, id),
112
+ ResticRepository.createSnapshotTag(RepositoryAbstract_1.SnapshotTagEnum.SHORT_ID, id),
113
+ ]
114
+ : ResticRepository.createSnapshotTag(RepositoryAbstract_1.SnapshotTagEnum.ID, id)) ?? []),
110
115
  ],
111
116
  });
112
117
  const filterPkg = (0, config_1.createPkgFilter)(data.options.packageNames);
@@ -204,7 +209,10 @@ class ResticRepository extends RepositoryAbstract_1.RepositoryAbstract {
204
209
  },
205
210
  });
206
211
  const [lastSnapshot] = await restic.snapshots({
207
- tags: [packageTag],
212
+ tags: [
213
+ packageTag,
214
+ `${ResticRepository.refPrefix}pkg:${data.package.name}`,
215
+ ],
208
216
  latest: 1,
209
217
  });
210
218
  const nodePkg = (0, fs_1.parsePackageFile)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatruck/cli",
3
- "version": "0.41.11",
3
+ "version": "0.41.12",
4
4
  "description": "Tool for creating and managing backups",
5
5
  "homepage": "https://github.com/swordev/datatruck#readme",
6
6
  "bugs": {