@hybridly/core 0.7.16 → 0.7.18
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 +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -455,7 +455,10 @@ function getRouteTransformable(routeName, routeParameters, shouldThrow) {
|
|
|
455
455
|
const missing = Object.keys(parameters);
|
|
456
456
|
const replaceParameter = (match, parameterName, optional) => {
|
|
457
457
|
const value = getRouteParameterValue(routeName, parameterName, parameters);
|
|
458
|
-
missing.
|
|
458
|
+
const found = missing.indexOf(parameterName);
|
|
459
|
+
if (found >= 0) {
|
|
460
|
+
missing.splice(found, 1);
|
|
461
|
+
}
|
|
459
462
|
if (value) {
|
|
460
463
|
return value;
|
|
461
464
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -448,7 +448,10 @@ function getRouteTransformable(routeName, routeParameters, shouldThrow) {
|
|
|
448
448
|
const missing = Object.keys(parameters);
|
|
449
449
|
const replaceParameter = (match, parameterName, optional) => {
|
|
450
450
|
const value = getRouteParameterValue(routeName, parameterName, parameters);
|
|
451
|
-
missing.
|
|
451
|
+
const found = missing.indexOf(parameterName);
|
|
452
|
+
if (found >= 0) {
|
|
453
|
+
missing.splice(found, 1);
|
|
454
|
+
}
|
|
452
455
|
if (value) {
|
|
453
456
|
return value;
|
|
454
457
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.18",
|
|
5
5
|
"description": "Core functionality of Hybridly",
|
|
6
6
|
"author": "Enzo Innocenzi <enzo@innocenzi.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"qs": "^6.13.0",
|
|
45
45
|
"superjson": "^2.2.1",
|
|
46
|
-
"@hybridly/utils": "0.7.
|
|
46
|
+
"@hybridly/utils": "0.7.18"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"defu": "^6.1.4"
|