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

@aws-amplify/graphql-index-transformer

Package Overview
Dependencies
Maintainers
7
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/graphql-index-transformer - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1-beta.0

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## [0.2.1-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-index-transformer@0.2.0...@aws-amplify/graphql-index-transformer@0.2.1-beta.0) (2021-08-06)
### Bug Fixes
* misc [@model](https://github.com/model) v2 VTL cleanup ([#7856](https://github.com/aws-amplify/amplify-cli/issues/7856)) ([98d81d8](https://github.com/aws-amplify/amplify-cli/commit/98d81d8e2e13fc1525389ba21e6ad4b372e671fb))
* use improved pluralization in graphql transformer v2 ([#7817](https://github.com/aws-amplify/amplify-cli/issues/7817)) ([38e2599](https://github.com/aws-amplify/amplify-cli/commit/38e25996ee00479031c88714af3b9d40ef9e079c))
# 0.2.0 (2021-07-30)

@@ -8,0 +20,0 @@

8

lib/utils.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.lookupResolverName = void 0;
const graphql_transformer_common_1 = require("graphql-transformer-common");
function lookupResolverName(config, ctx, op) {

@@ -23,3 +24,8 @@ const { object, modelDirective } = config;

if (!resolverName) {
resolverName = `${op}${object.name.value}${op === 'list' ? 's' : ''}`;
if (op === 'list') {
resolverName = `${op}${graphql_transformer_common_1.plurality(object.name.value, true)}`;
}
else {
resolverName = `${op}${object.name.value}`;
}
}

@@ -26,0 +32,0 @@ return resolverName;

14

package.json
{
"name": "@aws-amplify/graphql-index-transformer",
"version": "0.2.0",
"version": "0.2.1-beta.0",
"description": "Amplify GraphQL index and key transformers",

@@ -30,12 +30,12 @@ "repository": {

"dependencies": {
"@aws-amplify/graphql-transformer-core": "0.8.0",
"@aws-amplify/graphql-transformer-interfaces": "1.8.0",
"@aws-amplify/graphql-transformer-core": "0.8.1-beta.0",
"@aws-amplify/graphql-transformer-interfaces": "1.8.1-beta.0",
"@aws-cdk/aws-appsync": "~1.72.0",
"@aws-cdk/aws-dynamodb": "~1.72.0",
"graphql": "^14.5.8",
"graphql-mapping-template": "4.18.1",
"graphql-transformer-common": "4.19.6"
"graphql-mapping-template": "4.18.2-beta.0",
"graphql-transformer-common": "4.19.7-beta.0"
},
"devDependencies": {
"@aws-amplify/graphql-model-transformer": "0.5.0",
"@aws-amplify/graphql-model-transformer": "0.5.1-beta.0",
"@aws-cdk/assert": "~1.72.0"

@@ -58,3 +58,3 @@ },

},
"gitHead": "7564914b8bcdcb667b88789cbdaed9fdbc8cdb82"
"gitHead": "047b541e0e6e005ebb798d69516c5170653c0d42"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc