@anvilco/apollo-server-plugin-introspection-metadata
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -0,1 +1,4 @@ | ||
### 2.2.3 | ||
- Dependency updates | ||
### 2.2.2 | ||
@@ -2,0 +5,0 @@ - Dependency updates |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
21859
+ Addedlodash@^4.17.21
+ Addedlodash@4.17.21(transitive)
- Removedlodash.get@^4.4.2
- Removedlodash.set@^4.3.2
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.set@4.3.2(transitive)