aleman 1.4.2 → 1.4.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2025.09.07, v1.4.3
2
+
3
+ feature:
4
+ - c023f11 aleman: menu: hasTagName
5
+
1
6
  2025.09.07, v1.4.2
2
7
 
3
8
  feature:
package/menu/importmap.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const importmap = {
2
2
  imports: {
3
- 'putout': 'https://esm.sh/@putout/bundle@4.5.3',
3
+ 'putout': 'https://esm.sh/@putout/bundle@4.6.0't add .,
4
4
  '@putout/processor-html': 'https://esm.sh/@putout/processor-html',
5
5
  'fullstore': 'https://esm.sh/fullstore',
6
6
  'jessy': 'https://esm.sh/jessy',
@@ -1,10 +1,11 @@
1
+ import {operator} from 'putout';
1
2
  import {
2
- hasTagName,
3
3
  containsClassName,
4
4
  removeClassName,
5
5
  hasDataName,
6
6
  } from '../jsx-operator.js';
7
7
 
8
+ const {hasTagName} = operator;
8
9
  const CLASS = 'menu-submenu-show';
9
10
 
10
11
  export const report = () => `Hide submenu`;
@@ -31,3 +32,4 @@ export const traverse = ({push, options}) => ({
31
32
  push(path);
32
33
  },
33
34
  });
35
+
@@ -80,8 +80,6 @@ export function containsClassName(path, className) {
80
80
  return classNameValue.includes(className);
81
81
  }
82
82
 
83
- export const hasTagName = (path, name) => path.node.openingElement.name.name === name;
84
-
85
83
  export function removeAttributeValue(path, name, attributeValue) {
86
84
  if (!path)
87
85
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",