@born05/sveltekit-cache-control 1.5.2 → 1.5.3

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.ts +5 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import Redis from 'ioredis';
2
1
  import { captureException } from '@sentry/sveltekit';
2
+ import Redis from 'ioredis';
3
3
  const CACHE_STRATEGY_PRIVATE_ONLY = 'private-only';
4
4
  const CACHE_STRATEGY_PRIVATE_AND_PUBLIC = 'private-and-public';
5
5
  const CACHE_STRATEGY_FORCE_PUBLIC = 'force-public';
package/index.ts CHANGED
@@ -1,6 +1,9 @@
1
- import type { Handle } from '@sveltejs/kit';
2
- import Redis from 'ioredis';
3
1
  import { captureException } from '@sentry/sveltekit';
2
+ import type { sequence } from '@sveltejs/kit/hooks';
3
+ import Redis from 'ioredis';
4
+
5
+ type Handle = ReturnType<typeof sequence>;
6
+
4
7
 
5
8
  const CACHE_STRATEGY_PRIVATE_ONLY = 'private-only';
6
9
  const CACHE_STRATEGY_PRIVATE_AND_PUBLIC = 'private-and-public';
package/package.json CHANGED
@@ -34,5 +34,5 @@
34
34
  "@sentry/sveltekit": ">=7.0.0",
35
35
  "@sveltejs/kit": ">=1.0.0"
36
36
  },
37
- "version": "1.5.2"
37
+ "version": "1.5.3"
38
38
  }