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

@anvilco/apollo-server-plugin-introspection-metadata

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anvilco/apollo-server-plugin-introspection-metadata - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### 2.2.3
- Dependency updates
### 2.2.2

@@ -2,0 +5,0 @@ - Dependency updates

16

dist/index.js

@@ -8,4 +8,4 @@ "use strict";

exports.isIntrospectionQuery = isIntrospectionQuery;
var _lodash = _interopRequireDefault(require("lodash.set"));
var _lodash2 = _interopRequireDefault(require("lodash.get"));
var _set = _interopRequireDefault(require("lodash/set"));
var _get = _interopRequireDefault(require("lodash/get"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -217,3 +217,3 @@ const REGEX_INTROSPECTION_QUERY = exports.REGEX_INTROSPECTION_QUERY = /\b(__schema|__type)\b/;

const metaDatasForName = metadatasForKind[name] || {};
const typeMetadata = (0, _lodash2.default)(metaDatasForName, metadataSourceKey);
const typeMetadata = (0, _get.default)(metaDatasForName, metadataSourceKey);
const {

@@ -225,3 +225,3 @@ [fieldsKey]: fieldsMetadata = {}

if (typeMetadata) {
(0, _lodash.default)(type, metadataTargetKey, typeMetadata);
(0, _set.default)(type, metadataTargetKey, typeMetadata);
}

@@ -284,3 +284,3 @@

const fieldsMetadataForName = fieldsMetadata[name] || {};
const fieldMetadata = (0, _lodash2.default)(fieldsMetadataForName, metadataSourceKey);
const fieldMetadata = (0, _get.default)(fieldsMetadataForName, metadataSourceKey);
const {

@@ -292,3 +292,3 @@ args: argsMetadata = {}

if (fieldMetadata) {
(0, _lodash.default)(field, metadataTargetKey, fieldMetadata);
(0, _set.default)(field, metadataTargetKey, fieldMetadata);
}

@@ -345,7 +345,7 @@

const argsMetadataForName = argsMetadata[name] || {};
const argMetadata = (0, _lodash2.default)(argsMetadataForName, metadataSourceKey);
const argMetadata = (0, _get.default)(argsMetadataForName, metadataSourceKey);
// Add metadata for this Arg
if (argMetadata) {
(0, _lodash.default)(arg, metadataTargetKey, argMetadata);
(0, _set.default)(arg, metadataTargetKey, argMetadata);
}

@@ -352,0 +352,0 @@ }

{
"name": "@anvilco/apollo-server-plugin-introspection-metadata",
"version": "2.2.2",
"version": "2.2.3",
"description": "A plugin for Apollo Server that allows for adding metadata to GraphQL Introspection Query responses.",

@@ -37,4 +37,3 @@ "author": "Anvil Foundry Inc. <hello@useanvil.com>",

"dependencies": {
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2"
"lodash": "^4.17.21"
},

@@ -41,0 +40,0 @@ "devDependencies": {

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