From efd9fcfec37608fddd6fb6a379ac57eff2b2a376 Mon Sep 17 00:00:00 2001 From: Manuel Iglesias Date: Tue, 15 May 2018 10:15:42 -0700 Subject: [PATCH] Add peerDependencies for graphql (#832) --- packages/aws-amplify-react-native/package.json | 3 +++ packages/aws-amplify-react/package.json | 3 +++ packages/aws-amplify-react/src/API/GraphQL/Connect.js | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/aws-amplify-react-native/package.json b/packages/aws-amplify-react-native/package.json index e47ecf5cff1..fd6e0794a75 100644 --- a/packages/aws-amplify-react-native/package.json +++ b/packages/aws-amplify-react-native/package.json @@ -24,6 +24,9 @@ "axios": "^0.17.1", "babel-preset-es2015": "^6.24.1" }, + "peerDependencies": { + "graphql": "0.13.0" + }, "repository": { "type": "git", "url": "git+https://github.com/aws/aws-amplify.git" diff --git a/packages/aws-amplify-react/package.json b/packages/aws-amplify-react/package.json index 0101adee286..812d6c6e138 100644 --- a/packages/aws-amplify-react/package.json +++ b/packages/aws-amplify-react/package.json @@ -47,6 +47,9 @@ } } }, + "peerDependencies": { + "graphql": "0.13.0" + }, "dependencies": { "qrcode.react": "^0.8.0", "regenerator-runtime": "^0.11.1" diff --git a/packages/aws-amplify-react/src/API/GraphQL/Connect.js b/packages/aws-amplify-react/src/API/GraphQL/Connect.js index 40a39fc1463..2c35806d470 100644 --- a/packages/aws-amplify-react/src/API/GraphQL/Connect.js +++ b/packages/aws-amplify-react/src/API/GraphQL/Connect.js @@ -1,4 +1,4 @@ -import regeneratorRuntime from 'regenerator-runtime/runtime'; +import 'regenerator-runtime/runtime'; import React, { Component } from 'react'; import { parse } from 'graphql/language/parser';