@rezo-zero/nuxt-cache-control 0.1.6 → 0.1.7
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 +3 -2
- package/dist/module.json +6 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/{use-cache-control.mjs → use-cache-control.js} +1 -1
- package/dist/runtime/server/plugins/cache-control.d.ts +1 -0
- package/dist/types.d.mts +2 -15
- package/package.json +26 -23
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/types.d.ts +0 -16
- /package/dist/runtime/server/plugins/{cache-control.mjs → cache-control.js} +0 -0
package/dist/module.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
noCacheCookies?: string[];
|
|
5
5
|
}
|
|
6
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
6
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { _default as default };
|
|
9
|
+
export type { ModuleOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
+
export { default } from './module.mjs'
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['cacheControl']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['cacheControl']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['cacheControl']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['cacheControl']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module.js'
|
|
3
|
+
export { type ModuleOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rezo-zero/nuxt-cache-control",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Declare fine-grained cache control headers for your Nuxt application in each page",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,44 +10,47 @@
|
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"types": "./dist/types.d.
|
|
14
|
-
"import": "./dist/module.mjs"
|
|
15
|
-
|
|
13
|
+
"types": "./dist/types.d.mts",
|
|
14
|
+
"import": "./dist/module.mjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/module.mjs",
|
|
18
|
+
"typesVersions": {
|
|
19
|
+
"*": {
|
|
20
|
+
".": [
|
|
21
|
+
"./dist/types.d.mts"
|
|
22
|
+
]
|
|
16
23
|
}
|
|
17
24
|
},
|
|
18
|
-
"main": "./dist/module.cjs",
|
|
19
|
-
"types": "./dist/types.d.ts",
|
|
20
25
|
"files": [
|
|
21
26
|
"dist"
|
|
22
27
|
],
|
|
23
28
|
"scripts": {
|
|
24
29
|
"prepack": "nuxt-module-build build",
|
|
25
|
-
"dev": "nuxi dev playground",
|
|
30
|
+
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
26
31
|
"dev:build": "nuxi build playground",
|
|
27
32
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
28
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish
|
|
33
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
29
34
|
"lint": "eslint .",
|
|
30
35
|
"test": "vitest run",
|
|
31
|
-
"test:watch": "vitest watch"
|
|
36
|
+
"test:watch": "vitest watch",
|
|
37
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
32
38
|
},
|
|
33
39
|
"dependencies": {
|
|
34
|
-
"@nuxt/kit": "^
|
|
40
|
+
"@nuxt/kit": "^4.0.1",
|
|
35
41
|
"defu": "^6.1.4"
|
|
36
42
|
},
|
|
37
43
|
"devDependencies": {
|
|
38
|
-
"@nuxt/devtools": "
|
|
39
|
-
"@nuxt/eslint-config": "^
|
|
40
|
-
"@nuxt/module-builder": "^0.
|
|
41
|
-
"@nuxt/schema": "^
|
|
42
|
-
"@nuxt/test-utils": "^3.
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"changelogen": "^0.
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"nuxt": "^3.11.1",
|
|
49
|
-
"prettier": "^3.2.5",
|
|
50
|
-
"vitest": "^1.4.0"
|
|
44
|
+
"@nuxt/devtools": "^2.6.2",
|
|
45
|
+
"@nuxt/eslint-config": "^1.7.0",
|
|
46
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
47
|
+
"@nuxt/schema": "^4.0.1",
|
|
48
|
+
"@nuxt/test-utils": "^3.19.2",
|
|
49
|
+
"@types/node": "^24.1.0",
|
|
50
|
+
"changelogen": "^0.6.2",
|
|
51
|
+
"eslint": "^9.31.0",
|
|
52
|
+
"nuxt": "^4.0.1",
|
|
53
|
+
"vitest": "^3.2.4"
|
|
51
54
|
},
|
|
52
55
|
"engines": {
|
|
53
56
|
"node": "^20"
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
package/dist/types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['cacheControl']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['cacheControl']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['cacheControl']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['cacheControl']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module'
|
|
File without changes
|