Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@netlify/cache

Package Overview
Dependencies
Maintainers
19
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/cache - npm Package Compare versions

Comparing version
3.2.0
to
3.3.0
+3
-1
dist/main.cjs

@@ -341,2 +341,3 @@ "use strict";

}
const { fetch = globalThis.fetch } = cacheOptions;
const fresh = await fetch(request);

@@ -350,3 +351,4 @@ if (!fresh.body) {

applyHeaders(cacheResponse.headers, cacheHeaders(cacheSettings));
const cachePut = cache.put(request, cacheResponse);
const cachePut = cache.put(request, cacheResponse).catch(() => {
});
if (onCachePut) {

@@ -353,0 +355,0 @@ await onCachePut(cachePut);

@@ -146,2 +146,6 @@ import { N as NetlifyCache } from './cache-B9TsVKLp.cjs';

/**
* A custom `fetch` implementation to be used instead of the native one.
*/
fetch?: typeof globalThis.fetch;
/**
* When `fetchWithCache` fetches a new response and adds it to the cache, the

@@ -148,0 +152,0 @@ * `Promise` it returns waits for both the network call to finish and for the

@@ -146,2 +146,6 @@ import { N as NetlifyCache } from './cache-B9TsVKLp.js';

/**
* A custom `fetch` implementation to be used instead of the native one.
*/
fetch?: typeof globalThis.fetch;
/**
* When `fetchWithCache` fetches a new response and adds it to the cache, the

@@ -148,0 +152,0 @@ * `Promise` it returns waits for both the network call to finish and for the

@@ -306,2 +306,3 @@ // src/polyfill.ts

}
const { fetch = globalThis.fetch } = cacheOptions;
const fresh = await fetch(request);

@@ -315,3 +316,4 @@ if (!fresh.body) {

applyHeaders(cacheResponse.headers, cacheHeaders(cacheSettings));
const cachePut = cache.put(request, cacheResponse);
const cachePut = cache.put(request, cacheResponse).catch(() => {
});
if (onCachePut) {

@@ -318,0 +320,0 @@ await onCachePut(cachePut);

{
"name": "@netlify/cache",
"version": "3.2.0",
"version": "3.3.0",
"description": "TypeScript utilities for interacting with the Netlify cache",

@@ -5,0 +5,0 @@ "type": "module",