pinokiod 8.0.77 → 8.0.78
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.
|
@@ -1092,8 +1092,8 @@ class AutomaticScans {
|
|
|
1092
1092
|
counts.files += 1
|
|
1093
1093
|
counts.bytes += Math.max(0, Number(stat.size) || 0)
|
|
1094
1094
|
if (!isCandidateFileSize(stat.size, threshold) ||
|
|
1095
|
-
|
|
1096
|
-
|
|
1095
|
+
(policy.linkability_known &&
|
|
1096
|
+
!linkableDevices.has(stat.dev))) continue
|
|
1097
1097
|
candidates.push({
|
|
1098
1098
|
path: paths[index],
|
|
1099
1099
|
size: stat.size,
|
package/package.json
CHANGED
|
@@ -1236,7 +1236,7 @@ describe("automatic app checks", () => {
|
|
|
1236
1236
|
await close(vault)
|
|
1237
1237
|
})
|
|
1238
1238
|
|
|
1239
|
-
test("legacy global scans without linkability metadata
|
|
1239
|
+
test("legacy global scans without linkability metadata preserve automatic checks", async () => {
|
|
1240
1240
|
const home = await makeHome()
|
|
1241
1241
|
const app = "legacy-global-scan-app"
|
|
1242
1242
|
const appRoot = path.join(home, "api", app)
|
|
@@ -1255,11 +1255,16 @@ describe("automatic app checks", () => {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
vault.automaticScans.queueApp(app, [first, second])
|
|
1258
|
-
await waitFor(() =>
|
|
1259
|
-
|
|
1258
|
+
await waitFor(() => {
|
|
1259
|
+
const row = vault.automaticScans.entries.get(app)
|
|
1260
|
+
return !vault.automaticScans.active && row && row.state === "result"
|
|
1261
|
+
})
|
|
1260
1262
|
|
|
1261
|
-
assert.deepEqual(hashedPaths, [])
|
|
1262
|
-
assert.deepEqual(vault.automaticScans.snapshot().rows
|
|
1263
|
+
assert.deepEqual(hashedPaths.sort(), [first, second].sort())
|
|
1264
|
+
assert.deepEqual(vault.automaticScans.snapshot().rows.map((row) => ({
|
|
1265
|
+
app: row.app,
|
|
1266
|
+
state: row.state
|
|
1267
|
+
})), [{ app, state: "result" }])
|
|
1263
1268
|
await close(vault)
|
|
1264
1269
|
})
|
|
1265
1270
|
|