@serwist/broadcast-update
Advanced tools
Comparing version 9.0.0-preview.14 to 9.0.0-preview.15
@@ -5,4 +5,5 @@ import { BroadcastCacheUpdate } from "./BroadcastCacheUpdate.js"; | ||
import { responsesAreSame } from "./responsesAreSame.js"; | ||
import type { BroadcastCacheUpdateOptions, BroadcastMessage, BroadcastPayload, BroadcastPayloadGenerator } from "./types.js"; | ||
export { BroadcastCacheUpdate, BroadcastUpdatePlugin, responsesAreSame, CACHE_UPDATED_MESSAGE_META, CACHE_UPDATED_MESSAGE_TYPE, defaultHeadersToCheck, }; | ||
export type * from "./types.js"; | ||
export type { BroadcastCacheUpdateOptions, BroadcastPayload, BroadcastPayloadGenerator, BroadcastMessage }; | ||
//# sourceMappingURL=index.d.ts.map |
/** | ||
* Given two `Response's`, compares several header values to see if they are | ||
* Given two responses, compares several header values to see if they are | ||
* the same or not. | ||
@@ -4,0 +4,0 @@ * |
@@ -28,5 +28,3 @@ import type { CacheDidUpdateCallbackParam } from "@serwist/core"; | ||
export type BroadcastPayload = Record<string, any>; | ||
export interface BroadcastPayloadGenerator { | ||
(options: CacheDidUpdateCallbackParam): BroadcastPayload; | ||
} | ||
export type BroadcastPayloadGenerator = (options: CacheDidUpdateCallbackParam) => BroadcastPayload; | ||
export interface BroadcastMessage { | ||
@@ -33,0 +31,0 @@ type: typeof CACHE_UPDATED_MESSAGE_TYPE; |
{ | ||
"name": "@serwist/broadcast-update", | ||
"version": "9.0.0-preview.14", | ||
"version": "9.0.0-preview.15", | ||
"type": "module", | ||
@@ -32,8 +32,8 @@ "description": "A module that uses the Broadcast Channel API to announce when a cached response has updated", | ||
"dependencies": { | ||
"@serwist/core": "9.0.0-preview.14" | ||
"@serwist/core": "9.0.0-preview.15" | ||
}, | ||
"devDependencies": { | ||
"rollup": "4.13.0", | ||
"typescript": "5.5.0-dev.20240312", | ||
"@serwist/constants": "9.0.0-preview.14" | ||
"typescript": "5.5.0-dev.20240323", | ||
"@serwist/constants": "9.0.0-preview.15" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
@@ -13,2 +13,3 @@ /* | ||
import { responsesAreSame } from "./responsesAreSame.js"; | ||
import type { BroadcastCacheUpdateOptions, BroadcastMessage, BroadcastPayload, BroadcastPayloadGenerator } from "./types.js"; | ||
@@ -24,2 +25,2 @@ export { | ||
export type * from "./types.js"; | ||
export type { BroadcastCacheUpdateOptions, BroadcastPayload, BroadcastPayloadGenerator, BroadcastMessage }; |
@@ -12,3 +12,3 @@ /* | ||
/** | ||
* Given two `Response's`, compares several header values to see if they are | ||
* Given two responses, compares several header values to see if they are | ||
* the same or not. | ||
@@ -15,0 +15,0 @@ * |
@@ -31,5 +31,3 @@ import type { CacheDidUpdateCallbackParam } from "@serwist/core"; | ||
export interface BroadcastPayloadGenerator { | ||
(options: CacheDidUpdateCallbackParam): BroadcastPayload; | ||
} | ||
export type BroadcastPayloadGenerator = (options: CacheDidUpdateCallbackParam) => BroadcastPayload; | ||
@@ -36,0 +34,0 @@ export interface BroadcastMessage { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
27356
524
+ Added@serwist/core@9.0.0-preview.15(transitive)
- Removed@serwist/core@9.0.0-preview.14(transitive)