@ticketmaster/allure-mock
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -243,3 +243,2 @@ import { Response, createServer } from 'miragejs'; | ||
}; | ||
const getAcceptLanguageFromRequest = (request) => { var _a; return (_a = request === null || request === void 0 ? void 0 : request.requestHeaders) === null || _a === void 0 ? void 0 : _a["Accept-Language"]; }; | ||
@@ -249,3 +248,2 @@ const getApplicationsFromRequest = (request) => { | ||
const session = getSessionFromRequest(request); | ||
const acceptedLanguage = getAcceptLanguageFromRequest(request); | ||
const sessionPortalApplications = ((_a = session === null || session === void 0 ? void 0 : session.user) === null || _a === void 0 ? void 0 : _a.portalApplications) || []; | ||
@@ -299,2 +297,8 @@ // TODO: Add acceptedLanguage filter | ||
market: "ZZ", | ||
metadata: { | ||
market: { | ||
code: "ZZ", | ||
languages: ["de-CH", "fr-CH", "en-US"], | ||
}, | ||
}, | ||
organization: "MOCKORG", | ||
@@ -339,2 +343,8 @@ classId: sessionClass === null || sessionClass === void 0 ? void 0 : sessionClass.id, | ||
className: OTT_CONFIG.className, | ||
metadata: { | ||
market: { | ||
code: OTT_CONFIG.metadata.market.code, | ||
languages: OTT_CONFIG.metadata.market.languages, | ||
}, | ||
}, | ||
organization: { | ||
@@ -341,0 +351,0 @@ id: 2083, |
@@ -249,3 +249,2 @@ 'use strict'; | ||
}; | ||
const getAcceptLanguageFromRequest = (request) => { var _a; return (_a = request === null || request === void 0 ? void 0 : request.requestHeaders) === null || _a === void 0 ? void 0 : _a["Accept-Language"]; }; | ||
@@ -255,3 +254,2 @@ const getApplicationsFromRequest = (request) => { | ||
const session = getSessionFromRequest(request); | ||
const acceptedLanguage = getAcceptLanguageFromRequest(request); | ||
const sessionPortalApplications = ((_a = session === null || session === void 0 ? void 0 : session.user) === null || _a === void 0 ? void 0 : _a.portalApplications) || []; | ||
@@ -305,2 +303,8 @@ // TODO: Add acceptedLanguage filter | ||
market: "ZZ", | ||
metadata: { | ||
market: { | ||
code: "ZZ", | ||
languages: ["de-CH", "fr-CH", "en-US"], | ||
}, | ||
}, | ||
organization: "MOCKORG", | ||
@@ -345,2 +349,8 @@ classId: sessionClass === null || sessionClass === void 0 ? void 0 : sessionClass.id, | ||
className: OTT_CONFIG.className, | ||
metadata: { | ||
market: { | ||
code: OTT_CONFIG.metadata.market.code, | ||
languages: OTT_CONFIG.metadata.market.languages, | ||
}, | ||
}, | ||
organization: { | ||
@@ -347,0 +357,0 @@ id: 2083, |
@@ -15,2 +15,8 @@ import type { ContextClass } from "./identity.definition"; | ||
market: string; | ||
metadata: { | ||
market: { | ||
code: string; | ||
languages: string[]; | ||
}; | ||
}; | ||
classId?: number; | ||
@@ -17,0 +23,0 @@ className?: string; |
{ | ||
"name": "@ticketmaster/allure-mock", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"author": "Ticketmaster (https://www.ticketmaster.com/)", | ||
@@ -17,3 +17,3 @@ "contributors": [ | ||
"devDependencies": { | ||
"@ticketmaster/allure-command": "^3.0.1" | ||
"@ticketmaster/allure-command": "^3.0.2" | ||
}, | ||
@@ -20,0 +20,0 @@ "peerDependencies": { |
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
49002
1090