From 65436e469fb5b7823b30ec630256714eb7041cc2 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 20 Jun 2016 12:12:43 +0100 Subject: [PATCH 1/3] IRaygunOptions parameter type change By looking at the https://github.com/MindscapeHQ/raygun4js/blob/c7d8880045214ab6d403d5cc613c207f696a3cdd/src/raygun.js#L507-529 it looks like the `excludedHostnames` and `excludedUserAgents` can be an array of strings as well. --- raygun4js/raygun4js.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raygun4js/raygun4js.d.ts b/raygun4js/raygun4js.d.ts index c1a294bb31..c5647f804a 100644 --- a/raygun4js/raygun4js.d.ts +++ b/raygun4js/raygun4js.d.ts @@ -62,8 +62,8 @@ declare namespace raygun { ignoreAjaxAbort?: boolean; ignoreAjaxError?: boolean; disableAnonymousUserTracking?: boolean; - excludedHostnames?: boolean; - excludedUserAgents?: boolean; + excludedHostnames?: boolean | string[]; + excludedUserAgents?: boolean | string[]; wrapAsynchronousCallbacks?: boolean; debugMode?: boolean; ignore3rdPartyErrors?: boolean; From 9ff405abf07600a5b542f89867eb96381d4b6dfb Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 21 Jun 2016 09:36:00 +0100 Subject: [PATCH 2/3] Change raygun options parameter types `excludedHostnames` and `excludedUserAgents` is an array of strings or regular expressions. --- raygun4js/raygun4js.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raygun4js/raygun4js.d.ts b/raygun4js/raygun4js.d.ts index c5647f804a..88fd063ea1 100644 --- a/raygun4js/raygun4js.d.ts +++ b/raygun4js/raygun4js.d.ts @@ -62,8 +62,8 @@ declare namespace raygun { ignoreAjaxAbort?: boolean; ignoreAjaxError?: boolean; disableAnonymousUserTracking?: boolean; - excludedHostnames?: boolean | string[]; - excludedUserAgents?: boolean | string[]; + excludedHostnames?: (string|Regex)[]; + excludedUserAgents?: (string|Regex)[]; wrapAsynchronousCallbacks?: boolean; debugMode?: boolean; ignore3rdPartyErrors?: boolean; From 408c075ad5d3fb8b4d0d85adfbd0d120c54cd4c1 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 21 Jun 2016 09:41:34 +0100 Subject: [PATCH 3/3] Fix regular expressions type The previous type was wrong. 'RegExp' is the correct type. --- raygun4js/raygun4js.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raygun4js/raygun4js.d.ts b/raygun4js/raygun4js.d.ts index 88fd063ea1..974a37f2be 100644 --- a/raygun4js/raygun4js.d.ts +++ b/raygun4js/raygun4js.d.ts @@ -62,8 +62,8 @@ declare namespace raygun { ignoreAjaxAbort?: boolean; ignoreAjaxError?: boolean; disableAnonymousUserTracking?: boolean; - excludedHostnames?: (string|Regex)[]; - excludedUserAgents?: (string|Regex)[]; + excludedHostnames?: (string|RegExp)[]; + excludedUserAgents?: (string|RegExp)[]; wrapAsynchronousCallbacks?: boolean; debugMode?: boolean; ignore3rdPartyErrors?: boolean;