Skip to content

Commit e9ed8d9

Browse files
authored
Upgrade deps (#39)
1 parent 228e1ae commit e9ed8d9

File tree

6 files changed

+914
-988
lines changed

6 files changed

+914
-988
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,13 @@ This plugin supports resolvers implemented by `amplify-appsync-simulator`, as we
208208

209209
**From Aws Amplify:**
210210
- NONE
211-
- AWS_LAMBDA (*)
211+
- AWS_LAMBDA
212212
- AMAZON_DYNAMODB
213213
- PIPELINE
214214

215215
**Implemented by this plugin**
216-
- AWS_LAMBDA (*)
217216
- AMAZON_ELASTIC_SEARCH
218217
- HTTP
219218

220-
(*) The `AWS_LAMBDA` dataloader has been partially copied from Aws Amplify but has been extended
221-
to support the *BatchInvoke* operations
222-
223219
**Not Supported / TODO**
224220
- RELATIONAL_DATABASE

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@
1919
"/lib"
2020
],
2121
"dependencies": {
22-
"amplify-appsync-simulator": "^1.20.3",
23-
"amplify-nodejs-function-runtime-provider": "^1.0.5",
24-
"aws-sdk": "^2.680.0",
22+
"amplify-appsync-simulator": "^1.23.0",
23+
"amplify-nodejs-function-runtime-provider": "^1.1.2",
24+
"aws-sdk": "^2.720.0",
2525
"axios": "^0.19.2",
2626
"cfn-resolver-lib": "^1.1.6",
2727
"dataloader": "^2.0.0",
28-
"lodash": "^4.17.15",
28+
"lodash": "^4.17.19",
2929
"merge-graphql-schemas": "^1.5.8"
3030
},
3131
"devDependencies": {
32-
"@babel/cli": "^7.8.4",
33-
"@babel/core": "^7.9.6",
34-
"@babel/plugin-transform-modules-commonjs": "^7.9.6",
35-
"@babel/preset-env": "^7.9.6",
32+
"@babel/cli": "^7.10.5",
33+
"@babel/core": "^7.10.5",
34+
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
35+
"@babel/preset-env": "^7.10.4",
3636
"babel-eslint": "^10.1.0",
37-
"eslint": "^7.0.0",
38-
"eslint-config-airbnb-base": "^14.1.0",
39-
"eslint-plugin-import": "^2.20.2",
37+
"eslint": "^7.5.0",
38+
"eslint-config-airbnb-base": "^14.2.0",
39+
"eslint-plugin-import": "^2.22.0",
4040
"eslint-plugin-node": "^11.1.0",
4141
"eslint-plugin-promise": "^4.2.1",
4242
"eslint-plugin-standard": "^4.0.1"

src/data-loaders/LambdaDataLoader.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/getAppSyncConfig.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export default function getAppSyncConfig(context, appSyncConfig) {
7171
return {
7272
...dataSource,
7373
invoke: (payload) => invoke({
74-
packageFolder: path.join(context.serverless.config.servicePath, context.options.location),
74+
packageFolder: path.join(
75+
context.serverless.config.servicePath,
76+
context.options.location,
77+
),
7578
handler: func.handler,
7679
event: JSON.stringify(payload),
7780
environment: {

src/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import {
22
AmplifyAppSyncSimulator,
33
addDataLoader,
4-
removeDataLoader,
54
} from 'amplify-appsync-simulator';
65
import { inspect } from 'util';
76
import { get, merge, reduce } from 'lodash';
87
import NodeEvaluator from 'cfn-resolver-lib';
98
import getAppSyncConfig from './getAppSyncConfig';
10-
import LambdaDataLoader from './data-loaders/LambdaDataLoader';
119
import NotImplementedDataLoader from './data-loaders/NotImplementedDataLoader';
1210
import ElasticDataLoader from './data-loaders/ElasticDataLoader';
1311
import HttpDataLoader from './data-loaders/HttpDataLoader';
@@ -26,9 +24,6 @@ class ServerlessAppSyncSimulator {
2624

2725
this.simulator = null;
2826

29-
// Hack: appsync-cli-simulator does not support BatchInvoke.
30-
removeDataLoader('AWS_LAMBDA');
31-
addDataLoader('AWS_LAMBDA', LambdaDataLoader);
3227
addDataLoader('HTTP', HttpDataLoader);
3328
addDataLoader('AMAZON_ELASTICSEARCH', ElasticDataLoader);
3429
addDataLoader('RELATIONAL_DATABASE', NotImplementedDataLoader);

0 commit comments

Comments
 (0)