apollo-server-errors
Advanced tools
Comparing version 2.4.2 to 2.5.0-alpha.0
@@ -21,3 +21,3 @@ import { GraphQLError, GraphQLFormattedError } from 'graphql'; | ||
code?: string; | ||
errorClass?: typeof ApolloError; | ||
errorClass?: new (message: string) => ApolloError; | ||
} | ||
@@ -24,0 +24,0 @@ export declare function fromGraphQLError(error: GraphQLError, options?: ErrorOptions): ApolloError; |
{ | ||
"name": "apollo-server-errors", | ||
"version": "2.4.2", | ||
"version": "2.5.0-alpha.0", | ||
"author": "Apollo <opensource@apollographql.com>", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8cfc947ed56fa3f32b82b32b4bcca53470712984" | ||
"gitHead": "9d1cbd17e61bb0146a0c0ef2b207eb100bfc70a6" | ||
} |
@@ -137,3 +137,5 @@ import { GraphQLError, GraphQLFormattedError } from 'graphql'; | ||
code?: string; | ||
errorClass?: typeof ApolloError; | ||
// This declaration means it takes any "class" that has a constructor that | ||
// takes a single string, and should be invoked via the `new` operator. | ||
errorClass?: new (message: string) => ApolloError; | ||
} | ||
@@ -140,0 +142,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30311
556
1