nuxt-content-assets 1.5.1 → 1.6.0
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
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
|
|
3
|
+
interface ModuleOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Image size hints
|
|
6
|
+
*
|
|
7
|
+
* @example 'attrs style url'
|
|
8
|
+
* @default 'style'
|
|
9
|
+
*/
|
|
10
|
+
imageSize?: string | string[] | false;
|
|
11
|
+
/**
|
|
12
|
+
* List of content extensions; anything else as an asset
|
|
13
|
+
*
|
|
14
|
+
* @example 'md'
|
|
15
|
+
* @default 'md csv ya?ml json'
|
|
16
|
+
*/
|
|
17
|
+
contentExtensions?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* Display debug messages
|
|
20
|
+
*
|
|
21
|
+
* @example true
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
debug?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
2
28
|
|
|
3
29
|
export { _default as default };
|
package/dist/module.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { matchTokens } from "./string.js";
|
|
2
2
|
export const extensions = {
|
|
3
|
-
// used to get image size
|
|
4
|
-
image: matchTokens("png jpg jpeg gif svg webp ico"),
|
|
5
3
|
// used to recognise content
|
|
6
4
|
content: matchTokens("md mdx json yml yaml csv"),
|
|
5
|
+
// used to get image size
|
|
6
|
+
image: matchTokens("png jpg jpeg gif svg webp ico avif bmp cur"),
|
|
7
7
|
// unused for now
|
|
8
8
|
media: matchTokens("mp3 m4a wav mp4 mov webm ogg avi flv avchd")
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-content-assets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Enable locally-located assets in Nuxt Content",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
"ws": "^8.19.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@nuxt/content": "^2.13.0"
|
|
52
|
+
"@nuxt/content": "^2.13.0",
|
|
53
|
+
"nuxt": ">=3.0.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@nuxt/devtools": "
|
|
56
|
+
"@nuxt/devtools": "latest",
|
|
56
57
|
"@nuxt/eslint-config": "^0.7.6",
|
|
57
58
|
"@nuxt/module-builder": "^1.0.2",
|
|
58
59
|
"@nuxt/schema": "^3.20.2",
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"@types/ws": "^8.18.1",
|
|
63
64
|
"cpy-cli": "^6.0.0",
|
|
64
65
|
"eslint": "^8.39.2",
|
|
65
|
-
"nuxt": "
|
|
66
|
+
"nuxt": ">=3.0.0",
|
|
66
67
|
"vitest": "^3.2.4"
|
|
67
68
|
},
|
|
68
69
|
"engines": {
|