@hoardodile/host 0.1.7 → 0.1.9
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.
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/archive-api.test.ts +156 -0
- package/src/nested-view.ts +15 -4
package/dist/index.js
CHANGED
|
@@ -1459,7 +1459,7 @@ function createNestedAwareContainer(base, nestedCdCache, scope, extractCacheDir)
|
|
|
1459
1459
|
{ cdCache: nestedCdCache, scope }
|
|
1460
1460
|
);
|
|
1461
1461
|
const manifestMemo = /* @__PURE__ */ new Map();
|
|
1462
|
-
function readManifest(outer) {
|
|
1462
|
+
async function readManifest(outer) {
|
|
1463
1463
|
const key = `${extractCacheDir}:${outer}`;
|
|
1464
1464
|
const pending = manifestMemo.get(key);
|
|
1465
1465
|
if (pending !== void 0) return pending;
|
|
@@ -1468,7 +1468,9 @@ function createNestedAwareContainer(base, nestedCdCache, scope, extractCacheDir)
|
|
|
1468
1468
|
outer
|
|
1469
1469
|
).catch(() => void 0);
|
|
1470
1470
|
manifestMemo.set(key, work);
|
|
1471
|
-
|
|
1471
|
+
const entries = await work;
|
|
1472
|
+
if (entries === void 0) manifestMemo.delete(key);
|
|
1473
|
+
return entries;
|
|
1472
1474
|
}
|
|
1473
1475
|
async function resolveMaterialized(rel) {
|
|
1474
1476
|
if (extractCacheDir === void 0) return void 0;
|