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

@steffesgroup/steffes-auth

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steffesgroup/steffes-auth - npm Package Compare versions

Comparing version

to
0.2.4

4

dist/api.d.ts

@@ -40,4 +40,4 @@ import { AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelToken } from 'axios';

accessToken?: string | undefined;
accessTokenExpires?: Date;
refreshToken?: string | undefined;
accessTokenExpires?: Date;
refreshTokenExpires?: Date;

@@ -51,4 +51,4 @@ constructor(data?: ITokenDTO);

accessToken?: string | undefined;
accessTokenExpires?: Date;
refreshToken?: string | undefined;
accessTokenExpires?: Date;
refreshTokenExpires?: Date;

@@ -55,0 +55,0 @@ }

"use strict";
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.16.1.0 (NJsonSchema v10.7.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.17.0.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// </auto-generated>

@@ -184,4 +184,11 @@ //----------------------

const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
if (fileName) {
fileName = decodeURIComponent(fileName);
}
else {
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
}
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data], { type: response.headers["content-type"] }), headers: _headers });

@@ -238,4 +245,11 @@ }

const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
if (fileName) {
fileName = decodeURIComponent(fileName);
}
else {
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
}
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data], { type: response.headers["content-type"] }), headers: _headers });

@@ -322,4 +336,4 @@ }

this.accessToken = _data["accessToken"];
this.accessTokenExpires = _data["accessTokenExpires"] ? new Date(_data["accessTokenExpires"].toString()) : undefined;
this.refreshToken = _data["refreshToken"];
this.accessTokenExpires = _data["accessTokenExpires"] ? new Date(_data["accessTokenExpires"].toString()) : undefined;
this.refreshTokenExpires = _data["refreshTokenExpires"] ? new Date(_data["refreshTokenExpires"].toString()) : undefined;

@@ -337,4 +351,4 @@ }

data["accessToken"] = this.accessToken;
data["accessTokenExpires"] = this.accessTokenExpires ? this.accessTokenExpires.toISOString() : undefined;
data["refreshToken"] = this.refreshToken;
data["accessTokenExpires"] = this.accessTokenExpires ? this.accessTokenExpires.toISOString() : undefined;
data["refreshTokenExpires"] = this.refreshTokenExpires ? this.refreshTokenExpires.toISOString() : undefined;

@@ -341,0 +355,0 @@ return data;

{
"name": "@steffesgroup/steffes-auth",
"version": "0.2.03",
"version": "0.2.04",
"description": "Steffes Auth",

@@ -5,0 +5,0 @@ "main": "dist/api.js",