Socket
Socket
Sign inDemoInstall

@aws-amplify/graphql-transformer-core

Package Overview
Dependencies
Maintainers
6
Versions
410
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.6.2 to 0.6.3-beta.0

lib/transformer-context/noop-feature-flag.d.ts

11

CHANGELOG.md

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

## [0.6.3-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.6.2...@aws-amplify/graphql-transformer-core@0.6.3-beta.0) (2021-06-30)
### Bug Fixes
* correct featuer typo in gql transformer v2 ([#7584](https://github.com/aws-amplify/amplify-cli/issues/7584)) ([81659ee](https://github.com/aws-amplify/amplify-cli/commit/81659ee2399025307cc1aa05252a712623a95818))
## [0.6.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.6.1...@aws-amplify/graphql-transformer-core@0.6.2) (2021-06-24)

@@ -8,0 +19,0 @@

2

lib/transformation/transform.d.ts

@@ -11,3 +11,3 @@ import { FeatureFlagProvider, TransformerPluginProvider } from '@aws-amplify/graphql-transformer-interfaces';

readonly stacks?: Record<string, Template>;
readonly featuerFlags?: FeatureFlagProvider;
readonly featureFlags?: FeatureFlagProvider;
}

@@ -14,0 +14,0 @@ export declare type StackMapping = {

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

this.app = new core_1.App();
const context = new transformer_context_1.TransformerContext(this.app, parsedDocument, this.stackMappingOverrides, this.options.featuerFlags);
const context = new transformer_context_1.TransformerContext(this.app, parsedDocument, this.stackMappingOverrides, this.options.featureFlags);
const validDirectiveNameMap = this.transformers.reduce((acc, t) => ({ ...acc, [t.directive.name.value]: true }), {

@@ -49,0 +49,0 @@ aws_subscribe: true,

@@ -17,5 +17,5 @@ import { FeatureFlagProvider, GraphQLAPIProvider, StackManagerProvider, TransformerContextOutputProvider, TransformerContextProvider, TransformerDataSourceManagerProvider } from '@aws-amplify/graphql-transformer-interfaces';

_api?: GraphQLAPIProvider;
constructor(app: App, inputDocument: DocumentNode, stackMapping: Record<string, string>, featuerFlags?: FeatureFlagProvider);
constructor(app: App, inputDocument: DocumentNode, stackMapping: Record<string, string>, featureFlags?: FeatureFlagProvider);
get api(): GraphQLAPIProvider;
}
//# sourceMappingURL=index.d.ts.map

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

const datasource_1 = require("./datasource");
const noop_featuer_flag_1 = require("./noop-featuer-flag");
const noop_feature_flag_1 = require("./noop-feature-flag");
const output_1 = require("./output");

@@ -13,3 +13,3 @@ const provider_registry_1 = require("./provider-registry");

class TransformerContext {
constructor(app, inputDocument, stackMapping, featuerFlags) {
constructor(app, inputDocument, stackMapping, featureFlags) {
this.inputDocument = inputDocument;

@@ -23,3 +23,3 @@ this.output = new output_1.TransformerOutput(inputDocument);

this.resourceHelper = new resource_helper_1.TransformerResourceHelper(stackManager);
this.featureFlags = featuerFlags !== null && featuerFlags !== void 0 ? featuerFlags : new noop_featuer_flag_1.NoopFeatureFlagProvider();
this.featureFlags = featureFlags !== null && featureFlags !== void 0 ? featureFlags : new noop_feature_flag_1.NoopFeatureFlagProvider();
}

@@ -26,0 +26,0 @@ bind(api) {

{
"name": "@aws-amplify/graphql-transformer-core",
"version": "0.6.2",
"version": "0.6.3-beta.0",
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",

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

"graphql": "^14.5.8",
"graphql-transformer-common": "4.19.3",
"graphql-transformer-common": "4.19.4-beta.0",
"lodash": "^4.17.21",

@@ -86,3 +86,3 @@ "ts-dedent": "^2.0.0"

},
"gitHead": "591b8cdec3ab04f4a20ae4b158f3aedda8d1d5a7"
"gitHead": "a7f039519fcda7e1204199847aa7dcd059487dc0"
}

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