@netlify/cache
Advanced tools
+17
-0
@@ -23,2 +23,7 @@ "use strict"; | ||
| __export(main_exports, { | ||
| DAY: () => DAY, | ||
| HOUR: () => HOUR, | ||
| MINUTE: () => MINUTE, | ||
| WEEK: () => WEEK, | ||
| YEAR: () => YEAR, | ||
| fetchWithCache: () => fetchWithCache, | ||
@@ -294,4 +299,16 @@ getCacheStatus: () => getCacheStatus, | ||
| }; | ||
| // src/constants.ts | ||
| var MINUTE = 60; | ||
| var HOUR = 60 * MINUTE; | ||
| var DAY = 24 * HOUR; | ||
| var WEEK = 7 * DAY; | ||
| var YEAR = 365 * DAY; | ||
| // Annotate the CommonJS export names for ESM import in node: | ||
| 0 && (module.exports = { | ||
| DAY, | ||
| HOUR, | ||
| MINUTE, | ||
| WEEK, | ||
| YEAR, | ||
| fetchWithCache, | ||
@@ -298,0 +315,0 @@ getCacheStatus, |
+22
-1
@@ -156,2 +156,23 @@ import { N as NetlifyCache } from './cache-854474ad.js'; | ||
| export { fetchWithCache, getCacheStatus, setCacheHeaders }; | ||
| /** | ||
| * Number of seconds in one minute. | ||
| */ | ||
| declare const MINUTE = 60; | ||
| /** | ||
| * Number of seconds in one hour. | ||
| */ | ||
| declare const HOUR: number; | ||
| /** | ||
| * Number of seconds in one day. | ||
| */ | ||
| declare const DAY: number; | ||
| /** | ||
| * Number of seconds in one week. | ||
| */ | ||
| declare const WEEK: number; | ||
| /** | ||
| * Number of seconds in one year. | ||
| */ | ||
| declare const YEAR: number; | ||
| export { DAY, HOUR, MINUTE, WEEK, YEAR, fetchWithCache, getCacheStatus, setCacheHeaders }; |
+22
-1
@@ -156,2 +156,23 @@ import { N as NetlifyCache } from './cache-854474ad.js'; | ||
| export { fetchWithCache, getCacheStatus, setCacheHeaders }; | ||
| /** | ||
| * Number of seconds in one minute. | ||
| */ | ||
| declare const MINUTE = 60; | ||
| /** | ||
| * Number of seconds in one hour. | ||
| */ | ||
| declare const HOUR: number; | ||
| /** | ||
| * Number of seconds in one day. | ||
| */ | ||
| declare const DAY: number; | ||
| /** | ||
| * Number of seconds in one week. | ||
| */ | ||
| declare const WEEK: number; | ||
| /** | ||
| * Number of seconds in one year. | ||
| */ | ||
| declare const YEAR: number; | ||
| export { DAY, HOUR, MINUTE, WEEK, YEAR, fetchWithCache, getCacheStatus, setCacheHeaders }; |
+12
-0
@@ -266,3 +266,15 @@ import { | ||
| }; | ||
| // src/constants.ts | ||
| var MINUTE = 60; | ||
| var HOUR = 60 * MINUTE; | ||
| var DAY = 24 * HOUR; | ||
| var WEEK = 7 * DAY; | ||
| var YEAR = 365 * DAY; | ||
| export { | ||
| DAY, | ||
| HOUR, | ||
| MINUTE, | ||
| WEEK, | ||
| YEAR, | ||
| fetchWithCache, | ||
@@ -269,0 +281,0 @@ getCacheStatus, |
+1
-1
| { | ||
| "name": "@netlify/cache", | ||
| "version": "1.3.0", | ||
| "version": "1.4.0", | ||
| "description": "TypeScript utilities for interacting with the Netlify cache", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
51393
2.38%1283
3.8%