nuxt-content-assets 1.2.0 → 1.2.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.ts +2 -1
- package/dist/module.json +3 -4
- package/dist/module.mjs +8 -9
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"name": "nuxt-content-assets",
|
|
3
|
+
"configKey": "contentAssets",
|
|
4
4
|
"compatibility": {
|
|
5
5
|
"nuxt": "^3.0.0"
|
|
6
6
|
},
|
|
7
|
-
"
|
|
8
|
-
"version": "1.2.0"
|
|
7
|
+
"version": "1.2.1"
|
|
9
8
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -503,20 +503,19 @@ function rewriteContent(path, asset) {
|
|
|
503
503
|
|
|
504
504
|
const resolve = createResolver(import.meta.url).resolve;
|
|
505
505
|
const meta = {
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
name: "nuxt-content-assets",
|
|
507
|
+
configKey: "contentAssets",
|
|
508
508
|
compatibility: {
|
|
509
509
|
nuxt: "^3.0.0"
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
|
-
const defaults = {
|
|
513
|
-
imageSize: "style",
|
|
514
|
-
contentExtensions: "md csv ya?ml json",
|
|
515
|
-
debug: false
|
|
516
|
-
};
|
|
517
512
|
const module = defineNuxtModule({
|
|
518
513
|
meta,
|
|
519
|
-
defaults
|
|
514
|
+
defaults: {
|
|
515
|
+
imageSize: "style",
|
|
516
|
+
contentExtensions: "md csv ya?ml json",
|
|
517
|
+
debug: false
|
|
518
|
+
},
|
|
520
519
|
async setup(options, nuxt) {
|
|
521
520
|
var _a, _b;
|
|
522
521
|
const buildPath = nuxt.options.buildDir;
|
|
@@ -611,7 +610,7 @@ const module = defineNuxtModule({
|
|
|
611
610
|
config.plugins || (config.plugins = []);
|
|
612
611
|
config.plugins.push(pluginPath);
|
|
613
612
|
config.virtual || (config.virtual = {});
|
|
614
|
-
config.virtual[`#${meta.
|
|
613
|
+
config.virtual[`#${meta.name}`] = () => {
|
|
615
614
|
return virtualConfig;
|
|
616
615
|
};
|
|
617
616
|
config.publicAssets || (config.publicAssets = []);
|
package/dist/types.d.ts
CHANGED