@nuxt/kit 3.10.0 → 3.10.2
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/README.md +1 -1
- package/dist/index.mjs +4 -3
- package/package.json +11 -11
package/README.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -2723,8 +2723,9 @@ async function addComponent(opts) {
|
|
|
2723
2723
|
...opts
|
|
2724
2724
|
};
|
|
2725
2725
|
nuxt.hook("components:extend", (components) => {
|
|
2726
|
-
const
|
|
2727
|
-
if (
|
|
2726
|
+
const existingComponentIndex = components.findIndex((c) => (c.pascalName === component.pascalName || c.kebabName === component.kebabName) && c.mode === component.mode);
|
|
2727
|
+
if (existingComponentIndex !== -1) {
|
|
2728
|
+
const existingComponent = components[existingComponentIndex];
|
|
2728
2729
|
const existingPriority = existingComponent.priority ?? 0;
|
|
2729
2730
|
const newPriority = component.priority ?? 0;
|
|
2730
2731
|
if (newPriority < existingPriority) {
|
|
@@ -2734,7 +2735,7 @@ async function addComponent(opts) {
|
|
|
2734
2735
|
const name = existingComponent.pascalName || existingComponent.kebabName;
|
|
2735
2736
|
logger.warn(`Overriding ${name} component. You can specify a \`priority\` option when calling \`addComponent\` to avoid this warning.`);
|
|
2736
2737
|
}
|
|
2737
|
-
|
|
2738
|
+
components.splice(existingComponentIndex, 1, component);
|
|
2738
2739
|
} else {
|
|
2739
2740
|
components.push(component);
|
|
2740
2741
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -23,35 +23,35 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"c12": "^1.
|
|
26
|
+
"c12": "^1.7.0",
|
|
27
27
|
"consola": "^3.2.3",
|
|
28
28
|
"defu": "^6.1.4",
|
|
29
|
-
"globby": "^14.0.
|
|
29
|
+
"globby": "^14.0.1",
|
|
30
30
|
"hash-sum": "^2.0.0",
|
|
31
|
-
"ignore": "^5.3.
|
|
31
|
+
"ignore": "^5.3.1",
|
|
32
32
|
"jiti": "^1.21.0",
|
|
33
33
|
"knitwork": "^1.0.0",
|
|
34
34
|
"mlly": "^1.5.0",
|
|
35
35
|
"pathe": "^1.1.2",
|
|
36
36
|
"pkg-types": "^1.0.3",
|
|
37
|
-
"scule": "^1.
|
|
38
|
-
"semver": "^7.
|
|
39
|
-
"ufo": "^1.
|
|
37
|
+
"scule": "^1.3.0",
|
|
38
|
+
"semver": "^7.6.0",
|
|
39
|
+
"ufo": "^1.4.0",
|
|
40
40
|
"unctx": "^2.3.1",
|
|
41
41
|
"unimport": "^3.7.1",
|
|
42
42
|
"untyped": "^1.4.2",
|
|
43
|
-
"@nuxt/schema": "3.10.
|
|
43
|
+
"@nuxt/schema": "3.10.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/hash-sum": "1.0.2",
|
|
47
47
|
"@types/lodash-es": "4.17.12",
|
|
48
|
-
"@types/semver": "7.5.
|
|
48
|
+
"@types/semver": "7.5.7",
|
|
49
49
|
"lodash-es": "4.17.21",
|
|
50
50
|
"nitropack": "2.8.1",
|
|
51
51
|
"unbuild": "latest",
|
|
52
|
-
"vite": "5.
|
|
52
|
+
"vite": "5.1.1",
|
|
53
53
|
"vitest": "1.2.2",
|
|
54
|
-
"webpack": "5.90.
|
|
54
|
+
"webpack": "5.90.1"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": "^14.18.0 || >=16.10.0"
|