graphql-relay-walker 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6de0c51ff60413dd168b78817b850da65acd9031
4
- data.tar.gz: d8d21b0df733e6b3e156b938b1ecf4a22c0133bb
3
+ metadata.gz: 9dd8b1ca13102017db78ec5a1dda8dcf253bc02b
4
+ data.tar.gz: 53605db0b4b723b505d437eba64943003d78fa57
5
5
  SHA512:
6
- metadata.gz: 1f1d459b0349f433f5162f0db0a03e5cff04981ee99ab8fe434fbf139794bf983e42894ed3616cd2b9ec8e1af4b43af4d2286ed5367a1b862e6f15d1e4b407f6
7
- data.tar.gz: d8a7f386dc179ce4af896d571f6aeb414180ce5e2e61f734755a06e638a7bf95d08a672dfeda29e86f0998ec2a1ca1baaf4f7a475b7b4a11952cf72854508659
6
+ metadata.gz: d221282c49563180144eecd0f41733d930ed138ef8818ab14a0cd84891c7aea057a241f7e6bf2134f7859cf880000415064b504e5bce32d53af0e091582184bc
7
+ data.tar.gz: bf2c3589f1076e44462250e6c99eec8b0f37d26c982f1194f2ca03f3810391cef76b44458a608449ee9811fc54b5f59de637559b573fb8cecb27f42706985091
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "graphql-relay-walker"
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
4
4
  s.licenses = ["MIT"]
5
5
  s.summary = "A tool for traversing your GraphQL schema to proactively detect potential data access vulnerabilities."
6
6
  s.authors = ["Ben Toews"]
@@ -244,7 +244,12 @@ module GraphQL::Relay::Walker
244
244
  6.times.map { (SecureRandom.random_number(26) + 97).chr }.join
245
245
  end
246
246
 
247
- if GraphQL::VERSION >= "1.1.0"
247
+ if GraphQL::VERSION >= "1.4.0"
248
+ def valid_input?(type, input)
249
+ allow_all = GraphQL::Schema::Warden.new(->(_) { false }, schema: schema, context: nil)
250
+ type.valid_input?(input, allow_all)
251
+ end
252
+ elsif GraphQL::VERSION >= "1.1.0"
248
253
  def valid_input?(type, input)
249
254
  allow_all = GraphQL::Schema::Warden.new(schema, ->(_) { false })
250
255
  type.valid_input?(input, allow_all)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-relay-walker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Toews
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-08 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql