@anvilco/apollo-server-plugin-introspection-metadata
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,5 @@ | ||
### 2.2.0 | ||
- `testFn` can be `async` | ||
### 2.1.0 | ||
@@ -2,0 +6,0 @@ |
@@ -66,5 +66,5 @@ "use strict"; | ||
// Check at the beginning of the request whether we should do anything at all | ||
requestDidStart(context) { | ||
async requestDidStart(context) { | ||
// If this request doesn't match what we're looking for (an Introspection Query), then do nothing. | ||
if (!testFn(context)) { | ||
if (!(await testFn(context))) { | ||
return; | ||
@@ -71,0 +71,0 @@ } |
{ | ||
"name": "@anvilco/apollo-server-plugin-introspection-metadata", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "A plugin for Apollo Server that allows for adding metadata to GraphQL Introspection Query responses.", | ||
@@ -30,5 +30,6 @@ "author": "Anvil Foundry Inc. <hello@useanvil.com>", | ||
"prepare": "yarn build", | ||
"build:test": "yarn build && yarn test", | ||
"test": "mocha --config ./test/mocha-config.js", | ||
"test:debug": "yarn test --node-option inspect=0.0.0.0:9223", | ||
"test:watch": "nodemon -x 'yarn test'", | ||
"test:watch": "nodemon -x 'yarn build:test'", | ||
"test:debug:watch": "nodemon -x 'yarn test:debug'" | ||
@@ -35,0 +36,0 @@ }, |
21476