graphql-transformer-common
Advanced tools
Comparing version 4.24.8-agqlac.0 to 4.24.8
@@ -6,10 +6,10 @@ # Change Log | ||
## [4.24.8-agqlac.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.24.6...graphql-transformer-common@4.24.8-agqlac.0) (2023-06-26) | ||
## [4.24.8](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.24.7...graphql-transformer-common@4.24.8) (2023-07-17) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
## [4.24.7](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.24.6...graphql-transformer-common@4.24.7) (2023-06-29) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
## [4.24.6](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.24.5...graphql-transformer-common@4.24.6) (2023-05-17) | ||
@@ -16,0 +16,0 @@ |
@@ -93,3 +93,3 @@ "use strict"; | ||
const baseType = getBaseType(type); | ||
return document.definitions.find(def => { | ||
return document.definitions.find((def) => { | ||
return def.kind === graphql_1.Kind.ENUM_TYPE_DEFINITION && def.name.value === baseType; | ||
@@ -128,3 +128,3 @@ }); | ||
function getDirectiveArgument(directive, arg, dflt) { | ||
const argument = directive.arguments.find(a => a.name.value === arg); | ||
const argument = directive.arguments.find((a) => a.name.value === arg); | ||
return argument ? (0, graphql_1.valueFromASTUntyped)(argument.value) : dflt; | ||
@@ -206,3 +206,3 @@ } | ||
for (const directive of directives) { | ||
if (!object.directives.find(d => d.name.value === directive.name.value)) { | ||
if (!object.directives.find((d) => d.name.value === directive.name.value)) { | ||
newDirectives.push(directive); | ||
@@ -225,3 +225,3 @@ } | ||
for (const directive of directives) { | ||
if (!field.directives.find(d => d.name.value === directive.name.value)) { | ||
if (!field.directives.find((d) => d.name.value === directive.name.value)) { | ||
newDirectives.push(directive); | ||
@@ -329,3 +329,3 @@ } | ||
kind: graphql_1.Kind.LIST, | ||
values: value.map(v => makeValueNode(v)), | ||
values: value.map((v) => makeValueNode(v)), | ||
}; | ||
@@ -332,0 +332,0 @@ } |
@@ -62,3 +62,3 @@ "use strict"; | ||
static ModelCompositeKeyArgumentName(keyFieldNames) { | ||
return (0, util_1.toCamelCase)(keyFieldNames.map(n => (0, util_1.graphqlName)(n))); | ||
return (0, util_1.toCamelCase)(keyFieldNames.map((n) => (0, util_1.graphqlName)(n))); | ||
} | ||
@@ -65,0 +65,0 @@ static ModelCompositeKeySeparator() { |
{ | ||
"name": "graphql-transformer-common", | ||
"version": "4.24.8-agqlac.0", | ||
"version": "4.24.8", | ||
"description": "Common code and constants for AppSync Transformers", | ||
@@ -28,3 +28,3 @@ "repository": { | ||
"graphql": "^15.5.0", | ||
"graphql-mapping-template": "4.20.10-agqlac.0", | ||
"graphql-mapping-template": "4.20.10", | ||
"md5": "^2.2.1", | ||
@@ -59,3 +59,3 @@ "pluralize": "8.0.0" | ||
}, | ||
"gitHead": "84197dda68713aac85dfb7376c27e05fddce00e8" | ||
"gitHead": "e54e44a73c070d575f349a382991b1636bf8114d" | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
214186
1
+ Addedgraphql-mapping-template@4.20.10(transitive)
- Removedgraphql-mapping-template@4.20.10-agqlac.0(transitive)