Socket
Socket
Sign inDemoInstall

graphql-introspection-filtering

Package Overview
Dependencies
9
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-alpha.2 to 3.0.0-beta

4

dist/classes/Manager.js

@@ -126,3 +126,3 @@ "use strict";

var _this = this;
var directives = (0, utils_1.getDirectives)(schema, subject) // todo consider always preparing
var directives = (0, utils_1.getDirectives)(schema, subject)
.filter(function (_a) {

@@ -149,3 +149,3 @@ var name = _a.name;

// @ts-ignore
result = mapper[method_1](result, parent, schema); // todo
result = mapper[method_1](result, parent, schema);
}

@@ -152,0 +152,0 @@ }

@@ -16,7 +16,3 @@ "use strict";

Object.defineProperty(exports, "IntrospectionMapperKind", { enumerable: true, get: function () { return types_1.IntrospectionMapperKind; } });
// todo remove directives, check mappers
// todo add comments
// todo add integration tests for hookDirectives
// todo A = any
// todo docs
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// todo tests comment
function clone(input) {

@@ -5,0 +4,0 @@ return Object.assign(Object.create(Object.getPrototypeOf(input)), input);

{
"name": "graphql-introspection-filtering",
"version": "3.0.0-alpha.2",
"version": "3.0.0-beta",
"description": "Filter graphql schema introspection result to hide restricted fields and types",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

# graphql-introspection-filtering
Extend `SchemaDirectiveVisitor`'s abilities and filter/modify introspection query results.
Extends schema mapper abilities and allows filtering/modifying introspection query results.

@@ -13,5 +13,7 @@ > **NOTE:** For successful introspection all dependent types must be returned.

> **Tested with GraphQL 14.0.0 - 16.6.0 & @graphql-tools 8.0.0 - 8.9.0 (for legacy graphql-tools support check release 2.1.0) **
> **NOTE:** GraphQL now does not validate data against full schema, remember to implement logic in base mappers
> **Tested with GraphQL 16.6.0 & @graphql-tools 8.0.0 - 10.0.0 (for legacy graphql-tools support check release 2.1.0) **
## Installation

@@ -18,0 +20,0 @@ ```bash

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc