@gql.tada/cli-utils 0.1.1 → 0.1.2

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.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @gql.tada/cli-utils
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ⚠️ Fix generate-schema not forwarding single header
8
+ Submitted by [@deini](https://github.com/deini) (See [#131](https://github.com/0no-co/gql.tada/pull/131))
9
+
3
10
  ## 0.1.1
4
11
 
5
12
  ### Patch Changes
@@ -9492,7 +9492,10 @@ module.exports = async function main() {
9492
9492
  } catch (t) {}
9493
9493
  var p;
9494
9494
  if (f) {
9495
- var m = (Array.isArray(h.header) ? h.header : []).reduce(((t, i) => {
9495
+ var m = (Array.isArray(h.header) ? h.header : [ h.header ]).reduce(((t, i) => {
9496
+ if (!i) {
9497
+ return t;
9498
+ }
9496
9499
  var s = i.split(":");
9497
9500
  return {
9498
9501
  ...t,