Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ticketmaster/allure-mock

Package Overview
Dependencies
Maintainers
34
Versions
512
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ticketmaster/allure-mock - npm Package Compare versions

Comparing version 2.5.3 to 3.0.0

23

dist/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc