Socket
Socket
Sign inDemoInstall

logrocket

Package Overview
Dependencies
Maintainers
5
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrocket - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

3

CHANGELOG.md

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

2

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc