-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from zarathustra323/tweaks
RC 3.1 Features
- Loading branch information
Showing
8 changed files
with
104 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { isArray } = Array; | ||
|
||
/** | ||
* @todo This should use better error detection via ApolloError. | ||
* This requires Apollo Server 2.0, however. | ||
* @see https://www.apollographql.com/docs/apollo-server/features/errors.html | ||
* | ||
* @param {Error} e | ||
*/ | ||
const isNotFound = e => isArray(e.graphQLErrors) | ||
&& e.graphQLErrors[0].message | ||
&& /found for ID/i.test(e.graphQLErrors[0].message); | ||
|
||
export default isNotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1933,6 +1933,14 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: | |
safe-buffer "^5.0.1" | ||
sha.js "^2.4.8" | ||
|
||
create-react-class@^15.5.1: | ||
version "15.6.3" | ||
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.3.tgz#2d73237fb3f970ae6ebe011a9e66f46dbca80036" | ||
dependencies: | ||
fbjs "^0.8.9" | ||
loose-envify "^1.3.1" | ||
object-assign "^4.1.1" | ||
|
||
[email protected], cross-spawn@^5.0.1, cross-spawn@^5.1.0: | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" | ||
|
@@ -2665,6 +2673,18 @@ fbjs@^0.8.16: | |
setimmediate "^1.0.5" | ||
ua-parser-js "^0.7.9" | ||
|
||
fbjs@^0.8.9: | ||
version "0.8.17" | ||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" | ||
dependencies: | ||
core-js "^1.0.0" | ||
isomorphic-fetch "^2.1.1" | ||
loose-envify "^1.0.0" | ||
object-assign "^4.1.0" | ||
promise "^7.1.1" | ||
setimmediate "^1.0.5" | ||
ua-parser-js "^0.7.18" | ||
|
||
figures@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" | ||
|
@@ -4594,7 +4614,7 @@ [email protected]: | |
loose-envify "^1.3.1" | ||
object-assign "^4.1.1" | ||
|
||
prop-types@^15.5.0, prop-types@^15.6.2: | ||
prop-types@^15.5.0, prop-types@^15.5.4, prop-types@^15.6.2: | ||
version "15.6.2" | ||
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" | ||
dependencies: | ||
|
@@ -4820,6 +4840,13 @@ react-transition-group@^2.3.1: | |
loose-envify "^1.3.1" | ||
prop-types "^15.6.1" | ||
|
||
react-visibility-sensor@^3.11.1: | ||
version "3.11.1" | ||
resolved "https://registry.yarnpkg.com/react-visibility-sensor/-/react-visibility-sensor-3.11.1.tgz#cdcee0e43a8c603e0feb9773fcd2b7105a1cd9c2" | ||
dependencies: | ||
create-react-class "^15.5.1" | ||
prop-types "^15.5.4" | ||
|
||
react@^16.4.2: | ||
version "16.4.2" | ||
resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" | ||
|
@@ -5658,7 +5685,7 @@ typedarray@^0.0.6: | |
version "0.0.6" | ||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" | ||
|
||
ua-parser-js@^0.7.9: | ||
ua-parser-js@^0.7.18, ua-parser-js@^0.7.9: | ||
version "0.7.18" | ||
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" | ||
|
||
|