mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update lib/node/asar-fs-wrapper.ts
This commit is contained in:
@@ -1018,7 +1018,7 @@ export const wrapFsWithAsar = (fs: Record<string, any>) => {
|
||||
const { getNearestParentPackageJSONType } = moduleBinding;
|
||||
internalBinding('modules').getNearestParentPackageJSONType = (checkPath: string) => {
|
||||
const pathInfo = splitPath(checkPath);
|
||||
if (!pathInfo.isAsar) return getNearestParentPackageJSON(checkPath);
|
||||
if (!pathInfo.isAsar) return getNearestParentPackageJSONType(checkPath);
|
||||
const { asarPath, filePath } = pathInfo;
|
||||
|
||||
const archive = getOrCreateArchive(asarPath);
|
||||
|
||||
Reference in New Issue
Block a user