fix: admin/fs: some changes in permissions were not detected
Massimo Melina committed
Oct 24, 2023 at 14:56 UTC
bd0a2afa2d7bc2a1cf1f08408105f49407223c2a
1 file changed
+2
-1
src/cross.ts
+2
-1
@@ -324,7 +324,8 @@ export function isWindowsDrive(s?: string) {
324
export function isEqualLax(a: any,b: any): boolean {
325
return a == b //eslint-disable-line
326
|| (a && b && typeof a === 'object' && typeof b === 'object'
327
- && Object.entries(a).every(([k,v]) => isEqualLax(v, b[k])) )
327
+ && Object.entries(a).every(([k, v]) => isEqualLax(v, b[k]))
328
+ && Object.entries(b).every(([k, v]) => Object.hasOwn(a, k) || isEqualLax(v, a[k])) )
329
}
330
331
export function xlate(input: any, table: Record<string, any>) {