@usecapsule/user-management-client
Advanced tools
Comparing version 0.11.0-test-3 to 0.11.0-test-4
@@ -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']; |
{ | ||
"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
70440
1369