@netlify/cache 3.0.6 → 3.0.8
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/main.cjs +2 -1
- package/dist/main.js +2 -1
- package/package.json +2 -2
package/dist/main.cjs
CHANGED
|
@@ -349,7 +349,8 @@ var fetchWithCache = async (requestOrURL, optionsOrCacheSettings, cacheOptionsPa
|
|
|
349
349
|
if (onCachePut) {
|
|
350
350
|
await onCachePut(cachePut);
|
|
351
351
|
} else {
|
|
352
|
-
const
|
|
352
|
+
const netlifyGlobal = globalThis.Netlify;
|
|
353
|
+
const requestContext = netlifyGlobal?.context;
|
|
353
354
|
if (requestContext) {
|
|
354
355
|
requestContext.waitUntil(cachePut);
|
|
355
356
|
} else {
|
package/dist/main.js
CHANGED
|
@@ -315,7 +315,8 @@ var fetchWithCache = async (requestOrURL, optionsOrCacheSettings, cacheOptionsPa
|
|
|
315
315
|
if (onCachePut) {
|
|
316
316
|
await onCachePut(cachePut);
|
|
317
317
|
} else {
|
|
318
|
-
const
|
|
318
|
+
const netlifyGlobal = globalThis.Netlify;
|
|
319
|
+
const requestContext = netlifyGlobal?.context;
|
|
319
320
|
if (requestContext) {
|
|
320
321
|
requestContext.waitUntil(cachePut);
|
|
321
322
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/cache",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "TypeScript utilities for interacting with the Netlify cache",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"author": "Netlify Inc.",
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@netlify/dev-utils": "
|
|
71
|
+
"@netlify/dev-utils": "4.1.0",
|
|
72
72
|
"@netlify/types": "2.0.2",
|
|
73
73
|
"npm-run-all2": "^7.0.2",
|
|
74
74
|
"tsup": "^8.0.0",
|