Socket
Socket
Sign inDemoInstall

apollo-server-errors

Package Overview
Dependencies
1
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc