@contrast/assess
Advanced tools
Comparing version 1.20.0 to 1.20.1
@@ -77,3 +77,3 @@ /* | ||
moduleName: 'String', | ||
methodName: 'prototype.slice', | ||
methodName: 'prototype.split', | ||
context: `'${objInfo.value}'.split(${join(args.map(a => a.value), ', ')})`, | ||
@@ -80,0 +80,0 @@ history: [objInfo], |
@@ -45,3 +45,3 @@ /* | ||
if (!result.value) { | ||
logger.debug({ data }, SOURCE_EVENT_MSG, 'invalid result'); | ||
logger.debug({ name }, SOURCE_EVENT_MSG, 'invalid result'); | ||
return null; | ||
@@ -51,3 +51,3 @@ } | ||
if (!name) { | ||
logger.debug({ data }, SOURCE_EVENT_MSG, 'invalid name'); | ||
logger.debug({ name }, SOURCE_EVENT_MSG, 'invalid name'); | ||
return null; | ||
@@ -57,3 +57,3 @@ } | ||
if (!(inputType in InputType)) { | ||
logger.debug({ data }, SOURCE_EVENT_MSG, 'invalid inputType'); | ||
logger.debug({ name }, SOURCE_EVENT_MSG, 'invalid inputType'); | ||
return null; | ||
@@ -63,3 +63,3 @@ } | ||
if (!tags) { | ||
logger.debug({ data }, SOURCE_EVENT_MSG, 'event has no tags'); | ||
logger.debug({ name }, SOURCE_EVENT_MSG, 'event has no tags'); | ||
return null; | ||
@@ -70,3 +70,3 @@ } | ||
if (!stack || !Array.isArray(stack)) { | ||
logger.debug({ data }, SOURCE_EVENT_MSG, 'invalid stack'); | ||
logger.debug({ name }, SOURCE_EVENT_MSG, 'invalid stack'); | ||
return null; | ||
@@ -102,3 +102,3 @@ } | ||
if (!sourceContext) { | ||
logger.debug({ data }, 'No sourceContext found during Propagation event creation'); | ||
logger.debug({ name }, 'No sourceContext found during Propagation event creation'); | ||
return null; | ||
@@ -108,3 +108,3 @@ } | ||
if (sourceContext.propagationEventsCount >= config.assess.max_propagation_events) { | ||
logger.debug({ data }, 'Maximum number of Propagation events reached. Event not created'); | ||
logger.debug({ name }, 'Maximum number of Propagation events reached. Event not created'); | ||
return null; | ||
@@ -114,3 +114,3 @@ } | ||
if (!name) { | ||
logger.debug({ data }, PROPAGATION_EVENT_MSG, 'invalid name'); | ||
logger.debug({ name }, PROPAGATION_EVENT_MSG, 'invalid name'); | ||
return null; | ||
@@ -120,3 +120,3 @@ } | ||
if (!history.length) { | ||
logger.debug({ data }, PROPAGATION_EVENT_MSG, 'invalid history'); | ||
logger.debug({ name }, PROPAGATION_EVENT_MSG, 'invalid history'); | ||
return null; | ||
@@ -126,3 +126,3 @@ } | ||
if (!source || !match(source, ANNOTATION_REGEX)) { | ||
logger.debug({ data }, PROPAGATION_EVENT_MSG, 'invalid source'); | ||
logger.debug({ name }, PROPAGATION_EVENT_MSG, 'invalid source'); | ||
return null; | ||
@@ -132,3 +132,3 @@ } | ||
if (!target || !match(target, ANNOTATION_REGEX)) { | ||
logger.debug({ data }, PROPAGATION_EVENT_MSG, 'invalid target'); | ||
logger.debug({ name }, PROPAGATION_EVENT_MSG, 'invalid target'); | ||
return null; | ||
@@ -185,11 +185,11 @@ } | ||
if (!sourceContext) { | ||
logger.debug({ data }, 'no sourceContext found during sink event creation'); | ||
logger.debug({ name }, 'no sourceContext found during sink event creation'); | ||
return null; | ||
} | ||
if (!name) { | ||
logger.debug({ data }, 'no sink event name'); | ||
logger.debug({ name }, 'no sink event name'); | ||
return null; | ||
} | ||
if (!history.length) { | ||
logger.debug({ data }, 'empty history for sink event'); | ||
logger.debug({ name }, 'empty history for sink event'); | ||
return null; | ||
@@ -200,3 +200,3 @@ } | ||
) { | ||
logger.debug({ data }, 'malformed or missing sink event source field'); | ||
logger.debug({ name }, 'malformed or missing sink event source field'); | ||
return null; | ||
@@ -248,3 +248,3 @@ } | ||
if (!name) { | ||
logger.debug({ data }, 'no sink event name'); | ||
logger.debug({ name }, 'no sink event name'); | ||
return null; | ||
@@ -256,3 +256,3 @@ } | ||
) { | ||
logger.debug({ data }, 'malformed or missing sink event source field'); | ||
logger.debug({ name }, 'malformed or missing sink event source field'); | ||
return null; | ||
@@ -313,3 +313,3 @@ } | ||
if (!name) { | ||
logger.debug({ data }, 'no sink event name'); | ||
logger.debug({ name }, 'no sink event name'); | ||
return null; | ||
@@ -319,3 +319,3 @@ } | ||
if (!source || !source.match(ANNOTATION_REGEX)) { | ||
logger.debug({ data }, 'malformed or missing sink event source field'); | ||
logger.debug({ name }, 'malformed or missing sink event source field'); | ||
return null; | ||
@@ -322,0 +322,0 @@ } |
{ | ||
"name": "@contrast/assess", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"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