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 3.1.4 to 3.1.5

dist/modules/test-errors/test-error.mock.d.ts

15

dist/index.esm.js

@@ -466,2 +466,16 @@ import { Response, createServer } from 'miragejs';

const testErrorMock = (server) => {
server.get(`/api/v1/httpError/:code`, (schema, request) => {
const { code } = request.params;
return new Response(+code, {
"x-login-page": IDENTITY_LOGIN_URL,
}, {
error: +code === 401
? "Token invalid"
: "you are not authorized to see this content",
});
});
return server;
};
const DEFAULT_MOCK_MIDDLEWARES = [

@@ -471,2 +485,3 @@ configurationMock,

applicationsMock,
testErrorMock,
];

@@ -473,0 +488,0 @@

@@ -472,2 +472,16 @@ 'use strict';

const testErrorMock = (server) => {
server.get(`/api/v1/httpError/:code`, (schema, request) => {
const { code } = request.params;
return new miragejs.Response(+code, {
"x-login-page": IDENTITY_LOGIN_URL,
}, {
error: +code === 401
? "Token invalid"
: "you are not authorized to see this content",
});
});
return server;
};
const DEFAULT_MOCK_MIDDLEWARES = [

@@ -477,2 +491,3 @@ configurationMock,

applicationsMock,
testErrorMock,
];

@@ -479,0 +494,0 @@

4

package.json
{
"name": "@ticketmaster/allure-mock",
"version": "3.1.4",
"version": "3.1.5",
"author": "Ticketmaster (https://www.ticketmaster.com/)",

@@ -17,3 +17,3 @@ "contributors": [

"devDependencies": {
"@ticketmaster/allure-command": "^3.1.4"
"@ticketmaster/allure-command": "^3.1.5"
},

@@ -20,0 +20,0 @@ "peerDependencies": {

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