@openreplay/tracker-axios
Advanced tools
Comparing version 3.5.2-beta.1 to 3.6.0
"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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25150
477
1
0