fx 39.0.3 → 39.1.0

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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -128,6 +128,11 @@ function transpile(code) {
128
128
  return `x.map((x, i) => apply(${jsCode}, x, i))`
129
129
  }
130
130
 
131
+ if (/^\?/.test(code)) {
132
+ const jsCode = transpile(code.substring(1))
133
+ return `x.filter((x, i) => apply(${jsCode}, x, i))`
134
+ }
135
+
131
136
  return code
132
137
  }
133
138
 
@@ -720,7 +725,10 @@ function themes(id) {
720
725
  '6': ['', '38;5;69', '38;5;78', '38;5;221', '38;5;203', '38;5;243'],
721
726
  '7': ['', '1;38;5;42', '1;38;5;213', '1;38;5;201', '1;38;5;201', '38;5;243'],
722
727
  '8': ['', '1;38;5;51', '38;5;195', '38;5;123', '38;5;50', '38;5;243'],
728
+ '9': ['', '1;38;5;39', '38;5;49', '38;5;220', '38;5;205', '38;5;243'],
729
+ '🔥': ['1;38;5;208', '1;38;5;202', '38;5;214', '38;5;202', '38;5;196', '38;5;243'],
723
730
  '🔵': ['1;38;5;33', '38;5;33', '', '', '', ''],
731
+ '🟣': ['', '1;38;5;141', '38;5;183', '38;5;219', '38;5;81', '38;5;243'],
724
732
  '🥝': ['38;5;179', '1;38;5;154', '38;5;82', '38;5;226', '38;5;226', '38;5;230'],
725
733
  }
726
734
  return themes[id] || themes['1']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fx",
3
- "version": "39.0.3",
3
+ "version": "39.1.0",
4
4
  "bin": {
5
5
  "fx": "index.js"
6
6
  },