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

@openreplay/tracker-axios

Package Overview
Dependencies
Maintainers
4
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.5.2-beta.1 to 3.6.0

22

cjs/index.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -29,3 +38,3 @@ const axios_1 = require("axios");

: () => ihOpt;
const sendFetchMessage = (res) => {
const sendFetchMessage = (res) => __awaiter(this, void 0, void 0, function* () {
// ?? TODO: why config is undeined sometimes?

@@ -61,4 +70,4 @@ if (!isAxiosResponse(res)) {

}
let reqHs = {};
let resHs = {};
const reqHs = {};
const resHs = {};
// TODO: type safe axios headers

@@ -127,8 +136,3 @@ if (ihOpt !== true) {

app.send(tracker_1.Messages.Fetch(method, String(reqResData.url), getStj(reqResData.request), getStj(reqResData.response), status, startTime + performance.timing.navigationStart, duration));
// releasing memory
reqResData = null;
reqHs = {};
resHs = {};
resBody = '';
};
});
options.instance.interceptors.request.use(function (config) {

@@ -135,0 +139,0 @@ if (typeof config !== "object") {

@@ -0,1 +1,10 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
import axios from 'axios';

@@ -27,3 +36,3 @@ import { Messages } from '@openreplay/tracker';

: () => ihOpt;
const sendFetchMessage = (res) => {
const sendFetchMessage = (res) => __awaiter(this, void 0, void 0, function* () {
// ?? TODO: why config is undeined sometimes?

@@ -59,4 +68,4 @@ if (!isAxiosResponse(res)) {

}
let reqHs = {};
let resHs = {};
const reqHs = {};
const resHs = {};
// TODO: type safe axios headers

@@ -125,8 +134,3 @@ if (ihOpt !== true) {

app.send(Messages.Fetch(method, String(reqResData.url), getStj(reqResData.request), getStj(reqResData.response), status, startTime + performance.timing.navigationStart, duration));
// releasing memory
reqResData = null;
reqHs = {};
resHs = {};
resBody = '';
};
});
options.instance.interceptors.request.use(function (config) {

@@ -133,0 +137,0 @@ if (typeof config !== "object") {

{
"name": "@openreplay/tracker-axios",
"description": "Tracker plugin for axios requests recording",
"version": "3.5.2-beta.1",
"version": "3.6.0",
"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