Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openreplay/tracker-axios

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openreplay/tracker-axios - npm Package Compare versions

Comparing version 3.4.2 to 3.4.3

11

cjs/index.js

@@ -7,2 +7,3 @@ "use strict";

const url_js_1 = require("./url.js");
// TODO: test webpack 5 for axios imports
function isAxiosResponse(r) {

@@ -29,2 +30,6 @@ return typeof r === "object" &&

const sendFetchMessage = (res) => {
// ?? TODO: why config is undeined sometimes?
if (!isAxiosResponse(res)) {
return;
}
// @ts-ignore

@@ -90,4 +95,6 @@ const startTime = res.config.__openreplayStartTs;

};
// TODO: why app.safe doesn't work here?
options.instance.interceptors.request.use(function (config) {
if (typeof config !== "object") {
return config;
} // ??
if (options.sessionTokenHeader) {

@@ -133,3 +140,3 @@ const sessionToken = app.getSessionToken();

}
// TODO: common case (selector)
// TODO: common case (selector option) for modified responses
if (isAxiosResponse(error)) {

@@ -136,0 +143,0 @@ sendFetchMessage(error);

@@ -5,2 +5,3 @@ import axios from 'axios';

import { buildFullPath } from './url.js';
// TODO: test webpack 5 for axios imports
function isAxiosResponse(r) {

@@ -27,2 +28,6 @@ return typeof r === "object" &&

const sendFetchMessage = (res) => {
// ?? TODO: why config is undeined sometimes?
if (!isAxiosResponse(res)) {
return;
}
// @ts-ignore

@@ -88,4 +93,6 @@ const startTime = res.config.__openreplayStartTs;

};
// TODO: why app.safe doesn't work here?
options.instance.interceptors.request.use(function (config) {
if (typeof config !== "object") {
return config;
} // ??
if (options.sessionTokenHeader) {

@@ -131,3 +138,3 @@ const sessionToken = app.getSessionToken();

}
// TODO: common case (selector)
// TODO: common case (selector option) for modified responses
if (isAxiosResponse(error)) {

@@ -134,0 +141,0 @@ sendFetchMessage(error);

2

package.json
{
"name": "@openreplay/tracker-axios",
"description": "Tracker plugin for axios requests recording",
"version": "3.4.2",
"version": "3.4.3",
"keywords": [

@@ -6,0 +6,0 @@ "axios",

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