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

@aws-amplify/graphql-transformer-core

Package Overview
Dependencies
Maintainers
7
Versions
431
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.11.0-beta.1 to 0.11.0-graphql-vnext-dev-preview.9

178

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

# [0.11.0-beta.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.11.0-beta.0...@aws-amplify/graphql-transformer-core@0.11.0-beta.1) (2021-11-10)
# [0.11.0-graphql-vnext-dev-preview.9](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.9) (2021-11-12)

@@ -12,20 +12,21 @@

* datastore logical id ([#8761](https://github.com/aws-amplify/amplify-cli/issues/8761)) ([e86cbb9](https://github.com/aws-amplify/amplify-cli/commit/e86cbb9ebfb7ed22607ffd82f15a6b58a6ec7b3d))
* move [@model](https://github.com/model) params to root stack and fix ds logical id ([#8736](https://github.com/aws-amplify/amplify-cli/issues/8736)) ([df4408c](https://github.com/aws-amplify/amplify-cli/commit/df4408c4080949ddd638778df9ae20e763dd5824))
* override http datasource logical IDs ([#8714](https://github.com/aws-amplify/amplify-cli/issues/8714)) ([81cc461](https://github.com/aws-amplify/amplify-cli/commit/81cc461ed5e02b2f296825283993ad026f1126d1))
* override none,DDB,lambda datasource logical IDs ([#8723](https://github.com/aws-amplify/amplify-cli/issues/8723)) ([c534dc4](https://github.com/aws-amplify/amplify-cli/commit/c534dc46704cf2a1264e98d8af9b7a199c1419eb))
* revert none data source logical id override ([#8734](https://github.com/aws-amplify/amplify-cli/issues/8734)) ([c83507b](https://github.com/aws-amplify/amplify-cli/commit/c83507b1efee3c8252ea2c2dd7c4d3d40b20fd8a))
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.1-beta.0...@aws-amplify/graphql-transformer-core@0.11.0-beta.0) (2021-11-06)
# [0.11.0-graphql-vnext-dev-preview.8](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.8) (2021-11-12)
### Bug Fixes
* **amplify-category-api:** change auth directive type and fix codegen bug ([#8639](https://github.com/aws-amplify/amplify-cli/issues/8639)) ([b8d838d](https://github.com/aws-amplify/amplify-cli/commit/b8d838ddfd332c0f6fb36ef52ab76da24b5d26ca))
* **graphql-model-transformer:** override resource logical id to fix v1 to v2 transformer migration ([#8597](https://github.com/aws-amplify/amplify-cli/issues/8597)) ([e3a2afb](https://github.com/aws-amplify/amplify-cli/commit/e3a2afbbed6e97f143fc7c83064e2193f4c91bdd))
* sub "_" with hash in resource logical ID in transformer v2 ([#8600](https://github.com/aws-amplify/amplify-cli/issues/8600)) ([6bb620b](https://github.com/aws-amplify/amplify-cli/commit/6bb620bf1506749987ab0c7eead46bdcc3a7905a))
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))

@@ -35,3 +36,3 @@

* **amplify-provider-awscloudformation:** change sandbox mode syntax in schema ([#8592](https://github.com/aws-amplify/amplify-cli/issues/8592)) ([a3bdd44](https://github.com/aws-amplify/amplify-cli/commit/a3bdd44fddd3414a39d561510092084a1b8e6e61))
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))

@@ -42,10 +43,161 @@

## [0.10.1-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.9.2...@aws-amplify/graphql-transformer-core@0.10.1-beta.0) (2021-10-29)
# [0.11.0-graphql-vnext-dev-preview.7](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.7) (2021-11-12)
**Note:** Version bump only for package @aws-amplify/graphql-transformer-core
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.6](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.6) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.5](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.5) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.4](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.4) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.3) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.2) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.1) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.11.0-graphql-vnext-dev-preview.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.0) (2021-11-12)
### Bug Fixes
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([52184f4](https://github.com/aws-amplify/amplify-cli/commit/52184f4a70fc581c3f589b484aa7e60afea332b7))
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([8a3d63b](https://github.com/aws-amplify/amplify-cli/commit/8a3d63b530f3c18f3541172ee4460e9905961712))
### Features
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([66a2f99](https://github.com/aws-amplify/amplify-cli/commit/66a2f9926637ec9bd9aa19db9dd3f1748a60b200))
# [0.10.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.9.2...@aws-amplify/graphql-transformer-core@0.10.0) (2021-11-11)
### Bug Fixes
* **amplify-category-api:** change auth directive type and fix codegen bug ([#8639](https://github.com/aws-amplify/amplify-cli/issues/8639)) ([b8d838d](https://github.com/aws-amplify/amplify-cli/commit/b8d838ddfd332c0f6fb36ef52ab76da24b5d26ca))
* datastore logical id ([#8761](https://github.com/aws-amplify/amplify-cli/issues/8761)) ([e86cbb9](https://github.com/aws-amplify/amplify-cli/commit/e86cbb9ebfb7ed22607ffd82f15a6b58a6ec7b3d))
* **graphql-model-transformer:** override resource logical id to fix v1 to v2 transformer migration ([#8597](https://github.com/aws-amplify/amplify-cli/issues/8597)) ([e3a2afb](https://github.com/aws-amplify/amplify-cli/commit/e3a2afbbed6e97f143fc7c83064e2193f4c91bdd))
* move [@model](https://github.com/model) params to root stack and fix ds logical id ([#8736](https://github.com/aws-amplify/amplify-cli/issues/8736)) ([df4408c](https://github.com/aws-amplify/amplify-cli/commit/df4408c4080949ddd638778df9ae20e763dd5824))
* override http datasource logical IDs ([#8714](https://github.com/aws-amplify/amplify-cli/issues/8714)) ([81cc461](https://github.com/aws-amplify/amplify-cli/commit/81cc461ed5e02b2f296825283993ad026f1126d1))
* override none,DDB,lambda datasource logical IDs ([#8723](https://github.com/aws-amplify/amplify-cli/issues/8723)) ([c534dc4](https://github.com/aws-amplify/amplify-cli/commit/c534dc46704cf2a1264e98d8af9b7a199c1419eb))
* revert none data source logical id override ([#8734](https://github.com/aws-amplify/amplify-cli/issues/8734)) ([c83507b](https://github.com/aws-amplify/amplify-cli/commit/c83507b1efee3c8252ea2c2dd7c4d3d40b20fd8a))
* sub "_" with hash in resource logical ID in transformer v2 ([#8600](https://github.com/aws-amplify/amplify-cli/issues/8600)) ([6bb620b](https://github.com/aws-amplify/amplify-cli/commit/6bb620bf1506749987ab0c7eead46bdcc3a7905a))
### Features
* **amplify-provider-awscloudformation:** change sandbox mode syntax in schema ([#8592](https://github.com/aws-amplify/amplify-cli/issues/8592)) ([a3bdd44](https://github.com/aws-amplify/amplify-cli/commit/a3bdd44fddd3414a39d561510092084a1b8e6e61))
## [0.9.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.9.1...@aws-amplify/graphql-transformer-core@0.9.2) (2021-10-10)

@@ -52,0 +204,0 @@

2

lib/cdk-compat/template-asset.d.ts

@@ -31,4 +31,4 @@ import * as cdk from '@aws-cdk/core';

static inlineTemplateFromString(template: string): InlineTemplate;
static s3MappingTemplateFromString(template: string, templateName: string, type?: 'pipeline' | 'resolver' | 'function'): S3MappingTemplate;
static s3MappingTemplateFromString(template: string, templateName: string): S3MappingTemplate;
}
//# sourceMappingURL=template-asset.d.ts.map

@@ -91,4 +91,4 @@ "use strict";

}
static s3MappingTemplateFromString(template, templateName, type = 'pipeline') {
const templatePrefix = type == 'pipeline' ? 'pipelineFunctions' : 'resolvers';
static s3MappingTemplateFromString(template, templateName) {
const templatePrefix = 'resolvers';
return new S3MappingTemplate(template, `${templatePrefix}/${templateName}`);

@@ -95,0 +95,0 @@ }

export { GraphQLTransform, GraphQLTransformOptions, SyncUtils } from './transformation';
export { DeploymentResources } from './transformation/types';
export { DeploymentResources, UserDefinedSlot } from './transformation/types';
export { validateModelSchema } from './transformation/validation';

@@ -10,3 +10,3 @@ export { ConflictDetectionType, ConflictHandlerType, ResolverConfig, SyncConfig, SyncConfigOptimistic, SyncConfigServer, SyncConfigLambda, TransformConfig, TransformerProjectConfig, } from './config/index';

export declare const getAppSyncServiceExtraDirectives: () => string;
export { MappingTemplate } from './cdk-compat';
export { MappingTemplate, TransformerNestedStack } from './cdk-compat';
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.IAM_UNAUTH_ROLE_PARAMETER = exports.IAM_AUTH_ROLE_PARAMETER = exports.DirectiveWrapper = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = void 0;
exports.TransformerNestedStack = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.IAM_UNAUTH_ROLE_PARAMETER = exports.IAM_AUTH_ROLE_PARAMETER = exports.DirectiveWrapper = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = void 0;
const graphql_1 = require("graphql");

@@ -44,2 +44,3 @@ const validation_1 = require("./transformation/validation");

Object.defineProperty(exports, "MappingTemplate", { enumerable: true, get: function () { return cdk_compat_1.MappingTemplate; } });
Object.defineProperty(exports, "TransformerNestedStack", { enumerable: true, get: function () { return cdk_compat_1.TransformerNestedStack; } });
//# sourceMappingURL=index.js.map
import { FeatureFlagProvider, TransformerPluginProvider, TransformHostProvider, AppSyncAuthConfiguration } from '@aws-amplify/graphql-transformer-interfaces';
import { TransformConfig } from '../config';
import Template, { DeploymentResources } from './types';
import Template, { DeploymentResources, UserDefinedSlot } from './types';
export interface GraphQLTransformOptions {

@@ -14,2 +14,3 @@ readonly transformers: TransformerPluginProvider[];

readonly sandboxModeEnabled?: boolean;
readonly userDefinedSlots?: Record<string, UserDefinedSlot[]>;
}

@@ -27,2 +28,3 @@ export declare type StackMapping = {

private readonly buildParameters;
private readonly userDefinedSlots;
private seenTransformations;

@@ -29,0 +31,0 @@ constructor(options: GraphQLTransformOptions);

@@ -35,2 +35,3 @@ "use strict";

const SyncUtils = __importStar(require("./sync-utils"));
const cdk_compat_1 = require("../cdk-compat");
const utils_1 = require("./utils");

@@ -64,2 +65,3 @@ const validation_1 = require("./validation");

this.transformConfig = options.transformConfig || {};
this.userDefinedSlots = options.userDefinedSlots || {};
}

@@ -79,3 +81,2 @@ transform(schema) {

aws_cognito_user_pools: true,
allow_public_data_access_with_api_key: true,
deprecated: true,

@@ -256,3 +257,9 @@ });

const resolverEntries = context.resolvers.collectResolvers();
for (let [, resolver] of resolverEntries) {
for (const [resolverName, resolver] of resolverEntries) {
const userSlots = this.userDefinedSlots[resolverName];
if (userSlots) {
userSlots.forEach(({ slotName, template, fileName }) => {
resolver.addToSlot(slotName, cdk_compat_1.MappingTemplate.s3MappingTemplateFromString(template, fileName));
});
}
resolver.synthesize(context, api);

@@ -259,0 +266,0 @@ }

@@ -36,2 +36,9 @@ export default interface Template {

}
export declare type UserDefinedSlot = {
fileName: string;
resolverTypeName: string;
resolverFieldName: string;
slotName: string;
template: string;
};
//# sourceMappingURL=types.d.ts.map

@@ -79,3 +79,2 @@ "use strict";

directive @aws_cognito_user_pools(cognito_groups: [String!]) on FIELD_DEFINITION | OBJECT
directive @allow_public_data_access_with_api_key(in: [String!]) on OBJECT

@@ -82,0 +81,0 @@ # Allows transformer libraries to deprecate directive arguments.

@@ -30,3 +30,3 @@ import { AppSyncFunctionConfigurationProvider, DataSourceProvider, GraphQLAPIProvider, MappingTemplateProvider, TransformerContextProvider, TransformerResolverProvider, TransformerResolversManagerProvider } from '@aws-amplify/graphql-transformer-interfaces';

synthesize: (context: TransformerContextProvider, api: GraphQLAPIProvider) => void;
synthesizePipelineFunctions: (stack: Stack, api: GraphQLAPIProvider, slotsNames: string[]) => AppSyncFunctionConfigurationProvider[];
synthesizeResolvers: (stack: Stack, api: GraphQLAPIProvider, slotsNames: string[]) => AppSyncFunctionConfigurationProvider[];
private substitueSlotInfo;

@@ -33,0 +33,0 @@ private ensureNoneDataSource;

@@ -116,4 +116,4 @@ "use strict";

this.ensureNoneDataSource(api);
const requestFns = this.synthesizePipelineFunctions(stack, api, this.requestSlots);
const responseFns = this.synthesizePipelineFunctions(stack, api, this.responseSlots);
const requestFns = this.synthesizeResolvers(stack, api, this.requestSlots);
const responseFns = this.synthesizeResolvers(stack, api, this.responseSlots);
[this.requestMappingTemplate, this.requestMappingTemplate].map(template => this.substitueSlotInfo(template, 'main', 0));

@@ -200,3 +200,3 @@ const dataSourceProviderFn = api.host.addAppSyncFunction(graphql_transformer_common_1.toPascalCase([this.typeName, this.fieldName, 'DataResolverFn']), this.requestMappingTemplate, this.responseMappingTemplate, ((_a = this.datasource) === null || _a === void 0 ? void 0 : _a.name) || NONE_DATA_SOURCE_NAME, stack);

};
this.synthesizePipelineFunctions = (stack, api, slotsNames) => {
this.synthesizeResolvers = (stack, api, slotsNames) => {
const appSyncFunctions = [];

@@ -203,0 +203,0 @@ for (let slotName of slotsNames) {

{
"name": "@aws-amplify/graphql-transformer-core",
"version": "0.11.0-beta.1",
"version": "0.11.0-graphql-vnext-dev-preview.9",
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",

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

"dependencies": {
"@aws-amplify/graphql-transformer-interfaces": "1.11.1-beta.1",
"@aws-amplify/graphql-transformer-interfaces": "1.10.2-graphql-vnext-dev-preview.9",
"@aws-cdk/assets": "~1.124.0",

@@ -63,3 +63,3 @@ "@aws-cdk/aws-applicationautoscaling": "~1.124.0",

"graphql": "^14.5.8",
"graphql-transformer-common": "4.21.0-beta.0",
"graphql-transformer-common": "4.20.0",
"lodash": "^4.17.21",

@@ -90,3 +90,3 @@ "md5": "^2.3.0",

},
"gitHead": "3466e25bda63efc7ddeee82cfa115de34f9b4554"
"gitHead": "e8ecbdefe1aade62cd399beb5718fe6b28b0a1c2"
}

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

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

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