nuxt-skew-protection 1.4.4 → 1.5.1
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/module.d.mts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +310 -242
- package/dist/runtime/adapters/ably/index.d.ts +2 -2
- package/dist/runtime/adapters/ably/index.js +7 -1
- package/dist/runtime/adapters/ably/node.d.ts +2 -0
- package/dist/runtime/adapters/ably/types.d.ts +3 -0
- package/dist/runtime/adapters/ably/types.js +2 -0
- package/dist/runtime/adapters/ably/web.d.ts +2 -5
- package/dist/runtime/adapters/ably/web.js +1 -1
- package/dist/runtime/adapters/index.js +1 -1
- package/dist/runtime/adapters/pusher/index.d.ts +2 -2
- package/dist/runtime/adapters/pusher/index.js +7 -1
- package/dist/runtime/adapters/pusher/types.d.ts +1 -0
- package/dist/runtime/adapters/pusher/web.d.ts +2 -8
- package/dist/runtime/adapters/types.d.ts +7 -5
- package/dist/runtime/adapters/types.js +1 -0
- package/dist/runtime/app/types.d.ts +1 -1
- package/dist/runtime/app/utils/create-skew-connection.js +5 -3
- package/dist/runtime/server/imports/cookie.d.ts +2 -2
- package/dist/runtime/server/imports/cookie.js +5 -1
- package/dist/runtime/server/middleware/vercel-skew.js +4 -1
- package/dist/runtime/server/plugins/html-cache-headers.d.ts +18 -0
- package/dist/runtime/server/plugins/html-cache-headers.js +35 -0
- package/dist/runtime/server/routes/__skew/sse.js +0 -2
- package/dist/runtime/server/routes/__skew/ws.js +1 -1
- package/dist/runtime/server/utils/cloudflare-asset-fetch.js +5 -2
- package/dist/runtime/server/utils/html-cache-policy.d.ts +212 -0
- package/dist/runtime/server/utils/html-cache-policy.js +131 -0
- package/dist/runtime/server/utils/vercel-cookie-path.d.ts +2 -0
- package/dist/runtime/server/utils/vercel-cookie-path.js +3 -0
- package/dist/runtime/types.d.ts +5 -2
- package/package.json +9 -9
package/dist/module.d.mts
CHANGED
|
@@ -58,8 +58,8 @@ interface ModuleOptions {
|
|
|
58
58
|
/**
|
|
59
59
|
* Bundle old deployment assets to support users on previous versions.
|
|
60
60
|
* When enabled, old build assets are stored and served to users who haven't refreshed.
|
|
61
|
-
* @default true
|
|
62
|
-
* @note Automatically disabled when using CDN URL
|
|
61
|
+
* @default true, or false when native Vercel Skew Protection is active
|
|
62
|
+
* @note Automatically disabled when using a CDN URL or native Vercel Skew Protection
|
|
63
63
|
*/
|
|
64
64
|
bundleAssets?: boolean;
|
|
65
65
|
/**
|