@contrast/assess
Advanced tools
Comparing version 1.38.0 to 1.39.0
@@ -75,3 +75,3 @@ /* | ||
reflectedXss.install = function() { | ||
depHooks.resolve({ name: 'express', file: 'lib/response' }, (Response) => { | ||
depHooks.resolve({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/response' }, (Response) => { | ||
const name = 'Express.Response.send'; | ||
@@ -78,0 +78,0 @@ patcher.patch(Response, 'send', { |
@@ -70,3 +70,3 @@ /* | ||
unvalidatedRedirect.install = function() { | ||
depHooks.resolve({ name: 'express', file: 'lib/response' }, (Response) => { | ||
depHooks.resolve({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/response' }, (Response) => { | ||
const name = 'Express.Response.location'; | ||
@@ -73,0 +73,0 @@ patcher.patch(Response, 'location', { |
@@ -34,3 +34,3 @@ /* | ||
depHooks.resolve( | ||
{ name: 'express', file: 'lib/router/layer.js' }, | ||
{ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/router/layer.js' }, | ||
(Layer) => { | ||
@@ -50,3 +50,3 @@ patcher.patch(Layer.prototype, 'match', { | ||
const sourceContext = getSourceContext(SOURCE) | ||
const sourceContext = getSourceContext(SOURCE); | ||
if (!sourceContext) return; | ||
@@ -53,0 +53,0 @@ |
@@ -35,3 +35,3 @@ /* | ||
depHooks.resolve( | ||
{ name: 'express', file: 'lib/middleware/init.js' }, | ||
{ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/middleware/init.js' }, | ||
/** @param {import('express/lib/middleware/init')} mw */ | ||
@@ -38,0 +38,0 @@ (mw) => { |
@@ -36,3 +36,3 @@ 'use strict'; | ||
.resolve | ||
.withArgs({ name: 'express', file: 'lib/middleware/init.js' }) | ||
.withArgs({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/middleware/init.js' }) | ||
.yields(middleware); | ||
@@ -39,0 +39,0 @@ }); |
{ | ||
"name": "@contrast/assess", | ||
"version": "1.38.0", | ||
"version": "1.39.0", | ||
"description": "Contrast service providing framework-agnostic Assess support", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
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
1470056