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

@usecapsule/user-management-client

Package Overview
Dependencies
Maintainers
9
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/user-management-client - npm Package Compare versions

Comparing version 0.11.0-test-3 to 0.11.0-test-4

7

client.ts

@@ -154,3 +154,7 @@ import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponseHeaders } from 'axios';

function (data: any, headers?: AxiosRequestHeaders): any {
if (headers?.['Cookie']) {
console.log('request headers\n', headers)
if (!headers) {
headers = {};
}
if (headers['Cookie']) {
delete headers['Cookie'];

@@ -178,2 +182,3 @@ }

function (data: any, headers?: AxiosResponseHeaders): any {
console.log('response headers\n', headers)
if (headers?.['set-cookie']?.length > 0) {

@@ -180,0 +185,0 @@ delete headers['set-cookie'];

@@ -390,3 +390,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

function (data, headers) {
if (headers === null || headers === void 0 ? void 0 : headers['Cookie']) {
console.log('request headers\n', headers);
if (!headers) {
headers = {};
}
if (headers['Cookie']) {
delete headers['Cookie'];

@@ -409,2 +413,3 @@ }

var _a;
console.log('response headers\n', headers);
if (((_a = headers === null || headers === void 0 ? void 0 : headers['set-cookie']) === null || _a === void 0 ? void 0 : _a.length) > 0) {

@@ -411,0 +416,0 @@ delete headers['set-cookie'];

2

package.json
{
"name": "@usecapsule/user-management-client",
"version": "0.11.0-test-3",
"version": "0.11.0-test-4",
"main": "dist/client.js",

@@ -5,0 +5,0 @@ "types": "dist/client.d.ts",

Sorry, the diff of this file is not supported yet

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