@file-services/overlay
Advanced tools
Comparing version 5.2.0 to 5.2.1
{ | ||
"name": "@file-services/overlay", | ||
"description": "Overlay files and directories from one file system on top of another.", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"main": "dist/index.js", | ||
@@ -12,4 +12,4 @@ "scripts": { | ||
"dependencies": { | ||
"@file-services/types": "^5.2.0", | ||
"@file-services/utils": "^5.2.0" | ||
"@file-services/types": "^5.2.1", | ||
"@file-services/utils": "^5.2.1" | ||
}, | ||
@@ -16,0 +16,0 @@ "files": [ |
@@ -9,2 +9,3 @@ import type { | ||
IDirectoryEntry, | ||
BufferEncoding, | ||
} from '@file-services/types'; | ||
@@ -242,3 +243,3 @@ import { createFileSystem } from '@file-services/utils'; | ||
path: string, | ||
options: string | { encoding?: string | null; flag?: string } | undefined | null | CallbackFn<Buffer>, | ||
options?: ReadFileOptions | CallbackFn<Buffer>, | ||
callback?: CallbackFn<string> | CallbackFn<Buffer> | CallbackFn<string | Buffer> | ||
@@ -256,9 +257,9 @@ ): void { | ||
if (upperError) { | ||
lowerFs.readFile(resolvedLowerPath, options as string, callback as CallbackFn<Buffer | string>); | ||
lowerFs.readFile(resolvedLowerPath, options as BufferEncoding, callback as CallbackFn<string | Buffer>); | ||
} else { | ||
(callback as CallbackFn<Buffer | string>)(upperError, upperValue); | ||
(callback as CallbackFn<string | Buffer>)(upperError, upperValue); | ||
} | ||
}); | ||
} else { | ||
lowerFs.readFile(resolvedLowerPath, options, callback as CallbackFn<Buffer | string>); | ||
lowerFs.readFile(resolvedLowerPath, options, callback as CallbackFn<string | Buffer>); | ||
} | ||
@@ -265,0 +266,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
752
42548
Updated@file-services/types@^5.2.1
Updated@file-services/utils@^5.2.1