Socket
Socket
Sign inDemoInstall

apollo-server-errors

Package Overview
Dependencies
2
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.2.2-alpha.0

1

dist/index.d.ts

@@ -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

4

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

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