apollo-server-errors
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "apollo-server-errors", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Apollo <opensource@apollographql.com>", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "bcfd36cdd01f9d26d0a225aa62a79c6642cd743f" | ||
"gitHead": "856f7fbc151ebef4d6ca8a9efe801ecca3d4f9c3" | ||
} |
@@ -52,4 +52,4 @@ import { ApolloError, ForbiddenError, AuthenticationError } from '..'; | ||
describe("ForbiddenError", () => { | ||
it("supports abritrary data being passed", () => { | ||
describe('ForbiddenError', () => { | ||
it('supports abritrary data being passed', () => { | ||
const error = new ForbiddenError('My message', { | ||
@@ -63,7 +63,7 @@ arbitrary: 'user_data', | ||
}); | ||
}) | ||
}) | ||
}); | ||
}); | ||
describe("AuthenticationError", () => { | ||
it("supports abritrary data being passed", () => { | ||
describe('AuthenticationError', () => { | ||
it('supports abritrary data being passed', () => { | ||
const error = new AuthenticationError('My message', { | ||
@@ -77,3 +77,3 @@ arbitrary: 'user_data', | ||
}); | ||
}) | ||
}) | ||
}); | ||
}); |
@@ -46,3 +46,3 @@ import { | ||
function enrichError(error: Partial<GraphQLError>, debug: boolean = false) { | ||
// follows similar structure to https://github.com/graphql/graphql-js/blob/master/src/error/GraphQLError.js#L145-L193 | ||
// follows similar structure to https://github.com/graphql/graphql-js/blob/main/src/error/GraphQLError.ts#L127-L176 | ||
// with the addition of name | ||
@@ -49,0 +49,0 @@ const expanded = Object.create(Object.getPrototypeOf(error), { |
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
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
60643