Skip to content

Commit 3958964

Browse files
Qardwatson
authored andcommitted
test(express-graphql): update test and patch ranges to match (#646)
1 parent dd89b92 commit 3958964

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.tav.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,38 @@ express-graphql-0.6.11_11:
9898
express-graphql-0.6.12_10:
9999
name: express-graphql
100100
peerDependencies: graphql@^0.10.0
101-
versions: '>=0.6.12'
101+
versions: '^0.6.12'
102102
commands: node test/instrumentation/modules/express-graphql.js
103103
express-graphql-0.6.12_11:
104104
name: express-graphql
105105
peerDependencies: graphql@^0.11.0
106-
versions: '>=0.6.12'
106+
versions: '^0.6.12'
107107
commands: node test/instrumentation/modules/express-graphql.js
108108
express-graphql-0.6.12_12:
109109
name: express-graphql
110110
peerDependencies: graphql@^0.12.0
111-
versions: '>=0.6.12'
111+
versions: '^0.6.12'
112112
commands: node test/instrumentation/modules/express-graphql.js
113113
express-graphql-0.6.12_13:
114114
name: express-graphql
115115
peerDependencies: graphql@^0.13.0
116-
versions: '>=0.6.12'
116+
versions: '^0.6.12'
117+
commands: node test/instrumentation/modules/express-graphql.js
118+
119+
express-graphql-0.7,1_12:
120+
name: express-graphql
121+
peerDependencies: graphql@^0.12.0
122+
versions: '^0.7.1'
123+
commands: node test/instrumentation/modules/express-graphql.js
124+
express-graphql-0.7.1_13:
125+
name: express-graphql
126+
peerDependencies: graphql@^0.13.0
127+
versions: '^0.7.1'
128+
commands: node test/instrumentation/modules/express-graphql.js
129+
express-graphql-0.7.1_14:
130+
name: express-graphql
131+
peerDependencies: graphql@^14.0.0
132+
versions: '^0.7.1'
117133
commands: node test/instrumentation/modules/express-graphql.js
118134

119135
express-queue:

lib/instrumentation/modules/express-graphql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var semver = require('semver')
55
module.exports = function (graphqlHTTP, agent, version, enabled) {
66
if (!enabled) return graphqlHTTP
77

8-
if (!semver.satisfies(version, '^0.6.1') || typeof graphqlHTTP !== 'function') {
8+
if (!semver.satisfies(version, '>=0.6.1 <0.8') || typeof graphqlHTTP !== 'function') {
99
agent.logger.debug('express-graphql version %s not supported - aborting...', version)
1010
return graphqlHTTP
1111
}

0 commit comments

Comments
 (0)