@ticketmaster/allure-mock
Advanced tools
Comparing version 2.5.3 to 3.0.0
@@ -5,12 +5,9 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var miragejs = require('miragejs'); | ||
var jwt = require('jsonwebtoken'); | ||
var jwt = _interopDefault(require('jsonwebtoken')); | ||
var uuid = require('uuid'); | ||
var pipe = require('ramda/src/pipe'); | ||
var pipe = _interopDefault(require('ramda/src/pipe')); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var jwt__default = /*#__PURE__*/_interopDefaultLegacy(jwt); | ||
var pipe__default = /*#__PURE__*/_interopDefaultLegacy(pipe); | ||
const APPLICATIONS_LIST = [ | ||
@@ -246,3 +243,3 @@ { | ||
try { | ||
session = jwt__default['default'].verify(token, IDENTITY_JWT_SECRET); | ||
session = jwt.verify(token, IDENTITY_JWT_SECRET); | ||
} | ||
@@ -335,3 +332,3 @@ catch (err) { | ||
return { | ||
token: jwt__default['default'].sign({ | ||
token: jwt.sign({ | ||
user: { | ||
@@ -386,3 +383,3 @@ id: 1130, | ||
try { | ||
jwt__default['default'].verify(token, IDENTITY_JWT_SECRET); | ||
jwt.verify(token, IDENTITY_JWT_SECRET); | ||
} | ||
@@ -405,3 +402,3 @@ catch (err) { | ||
try { | ||
session = jwt__default['default'].verify(token, IDENTITY_JWT_SECRET); | ||
session = jwt.verify(token, IDENTITY_JWT_SECRET); | ||
} | ||
@@ -464,5 +461,5 @@ catch (err) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- We need to do this ugliness because of some TS limitations with unknown arguments lengths | ||
defaultMiddlewares && pipe__default['default'](...DEFAULT_MOCK_MIDDLEWARES)(server); | ||
defaultMiddlewares && pipe(...DEFAULT_MOCK_MIDDLEWARES)(server); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
!!middlewares.length && pipe__default['default'](...middlewares)(server); | ||
!!middlewares.length && pipe(...middlewares)(server); | ||
// Allow unhandled requests to pass through | ||
@@ -469,0 +466,0 @@ passthrough && server.passthrough(); |
{ | ||
"name": "@ticketmaster/allure-mock", | ||
"version": "2.5.3", | ||
"version": "3.0.0", | ||
"author": "Ticketmaster (https://www.ticketmaster.com/)", | ||
@@ -17,6 +17,6 @@ "contributors": [ | ||
"devDependencies": { | ||
"@ticketmaster/allure-command": "^2.5.3" | ||
"@ticketmaster/allure-command": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"miragejs": "^0.1.41" | ||
"miragejs": "0.1.41" | ||
}, | ||
@@ -23,0 +23,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
48504
1058