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 CHANGED
@@ -1,3 +1,13 @@
1
+ 2025.08.30, v1.1.39
2
+
3
+ fix:
4
+ - 01ad494 menu: importmap: json -> js
5
+
6
+ 2025.08.30, v1.1.38
7
+
8
+ fix:
9
+ - c235f46 aleman: menu: submenu
10
+
1
11
  2025.08.29, v1.1.37
2
12
 
3
13
  fix:
@@ -0,0 +1,7 @@
1
+ export const importmap = {
2
+ imports: {
3
+ 'putout': 'https://esm.sh/@putout/bundle',
4
+ '@putout/processor-html': 'https://esm.sh/@putout/processor-html',
5
+ 'fullstore': 'https://esm.sh/fullstore',
6
+ },
7
+ };
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 {default: importmap} = await import('./importmap.json', {
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 += ' menu-submenu';
83
+ setLiteralValue(attr.value, `${attr.value.value} menu-submenu`);
86
84
  break;
87
85
  }
88
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",
@@ -1,7 +0,0 @@
1
- {
2
- "imports": {
3
- "putout": "https://esm.sh/@putout/bundle",
4
- "@putout/processor-html": "https://esm.sh/@putout/processor-html",
5
- "fullstore": "https://esm.sh/fullstore"
6
- }
7
- }