@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?.
|
|
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: [
|
|
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)();
|