@contrast/assess
Advanced tools
Comparing version 1.14.0 to 1.15.0
@@ -54,3 +54,3 @@ /* | ||
const resultInfo = tracker.getData(result); | ||
const history = [argInfo]; | ||
const history = [{ ...argInfo }]; | ||
const newTags = createFullLengthCopyTags(argInfo.tags, result.length); | ||
@@ -57,0 +57,0 @@ |
@@ -220,3 +220,3 @@ /* | ||
if (firstElement === '"') { | ||
if (firstElement === '"' && lastElement === '"') { | ||
return string(input, 1); | ||
@@ -232,3 +232,3 @@ } | ||
default: | ||
throw new Error('bad JSON'); | ||
return string(input, 0); | ||
} | ||
@@ -235,0 +235,0 @@ } |
@@ -20,4 +20,7 @@ /* | ||
module.exports = function(core) { | ||
function getPatcherArgs(obj) { | ||
return typeof obj === 'object' ? [obj, 'default'] : [obj]; | ||
} | ||
module.exports = function (core) { | ||
const { | ||
@@ -66,5 +69,4 @@ depHooks, | ||
(index) => { | ||
const patchFn = typeof index === 'object' ? index.default : index; | ||
const name = `validator.${validator}`; | ||
return patcher.patch(patchFn, { | ||
return patcher.patch(...getPatcherArgs(index), { | ||
name, | ||
@@ -103,3 +105,3 @@ patchType, | ||
{ name: 'validator', file: `lib/${untracker}` }, | ||
(index) => patcher.patch(index.default, { | ||
(index) => patcher.patch(...getPatcherArgs(index), { | ||
name: `validator.${untracker}`, | ||
@@ -121,3 +123,3 @@ patchType, | ||
{ name: 'validator', file: `lib/${sanitizer}` }, | ||
(index) => patcher.patch(index.default, { | ||
(index) => patcher.patch(...getPatcherArgs(index), { | ||
name: `validator.${sanitizer}`, | ||
@@ -154,3 +156,3 @@ patchType, | ||
{ name: 'validator', file: `lib/${method}` }, | ||
(index) => patcher.patch(index.default, { | ||
(index) => patcher.patch(...getPatcherArgs(index), { | ||
name: `validator.${method}`, | ||
@@ -157,0 +159,0 @@ patchType, |
@@ -37,3 +37,3 @@ /* | ||
sinkEvent, | ||
props: { | ||
properties: { | ||
evidence: cookieValue, | ||
@@ -40,0 +40,0 @@ }, |
@@ -25,2 +25,3 @@ /* | ||
require('./install/express-session')(core); | ||
require('./install/hapi')(core); | ||
@@ -27,0 +28,0 @@ sessionConfiguration.install = function() { |
{ | ||
"name": "@contrast/assess", | ||
"version": "1.14.0", | ||
"version": "1.15.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
469394
131
13445