aleman 1.1.37 → 1.1.39
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/ChangeLog +10 -0
- package/menu/importmap.js +7 -0
- package/menu/menu.js +1 -5
- package/menu/rules/build-menu/index.js +2 -4
- package/package.json +1 -1
- package/menu/importmap.json +0 -7
package/ChangeLog
CHANGED
package/menu/menu.js
CHANGED
|
@@ -74,11 +74,7 @@ async function createMap() {
|
|
|
74
74
|
|
|
75
75
|
const script = document.createElement('script');
|
|
76
76
|
|
|
77
|
-
const {
|
|
78
|
-
with: {
|
|
79
|
-
type: 'json',
|
|
80
|
-
},
|
|
81
|
-
});
|
|
77
|
+
const {importmap} = await import('./importmap.js');
|
|
82
78
|
|
|
83
79
|
script.dataset.name = name;
|
|
84
80
|
script.type = 'importmap';
|
|
@@ -2,12 +2,10 @@ import {template, operator} from 'putout';
|
|
|
2
2
|
import {checkDataName} from '../check-data-name.js';
|
|
3
3
|
|
|
4
4
|
const {setLiteralValue} = operator;
|
|
5
|
-
|
|
6
|
-
const isObject = (a) => a && typeof a === 'object';
|
|
7
|
-
|
|
8
5
|
const {entries} = Object;
|
|
9
6
|
|
|
10
7
|
const noop = () => {};
|
|
8
|
+
const isObject = (a) => a && typeof a === 'object';
|
|
11
9
|
|
|
12
10
|
export const report = () => `Build menu`;
|
|
13
11
|
|
|
@@ -82,7 +80,7 @@ function setSubmenu(menuItem) {
|
|
|
82
80
|
|
|
83
81
|
for (const attr of attributes) {
|
|
84
82
|
if (attr.name.name === 'className') {
|
|
85
|
-
attr.value.value
|
|
83
|
+
setLiteralValue(attr.value, `${attr.value.value} menu-submenu`);
|
|
86
84
|
break;
|
|
87
85
|
}
|
|
88
86
|
}
|
package/package.json
CHANGED