@ttoss/appsync-api 0.20.5 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -147,10 +147,10 @@ var createApiTemplate = ({
147
147
  }
148
148
  }
149
149
  };
150
- resolveMethodsEntries.forEach(({
150
+ for (const {
151
151
  fieldName,
152
152
  typeName
153
- }) => {
153
+ } of resolveMethodsEntries) {
154
154
  template.Resources[`${fieldName}${typeName}AppSyncResolver`] = {
155
155
  Type: "AWS::AppSync::Resolver",
156
156
  DependsOn: AppSyncGraphQLSchemaLogicalId,
@@ -165,7 +165,7 @@ var createApiTemplate = ({
165
165
  }
166
166
  }
167
167
  };
168
- });
168
+ }
169
169
  const apiKey = additionalAuthenticationProviders?.includes("API_KEY") || authenticationType === "API_KEY";
170
170
  const cognitoUserPoolAuth = additionalAuthenticationProviders?.includes("AMAZON_COGNITO_USER_POOLS") || authenticationType === "AMAZON_COGNITO_USER_POOLS";
171
171
  if (additionalAuthenticationProviders) {
package/dist/index.js CHANGED
@@ -179,10 +179,10 @@ var createApiTemplate = ({
179
179
  }
180
180
  }
181
181
  };
182
- resolveMethodsEntries.forEach(({
182
+ for (const {
183
183
  fieldName,
184
184
  typeName
185
- }) => {
185
+ } of resolveMethodsEntries) {
186
186
  template.Resources[`${fieldName}${typeName}AppSyncResolver`] = {
187
187
  Type: "AWS::AppSync::Resolver",
188
188
  DependsOn: AppSyncGraphQLSchemaLogicalId,
@@ -197,7 +197,7 @@ var createApiTemplate = ({
197
197
  }
198
198
  }
199
199
  };
200
- });
200
+ }
201
201
  const apiKey = additionalAuthenticationProviders?.includes("API_KEY") || authenticationType === "API_KEY";
202
202
  const cognitoUserPoolAuth = additionalAuthenticationProviders?.includes("AMAZON_COGNITO_USER_POOLS") || authenticationType === "AMAZON_COGNITO_USER_POOLS";
203
203
  if (additionalAuthenticationProviders) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/appsync-api",
3
- "version": "0.20.5",
3
+ "version": "0.21.0",
4
4
  "description": "A library for building GraphQL APIs for AWS AppSync.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",