@xano/developer-mcp 1.0.42 → 1.0.44
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.
|
@@ -140,7 +140,7 @@ var $total {
|
|
|
140
140
|
### Filters (Pipe Syntax)
|
|
141
141
|
|
|
142
142
|
```xs
|
|
143
|
-
$value|trim|
|
|
143
|
+
$value|trim|to_lower // Chain filters
|
|
144
144
|
$input.name|strlen // Get length
|
|
145
145
|
$array|first // First element
|
|
146
146
|
($a + $b)|round:2 // Math with precision
|
|
@@ -138,10 +138,15 @@ stack {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
// Foreach (array iteration)
|
|
141
|
+
// Foreach (array iteration) - no built-in index; count manually if needed
|
|
142
|
+
var $index {
|
|
143
|
+
value = 0
|
|
144
|
+
}
|
|
142
145
|
foreach ($input.items) {
|
|
143
146
|
each as $item {
|
|
144
147
|
debug.log { value = $item.name }
|
|
148
|
+
debug.log { value = $index }
|
|
149
|
+
math.add $index { value = 1 }
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
|
|
@@ -221,7 +221,7 @@ The most common filters at a glance:
|
|
|
221
221
|
| Filter | Example | Result |
|
|
222
222
|
|--------|---------|--------|
|
|
223
223
|
| `trim` | `" hello "|trim` | `"hello"` |
|
|
224
|
-
| `
|
|
224
|
+
| `to_lower` | `"HELLO"|to_lower` | `"hello"` |
|
|
225
225
|
| `first` | `[1,2,3]|first` | `1` |
|
|
226
226
|
| `count` | `[1,2,3]|count` | `3` |
|
|
227
227
|
| `to_int` | `"42"|to_int` | `42` |
|
package/package.json
CHANGED