@file-services/overlay
Advanced tools
Comparing version 3.1.1 to 4.0.0
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -34,3 +34,5 @@ "use strict"; | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.readFileSync(resolvedUpperPath, ...args); | ||
@@ -41,2 +43,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -48,3 +53,5 @@ return lowerFs.readFileSync(resolvedLowerPath, ...args); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.statSync(resolvedUpperPath); | ||
@@ -55,2 +62,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -62,3 +72,5 @@ return lowerFs.statSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.lstatSync(resolvedUpperPath); | ||
@@ -69,2 +81,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -76,3 +91,5 @@ return lowerFs.lstatSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return lowerFs.join(baseDirectoryPath, upperFs.realpathSync(resolvedUpperPath)); | ||
@@ -83,2 +100,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -90,3 +110,5 @@ return lowerFs.realpathSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.readlinkSync(resolvedUpperPath); | ||
@@ -97,2 +119,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -104,3 +129,5 @@ return lowerFs.readlinkSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
const resInUpper = upperFs.readdirSync(resolvedUpperPath, ...args); | ||
@@ -117,2 +144,5 @@ try { | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -119,0 +149,0 @@ return lowerFs.readdirSync(resolvedLowerPath, ...args); |
@@ -31,3 +31,5 @@ import { createFileSystem } from '@file-services/utils'; | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.readFileSync(resolvedUpperPath, ...args); | ||
@@ -38,2 +40,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -45,3 +50,5 @@ return lowerFs.readFileSync(resolvedLowerPath, ...args); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.statSync(resolvedUpperPath); | ||
@@ -52,2 +59,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -59,3 +69,5 @@ return lowerFs.statSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.lstatSync(resolvedUpperPath); | ||
@@ -66,2 +78,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -73,3 +88,5 @@ return lowerFs.lstatSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return lowerFs.join(baseDirectoryPath, upperFs.realpathSync(resolvedUpperPath)); | ||
@@ -80,2 +97,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -87,3 +107,5 @@ return lowerFs.realpathSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.readlinkSync(resolvedUpperPath); | ||
@@ -94,2 +116,5 @@ } | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -101,3 +126,5 @@ return lowerFs.readlinkSync(resolvedLowerPath); | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
const resInUpper = upperFs.readdirSync(resolvedUpperPath, ...args); | ||
@@ -114,2 +141,5 @@ try { | ||
} | ||
finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
} | ||
@@ -116,0 +146,0 @@ return lowerFs.readdirSync(resolvedLowerPath, ...args); |
{ | ||
"name": "@file-services/overlay", | ||
"description": "Overlay files and directories from one file system on top of another.", | ||
"version": "3.1.1", | ||
"version": "4.0.0", | ||
"main": "cjs/index.js", | ||
@@ -13,8 +13,7 @@ "module": "esm/index.js", | ||
"test:node": "mocha \"test/**/*.spec.ts?(x)\"", | ||
"test:browser": "mocha-pup \"test/**/*.spec.ts?(x)\"", | ||
"prepack": "yarn build" | ||
"test:browser": "mocha-pup \"test/**/*.spec.ts?(x)\"" | ||
}, | ||
"dependencies": { | ||
"@file-services/types": "^3.1.1", | ||
"@file-services/utils": "^3.1.1" | ||
"@file-services/types": "^4.0.0", | ||
"@file-services/utils": "^4.0.0" | ||
}, | ||
@@ -21,0 +20,0 @@ "files": [ |
@@ -47,6 +47,10 @@ import type { | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.readFileSync(resolvedUpperPath, ...args); | ||
} catch { | ||
/**/ | ||
} finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
@@ -59,6 +63,10 @@ } | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.statSync(resolvedUpperPath); | ||
} catch { | ||
/**/ | ||
} finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
@@ -71,6 +79,10 @@ } | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.lstatSync(resolvedUpperPath); | ||
} catch { | ||
/**/ | ||
} finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
@@ -83,6 +95,10 @@ } | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return lowerFs.join(baseDirectoryPath, upperFs.realpathSync(resolvedUpperPath)); | ||
} catch { | ||
/**/ | ||
} finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
@@ -95,6 +111,10 @@ } | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
return upperFs.readlinkSync(resolvedUpperPath); | ||
} catch { | ||
/**/ | ||
} finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
@@ -107,3 +127,5 @@ } | ||
if (resolvedUpperPath !== undefined) { | ||
const { stackTraceLimit } = Error; | ||
try { | ||
Error.stackTraceLimit = 0; | ||
const resInUpper = upperFs.readdirSync(resolvedUpperPath, ...args); | ||
@@ -117,2 +139,4 @@ try { | ||
/**/ | ||
} finally { | ||
Error.stackTraceLimit = stackTraceLimit; | ||
} | ||
@@ -119,0 +143,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
67954
1118
+ Added@file-services/types@4.1.0(transitive)
+ Added@file-services/utils@4.1.0(transitive)
- Removed@file-services/types@3.1.1(transitive)
- Removed@file-services/utils@3.1.1(transitive)
Updated@file-services/types@^4.0.0
Updated@file-services/utils@^4.0.0