New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@acceleratxr/core_sdk

Package Overview
Dependencies
Maintainers
1
Versions
275
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acceleratxr/core_sdk - npm Package Compare versions

Comparing version

to
1.54.3

36

dist/lib/ApiClient.js

@@ -22,3 +22,3 @@ "use strict";

constructor(config) {
this.cookies = [];
this.cookies = new Map();
this.config = config;

@@ -42,3 +42,3 @@ this.axios = axios_1.default.create({

clearCookies() {
this.cookies = [];
this.cookies = new Map();
}

@@ -219,10 +219,10 @@ /**

// Add any stored cookies
if (this.cookies.length > 0) {
if (this.cookies.size > 0) {
let value = "";
for (const cookie of this.cookies) {
for (const cookie of this.cookies.entries()) {
if (value.length === 0) {
value = cookie;
value = `${cookie[0]}=${cookie[1]}`;
}
else {
value += `; ${cookie}`;
value += `; ${cookie[0]}=${cookie[1]}`;
}

@@ -300,10 +300,10 @@ }

// Add any stored cookies
if (this.cookies.length > 0) {
if (this.cookies.size > 0) {
let value = "";
for (const cookie of this.cookies) {
for (const cookie of this.cookies.entries()) {
if (value.length === 0) {
value = cookie;
value = `${cookie[0]}=${cookie[1]}`;
}
else {
value += `; ${cookie}`;
value += `; ${cookie[0]}=${cookie[1]}`;
}

@@ -396,10 +396,10 @@ }

// Add any stored cookies
if (this.cookies.length > 0) {
if (this.cookies.size > 0) {
let value = "";
for (const cookie of this.cookies) {
for (const cookie of this.cookies.entries()) {
if (value.length === 0) {
value = cookie;
value = `${cookie[0]}=${cookie[1]}`;
}
else {
value += `; ${cookie}`;
value += `; ${cookie[0]}=${cookie[1]}`;
}

@@ -467,7 +467,5 @@ }

for (const cookie of cookies) {
// We only care about the value up to the first `;`
const value = cookie.substr(0, cookie.indexOf(";"));
if (!this.cookies.includes(value)) {
this.cookies.push(value);
}
// Extract the cookie's key name
const parts = cookie.split("=");
this.cookies.set(parts[0], parts[1]);
}

@@ -474,0 +472,0 @@ }

{
"name": "@acceleratxr/core_sdk",
"version": "1.54.2",
"version": "1.54.3",
"description": "",

@@ -5,0 +5,0 @@ "author": "Jean-Philippe Steinmetz <info@acceleratxr.com>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display