graphql 2.0.17 → 2.0.17.2

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
  SHA256:
3
- metadata.gz: 7f95232ddde41ec605d304a572989213869296dc3818f15844d86a13f5cfa8c4
4
- data.tar.gz: b4850a0d39ccca8d81f0d487e0311b51fba6f2bfe1151461ce39c732743799b5
3
+ metadata.gz: 5cbd730813400698874611de3530561d41834415405126cd11bbc9510355a7fd
4
+ data.tar.gz: 1d44a4cbf48dcda27e68a077ee8f15306e9aec7d8855b350c9244260140647c7
5
5
  SHA512:
6
- metadata.gz: 1a15e0e17fd99b2c24c0a66f40f54c9909fc56c70d97fba2833bcb4934af65c06c5834b847386caa92100c4bb329c8fb27b799f5628f29cf89e6ff04946c013c
7
- data.tar.gz: 92eac476af42ec7222b371ebd87b81b78873a3240fe83ac994b0c603b990f84a082b05dead69d59dff48a58c5762d1d26028e13f57ec55481f86e4b67c92f70b
6
+ metadata.gz: 055e43980b9dac59a81824a4254410007ba73469c36ffdd426d8e960b04695c38cfe019e2147e9dca5dac4e6bb498c857810976691a3bf7c2da93cd4da3a5c73
7
+ data.tar.gz: 9572eba439a8a5dec10683dc6bd4c5d8516853d7e23da047d324b57d95c70485a742fbd79f25f9ee74111135006d667cb42d78243e21f06c1273d22fc21ed0f4
@@ -740,6 +740,8 @@ module GraphQL
740
740
  end
741
741
  # if the line above doesn't raise, re-raise
742
742
  raise
743
+ rescue GraphQL::ExecutionError => err
744
+ err
743
745
  end
744
746
 
745
747
  # @param ctx [GraphQL::Query::Context]
@@ -785,11 +785,7 @@ module GraphQL
785
785
  end
786
786
 
787
787
  if resolved_type.nil? || (resolved_type.is_a?(Module) && resolved_type.respond_to?(:kind))
788
- if resolved_value
789
- [resolved_type, resolved_value]
790
- else
791
- resolved_type
792
- end
788
+ [resolved_type, resolved_value]
793
789
  else
794
790
  raise ".resolve_type should return a type definition, but got #{resolved_type.inspect} (#{resolved_type.class}) from `resolve_type(#{type}, #{obj}, #{ctx})`"
795
791
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "2.0.17"
3
+ VERSION = "2.0.17.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-14 00:00:00.000000000 Z
11
+ date: 2023-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips