@jsenv/navi 0.7.1 → 0.7.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/dist/jsenv_navi.js +3 -1
- package/package.json +2 -2
package/dist/jsenv_navi.js
CHANGED
|
@@ -1073,6 +1073,8 @@ const mergeStyles = (stylesA, stylesB, context = "js") => {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
const result = {};
|
|
1075
1075
|
const aKeys = Object.keys(stylesA);
|
|
1076
|
+
// in case stylesB is a string we first parse it
|
|
1077
|
+
stylesB = normalizeStyles(stylesB, context);
|
|
1076
1078
|
const bKeyToVisitSet = new Set(Object.keys(stylesB));
|
|
1077
1079
|
for (const aKey of aKeys) {
|
|
1078
1080
|
const bHasKey = bKeyToVisitSet.has(aKey);
|
|
@@ -1084,7 +1086,7 @@ const mergeStyles = (stylesA, stylesB, context = "js") => {
|
|
|
1084
1086
|
}
|
|
1085
1087
|
}
|
|
1086
1088
|
for (const bKey of bKeyToVisitSet) {
|
|
1087
|
-
result[bKey] =
|
|
1089
|
+
result[bKey] = stylesB[bKey];
|
|
1088
1090
|
}
|
|
1089
1091
|
return result;
|
|
1090
1092
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/navi",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Library of components including navigation to create frontend applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"prepublishOnly": "npm run build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jsenv/dom": "0.5.
|
|
37
|
+
"@jsenv/dom": "0.5.2",
|
|
38
38
|
"@jsenv/humanize": "1.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|