Skip to content

Conversation

DominicKramer
Copy link
Contributor

No description provided.

@DominicKramer DominicKramer requested a review from a team March 27, 2018 04:41
if (isObject(config)) {
service = config.getServiceContext().service;
version = config.getServiceContext().version;
service = config!.getServiceContext().service;

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

(server as hapi.Server).on('request-error', (req, err) => {
client.sendError(hapiErrorHandler(req, err, config));
if (server) {
if ((server as any).events && (server as any).events.on) {

This comment was marked as spam.

This comment was marked as spam.

request,
if (isFunction((server as hapi.Server).ext)) {
(server as hapi.Server).ext('onPreResponse', (request, reply) => {
if (isObject(request) && isObject(request.response) &&

This comment was marked as spam.

This comment was marked as spam.

const returnObject = new RequestInformationContainer();

if (!isObject(req) || !isObject(req.headers) || isFunction(req) ||
if (!isObject(req) || !isObject(req!.headers) || isFunction(req) ||

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

(server as hapi.Server).on('request-error', (req, err) => {
client.sendError(hapiErrorHandler(req, err, config));
if (server) {
if ((server as any).events && (server as any).events.on) {

This comment was marked as spam.

This comment was marked as spam.

* ErrorMessage
*/
function hapiErrorHandler(req: hapi.Request, err: {}, config: Configuration) {
function hapiErrorHandler(req: hapi.Request|undefined, err: {}, config?: Configuration) {

This comment was marked as spam.

This comment was marked as spam.

event: () => ErrorMessage;
hapi: {register: (server: {}, options: {}, next: Function) => void};
hapi: {
register: (server: {}, options: {}, next?: Function) => void; name: string;

This comment was marked as spam.

errorsSent.length = 0;
});

it(`Plugin should have name and version properties`, () => {

This comment was marked as spam.

This comment was marked as spam.

@DominicKramer DominicKramer merged commit 70e1c74 into googleapis:master Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants