@contrast/agent 4.25.3 → 4.25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,8 +146,11 @@ class Factory {
146
146
 
147
147
  if (callsite.isEval()) {
148
148
  evalOrigin = Factory.formatFileName(callsite.getEvalOrigin());
149
- [, file, lineNumber, columnNumber] =
150
- evalOrigin.match(EVAL_ORIGIN_REGEX) || evalOrigin.endsWith('.ejs');
149
+
150
+ const match = evalOrigin.match(EVAL_ORIGIN_REGEX);
151
+ if (match) {
152
+ [, file, lineNumber, columnNumber] = match;
153
+ }
151
154
  }
152
155
 
153
156
  file = file || callsite.getFileName();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "4.25.3",
3
+ "version": "4.25.4",
4
4
  "description": "Node.js security instrumentation by Contrast Security",
5
5
  "keywords": [
6
6
  "security",