@hybridly/vue 0.0.1-alpha.1 → 0.0.1-alpha.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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -324,7 +324,7 @@ const RouterLink = vue.defineComponent({
|
|
|
324
324
|
return (props) => {
|
|
325
325
|
let data = props.data ?? {};
|
|
326
326
|
const url = core.makeUrl(props.href ?? "");
|
|
327
|
-
const method = props.method ?? "GET";
|
|
327
|
+
const method = props.method?.toUpperCase() ?? "GET";
|
|
328
328
|
const as = typeof props.as === "object" ? props.as : props.as?.toLowerCase() ?? "a";
|
|
329
329
|
if (method === "GET") {
|
|
330
330
|
utils.debug.adapter("vue", "Moving data object to URL parameters.");
|
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ declare const RouterLink: vue.DefineComponent<{
|
|
|
56
56
|
default: string;
|
|
57
57
|
};
|
|
58
58
|
method: {
|
|
59
|
-
type: PropType<Method$1>;
|
|
59
|
+
type: PropType<Method$1 | "get" | "delete" | "post" | "put" | "patch">;
|
|
60
60
|
default: string;
|
|
61
61
|
};
|
|
62
62
|
data: {
|
|
@@ -85,7 +85,7 @@ declare const RouterLink: vue.DefineComponent<{
|
|
|
85
85
|
default: string;
|
|
86
86
|
};
|
|
87
87
|
method: {
|
|
88
|
-
type: PropType<Method$1>;
|
|
88
|
+
type: PropType<Method$1 | "get" | "delete" | "post" | "put" | "patch">;
|
|
89
89
|
default: string;
|
|
90
90
|
};
|
|
91
91
|
data: {
|
|
@@ -116,7 +116,7 @@ declare const RouterLink: vue.DefineComponent<{
|
|
|
116
116
|
default: string;
|
|
117
117
|
};
|
|
118
118
|
method: {
|
|
119
|
-
type: PropType<Method$1>;
|
|
119
|
+
type: PropType<Method$1 | "get" | "delete" | "post" | "put" | "patch">;
|
|
120
120
|
default: string;
|
|
121
121
|
};
|
|
122
122
|
data: {
|
|
@@ -137,7 +137,7 @@ declare const RouterLink: vue.DefineComponent<{
|
|
|
137
137
|
};
|
|
138
138
|
}>>, {
|
|
139
139
|
data: RequestData;
|
|
140
|
-
method: Method$1;
|
|
140
|
+
method: Method$1 | "get" | "delete" | "post" | "put" | "patch";
|
|
141
141
|
options: Omit<VisitOptions$1, "url" | "data" | "method">;
|
|
142
142
|
as: string | Record<string, any>;
|
|
143
143
|
external: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -315,7 +315,7 @@ const RouterLink = defineComponent({
|
|
|
315
315
|
return (props) => {
|
|
316
316
|
let data = props.data ?? {};
|
|
317
317
|
const url = makeUrl(props.href ?? "");
|
|
318
|
-
const method = props.method ?? "GET";
|
|
318
|
+
const method = props.method?.toUpperCase() ?? "GET";
|
|
319
319
|
const as = typeof props.as === "object" ? props.as : props.as?.toLowerCase() ?? "a";
|
|
320
320
|
if (method === "GET") {
|
|
321
321
|
debug.adapter("vue", "Moving data object to URL parameters.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vue",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.3",
|
|
4
4
|
"description": "A solution to develop server-driven, client-rendered applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hybridly",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"vue": "^3.2.37"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hybridly/core": "0.0.1-alpha.
|
|
42
|
-
"@hybridly/progress-plugin": "0.0.1-alpha.
|
|
43
|
-
"@hybridly/utils": "0.0.1-alpha.
|
|
41
|
+
"@hybridly/core": "0.0.1-alpha.3",
|
|
42
|
+
"@hybridly/progress-plugin": "0.0.1-alpha.3",
|
|
43
|
+
"@hybridly/utils": "0.0.1-alpha.3",
|
|
44
44
|
"@vue/devtools-api": "^6.4.4",
|
|
45
45
|
"defu": "^6.1.0",
|
|
46
46
|
"lodash.clonedeep": "^4.5.0",
|