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 +4 -4
- data/graphql-relay-walker.gemspec +1 -1
- data/lib/graphql/relay/walker/query_builder.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dd8b1ca13102017db78ec5a1dda8dcf253bc02b
|
4
|
+
data.tar.gz: 53605db0b4b723b505d437eba64943003d78fa57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|