apollo-server-errors
Advanced tools
Comparing version 2.2.1 to 2.2.2-alpha.0
@@ -49,2 +49,3 @@ import { GraphQLError, GraphQLFormattedError } from 'graphql'; | ||
}): Array<ApolloError>; | ||
export declare function hasPersistedQueryError(errors: Array<Error>): boolean; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -171,2 +171,9 @@ "use strict"; | ||
exports.formatApolloErrors = formatApolloErrors; | ||
function hasPersistedQueryError(errors) { | ||
return Array.isArray(errors) | ||
? errors.some(error => error instanceof PersistedQueryNotFoundError || | ||
error instanceof PersistedQueryNotSupportedError) | ||
: false; | ||
} | ||
exports.hasPersistedQueryError = hasPersistedQueryError; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "apollo-server-errors", | ||
"version": "2.2.1", | ||
"version": "2.2.2-alpha.0", | ||
"author": "opensource@apollographql.com", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "879ed190349eded2221e5b9827281a4f6ae86660" | ||
"gitHead": "9e9543f6b7f7ce0b6ce6d59f06f10f4ec18d8a26" | ||
} |
@@ -267,1 +267,11 @@ import { GraphQLError, GraphQLFormattedError } from 'graphql'; | ||
} | ||
export function hasPersistedQueryError(errors: Array<Error>): boolean { | ||
return Array.isArray(errors) | ||
? errors.some( | ||
error => | ||
error instanceof PersistedQueryNotFoundError || | ||
error instanceof PersistedQueryNotSupportedError, | ||
) | ||
: false; | ||
} |
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
24564
463
1