@ticketmaster/allure-mock
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -37,3 +37,3 @@ import { Response, createServer } from 'miragejs'; | ||
let valid = true; | ||
let session = {}; | ||
let session = undefined; | ||
let refreshedToken; | ||
@@ -49,3 +49,3 @@ try { | ||
} | ||
if (valid) { | ||
if (session && valid) { | ||
const generatedJWT = generateJWT({ | ||
@@ -67,3 +67,3 @@ ott: (_b = session === null || session === void 0 ? void 0 : session.user) === null || _b === void 0 ? void 0 : _b.username, | ||
let error; | ||
let session = {}; | ||
let session = undefined; | ||
try { | ||
@@ -70,0 +70,0 @@ session = jwt.verify(token, "secret"); |
@@ -45,3 +45,3 @@ 'use strict'; | ||
let valid = true; | ||
let session = {}; | ||
let session = undefined; | ||
let refreshedToken; | ||
@@ -57,3 +57,3 @@ try { | ||
} | ||
if (valid) { | ||
if (session && valid) { | ||
const generatedJWT = generateJWT({ | ||
@@ -75,3 +75,3 @@ ott: (_b = session === null || session === void 0 ? void 0 : session.user) === null || _b === void 0 ? void 0 : _b.username, | ||
let error; | ||
let session = {}; | ||
let session = undefined; | ||
try { | ||
@@ -78,0 +78,0 @@ session = jwt__default['default'].verify(token, "secret"); |
import { Server } from "miragejs"; | ||
export declare type Session = { | ||
iat: number; | ||
exp: number; | ||
iss: string; | ||
jti: string; | ||
user: { | ||
id: number; | ||
uuid: string; | ||
username: string; | ||
firstName?: string; | ||
lastName?: string; | ||
title?: string; | ||
systemId: number; | ||
market: string; | ||
organization: { | ||
code: string; | ||
id: number; | ||
name: string; | ||
}; | ||
confidentiality: { | ||
systemIds: number[]; | ||
}; | ||
portalApplications: string[]; | ||
}; | ||
}; | ||
export declare const identityMock: (server: Server) => void; |
{ | ||
"name": "@ticketmaster/allure-mock", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": "Ticketmaster (https://www.ticketmaster.com/)", | ||
@@ -8,3 +8,3 @@ "contributors": [ | ||
], | ||
"description": "Allure common mocking solution library.", | ||
"description": "Allure common mocking solution library", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@ticketmaster/allure-command": "^2.1.0" | ||
"@ticketmaster/allure-command": "^2.2.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "dependencies": { |
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
16035
336