Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

microfiber

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microfiber - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

17

dist/microfiber.js

@@ -28,4 +28,2 @@ "use strict";

//
// interfaces
//
// remove types that have no fields/inputFields/possibleTypes

@@ -68,4 +66,4 @@ //

[_etc.KINDS.OBJECT]: 'fields',
[_etc.KINDS.INPUT_OBJECT]: 'inputFields' // [KINDS.INTERFACE]: 'interfaces',
[_etc.KINDS.INTERFACE]: 'fields',
[_etc.KINDS.INPUT_OBJECT]: 'inputFields'
});

@@ -307,2 +305,13 @@

getInterfaceField({
typeName,
fieldName
}) {
return this.getField({
typeKind: _etc.KINDS.INTERFACE,
typeName,
fieldName
});
}
getArg({

@@ -309,0 +318,0 @@ typeKind = _etc.KINDS.OBJECT,

{
"name": "microfiber",
"version": "1.1.1",
"version": "1.2.0",
"description": "A library to query and manipulate GraphQL Introspection Query results in some useful ways.",

@@ -5,0 +5,0 @@ "author": "Chris Newhouse",

@@ -179,4 +179,10 @@ <a href="https://www.useanvil.com"><img src="/static/anvil.png" width="50"></a>

---
#### getInterfaceField
Get a specific Field from an Interface in your schema. A convenience wrapper around `getField({ typeKind: 'INTERFACE', ...})`
```node
const interfaceField = microfiber.getInterfaceField({ typeName, fieldName })
```
---
#### getInputField
Get a specific InputField from your schema.
Get a specific InputField from your schema. A convenience wrapper around `getField({ typeKind: 'INPUT_OBJECT', ...})`
```node

@@ -183,0 +189,0 @@ const inputField = microfiber.getInputField({ typeName, fieldName })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc