microfiber
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -720,6 +720,12 @@ "use strict"; | ||
continue; | ||
} // Keep track of this so we know what we can remove | ||
} // Interfaces themselves list all the things that have "implemented" them | ||
// in the "possibleTypes" array...but we don't want that to be an indication | ||
// that the thing has been used. | ||
typesEncountered.add(buildKey(possibleTypeType)); | ||
if (type.kind !== _etc.KINDS.INTERFACE) { | ||
// Keep track of this so we know what we can remove | ||
typesEncountered.add(buildKey(possibleTypeType)); | ||
} | ||
possibleTypes.push(possibleType); | ||
@@ -730,2 +736,21 @@ } | ||
} | ||
if (type.interfaces) { | ||
const interfaces = []; | ||
for (const interfayce of type.interfaces) { | ||
if (isUndef(interfayce)) { | ||
continue; | ||
} | ||
if (!this._hasType(interfayce)) { | ||
continue; | ||
} | ||
typesEncountered.add(buildKey(interfayce)); | ||
interfaces.push(interfayce); | ||
} | ||
type.interfaces = interfaces; | ||
} | ||
} // Only include Types that we encountered - if the options say to do so | ||
@@ -732,0 +757,0 @@ |
{ | ||
"name": "microfiber", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A library to query and manipulate GraphQL Introspection Query results in some useful ways.", | ||
@@ -6,0 +5,0 @@ "author": "Chris Newhouse", |
@@ -23,2 +23,20 @@ <a href="https://www.useanvil.com"><img src="/static/anvil.png" width="50"></a> | ||
--- | ||
**Repository sponsored by [Anvil](www.useanvil.com/developers)** | ||
 | ||
 | ||
Anvil provides easy APIs for all things paperwork. | ||
1. [PDF filling API](https://www.useanvil.com/products/pdf-filling-api/) - fill out a PDF template with a web request and structured JSON data. | ||
2. [PDF generation API](https://www.useanvil.com/products/pdf-generation-api/) - send markdown or HTML and Anvil will render it to a PDF. | ||
3. [Etch e-sign with API](https://www.useanvil.com/products/etch/) - customizable, embeddable, e-signature platform with an API to control the signing process end-to-end. | ||
4. [Anvil Workflows (w/ API)](https://www.useanvil.com/products/workflows/) - Webforms + PDF + e-sign with a powerful no-code builder. Easily collect structured data, generate PDFs, and request signatures. | ||
Learn more on our [Anvil developer page](https://www.useanvil.com/developers/). | ||
--- | ||
## Getting Started | ||
@@ -353,2 +371,2 @@ | ||
[npm-url]: https://www.npmjs.com/package/microfiber | ||
[spectaql]: https://github.com/anvilco/spectaql | ||
[spectaql]: https://github.com/anvilco/spectaql |
41523
908
371