New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-dynamodb-transformer

Package Overview
Dependencies
Maintainers
2
Versions
990
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-dynamodb-transformer - npm Package Compare versions

Comparing version 1.0.34-multienv.0 to 1.1.0-alpha.16096036

8

CHANGELOG.md

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

<a name="1.0.34-multienv.0"></a>
## [1.0.34-multienv.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-dynamodb-transformer@1.0.33...graphql-dynamodb-transformer@1.0.34-multienv.0) (2018-11-16)
**Note:** Version bump only for package graphql-dynamodb-transformer
<a name="1.0.33"></a>

@@ -16,0 +8,0 @@ ## [1.0.33](https://github.com/aws-amplify/amplify-cli/compare/graphql-dynamodb-transformer@1.0.33-beta.0...graphql-dynamodb-transformer@1.0.33) (2018-11-09)

19

lib/resources.js

@@ -52,3 +52,3 @@ "use strict";

return new appSync_1.default.GraphQLApi({
Name: cloudform_1.Fn.If(graphql_transformer_common_1.ResourceConstants.CONDITIONS.HasEnvironmentParameter, cloudform_1.Fn.Join('-', [cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.AppSyncApiName), cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.Env)]), cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.AppSyncApiName)),
Name: cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.AppSyncApiName),
AuthenticationType: 'API_KEY'

@@ -122,7 +122,3 @@ });

return new dynamoDb_1.default.Table({
TableName: cloudform_1.Fn.If(graphql_transformer_common_1.ResourceConstants.CONDITIONS.HasEnvironmentParameter, cloudform_1.Fn.Join('-', [
typeName,
cloudform_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId'),
cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.Env)
]), cloudform_1.Fn.Join('-', [typeName, cloudform_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')])),
TableName: cloudform_1.Fn.Join('-', [typeName, cloudform_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')]),
KeySchema: keySchema,

@@ -146,12 +142,3 @@ AttributeDefinitions: attributeDefinitions,

return new iam_1.default.Role({
RoleName: cloudform_1.Fn.If(graphql_transformer_common_1.ResourceConstants.CONDITIONS.HasEnvironmentParameter, cloudform_1.Fn.Join('-', [
tableId.slice(0, 21),
'role',
cloudform_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId'),
cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.Env) // 10
]), cloudform_1.Fn.Join('-', [
tableId.slice(0, 31),
'role',
cloudform_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')
])),
RoleName: cloudform_1.Fn.Join('-', [tableId, 'role', cloudform_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')]),
AssumeRolePolicyDocument: {

@@ -158,0 +145,0 @@ Version: '2012-10-17',

10

package.json
{
"name": "graphql-dynamodb-transformer",
"version": "1.0.34-multienv.0",
"version": "1.1.0-alpha.16096036",
"description": "An AppSync model transform that takes a simple model and creates a DynamoDB table, DynamoDB stream, and ES index with the queries to match.",

@@ -22,5 +22,5 @@ "main": "lib/index.js",

"graphql": "^0.13.2",
"graphql-mapping-template": "^1.0.33",
"graphql-transformer-common": "^1.0.34-multienv.0",
"graphql-transformer-core": "^1.0.33"
"graphql-mapping-template": "^1.1.0-alpha.16096036",
"graphql-transformer-common": "^1.1.0-alpha.16096036",
"graphql-transformer-core": "^1.1.0-alpha.16096036"
},

@@ -32,3 +32,3 @@ "devDependencies": {

"aws-sdk": "^2.259.1",
"graphql-appsync-transformer": "^1.0.34-multienv.0",
"graphql-appsync-transformer": "^1.1.0-alpha.16096036",
"jest": "^23.1.0",

@@ -35,0 +35,0 @@ "ts-jest": "^22.4.6",

@@ -56,7 +56,3 @@ import DynamoDB from 'cloudform/types/dynamoDb'

return new AppSync.GraphQLApi({
Name: Fn.If(
ResourceConstants.CONDITIONS.HasEnvironmentParameter,
Fn.Join('-', [Fn.Ref(ResourceConstants.PARAMETERS.AppSyncApiName), Fn.Ref(ResourceConstants.PARAMETERS.Env)]),
Fn.Ref(ResourceConstants.PARAMETERS.AppSyncApiName)
),
Name: Fn.Ref(ResourceConstants.PARAMETERS.AppSyncApiName),
AuthenticationType: 'API_KEY'

@@ -133,11 +129,3 @@ })

return new DynamoDB.Table({
TableName: Fn.If(
ResourceConstants.CONDITIONS.HasEnvironmentParameter,
Fn.Join('-', [
typeName,
Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId'),
Fn.Ref(ResourceConstants.PARAMETERS.Env)
]),
Fn.Join('-', [typeName, Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')])
),
TableName: Fn.Join('-', [typeName, Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')]),
KeySchema: keySchema,

@@ -162,16 +150,3 @@ AttributeDefinitions: attributeDefinitions,

return new IAM.Role({
RoleName: Fn.If(
ResourceConstants.CONDITIONS.HasEnvironmentParameter,
Fn.Join('-', [
tableId.slice(0, 21), // max of 64. 64-10-26-4-3 = 21
'role', // 4
Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId'), // 26
Fn.Ref(ResourceConstants.PARAMETERS.Env) // 10
]),
Fn.Join('-', [
tableId.slice(0, 31), // max of 64. 64-26-4-3 = 31
'role',
Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')
])
),
RoleName: Fn.Join('-', [tableId, 'role', Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')]),
AssumeRolePolicyDocument: {

@@ -178,0 +153,0 @@ Version: '2012-10-17',

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