logrocket
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -0,1 +1,4 @@ | ||
### 1.0.6 | ||
* Fixed Typescript types for request/response sanitizer and state/action sanitizer options | ||
### 1.0.5 | ||
@@ -2,0 +5,0 @@ * More improvements to fetch handling in Safari. |
@@ -6,2 +6,21 @@ declare var LogRocket: LR.LogRocket; | ||
declare module LR { | ||
interface IRequest { | ||
reqId: string; | ||
url: string; | ||
headers: { [key: string]: string | undefined }; | ||
body?: string; | ||
method: string; | ||
referrer?: string; | ||
mode?: string; | ||
credentials?: string; | ||
} | ||
interface IResponse { | ||
reqId: string; | ||
status?: number; | ||
headers: { [key: string]: string | undefined }; | ||
body?: string; | ||
method: string; | ||
} | ||
interface IOptions { | ||
@@ -21,4 +40,4 @@ release?: string, | ||
isEnabled?: boolean, | ||
requestSanitizer?(request: Object): null | Object, | ||
responseSanitizer?(response: Object): null | Object, | ||
requestSanitizer?(request: IRequest): null | IRequest, | ||
responseSanitizer?(response: IResponse): null | IResponse, | ||
}, | ||
@@ -54,7 +73,10 @@ dom?: { | ||
type State = { [key: string]: any }; | ||
type Action = { [key: string]: any }; | ||
interface IReduxMiddlewareOptions { | ||
/** Sanitizer function to scrub redux state */ | ||
stateSanitizer?(state: Object): Object, | ||
stateSanitizer?(state: State): State, | ||
/** Sanitizer function to scrub or ignore specific redux actions */ | ||
actionSanitizer?(action: Object): null | Object, | ||
actionSanitizer?(action: Action): null | Action, | ||
} | ||
@@ -61,0 +83,0 @@ |
{ | ||
"name": "logrocket", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "JavaScript SDK for [LogRocket](https://logrocket.com/)", | ||
@@ -5,0 +5,0 @@ "main": "dist/build.umd.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
189074
4890