aleman 1.4.9 → 1.4.10

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.10, v1.4.10
2
+
3
+ feature:
4
+ - f189812 aleman: menu: jsx-operator: removeAttributeValue
5
+
1
6
  2025.09.09, v1.4.9
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.6.5',
3
+ 'putout': 'https://esm.sh/@putout/bundle@4.6.8',
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',
@@ -5,6 +5,7 @@ const {
5
5
  getAttributeNode,
6
6
  addAttributeValue,
7
7
  getAttributeValue,
8
+ removeAttributeValue,
8
9
  } = operator;
9
10
 
10
11
  export function setAttributeValue(node, name, value) {
@@ -33,20 +34,8 @@ export function containsClassName(path, className) {
33
34
  return classNameValue.includes(className);
34
35
  }
35
36
 
36
- export function removeAttributeValue(path, name, attributeValue) {
37
- if (!path)
38
- return;
39
-
40
- const {node} = path;
41
- const classAttribute = getAttributeNode(node, name);
42
-
43
- const {value} = classAttribute.value;
44
-
45
- if (value.includes(attributeValue))
46
- setLiteralValue(classAttribute.value, value.replace(RegExp(`\\s?${attributeValue}`), ''));
47
- }
48
-
49
37
  export function hasDataName(path, value = '') {
50
38
  const attribute = getAttributeValue(path, 'data-name');
51
39
  return attribute === value;
52
40
  }
41
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",