@contrast/agent 4.32.6 → 4.32.8
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.
- package/bin/VERSION +1 -1
- package/bin/contrast-service-darwin-arm64 +0 -0
- package/bin/contrast-service-darwin-x64 +0 -0
- package/bin/contrast-service-linux-arm64 +0 -0
- package/bin/contrast-service-linux-x64 +0 -0
- package/bin/contrast-service-win32-x64.exe +0 -0
- package/lib/assess/propagators/path/to-namespaced-path.js +2 -1
- package/package.json +1 -1
package/bin/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.28.
|
|
1
|
+
2.28.27
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -18,6 +18,7 @@ const patcher = require('../../../hooks/patcher');
|
|
|
18
18
|
const { PATCH_TYPES } = require('../../../constants');
|
|
19
19
|
const moduleHook = require('../../../hooks/require');
|
|
20
20
|
const { propagate } = require('./common');
|
|
21
|
+
const { isString } = require('../../../util/is-string');
|
|
21
22
|
|
|
22
23
|
const NAMESPACE_PREFIX = '\\\\?\\';
|
|
23
24
|
const UNC_STR = 'UNC\\';
|
|
@@ -30,7 +31,7 @@ module.exports.handle = function handle() {
|
|
|
30
31
|
post(data) {
|
|
31
32
|
const { result } = data;
|
|
32
33
|
// If the result doesn't start with \\? then no namespace was prepended.
|
|
33
|
-
if (!result.startsWith(NAMESPACE_PREFIX)) return;
|
|
34
|
+
if (!result || !isString(result) || !result.startsWith(NAMESPACE_PREFIX)) return;
|
|
34
35
|
const resultMeta = {
|
|
35
36
|
evaluator: (segmentOffset) => segmentOffset > -1,
|
|
36
37
|
method: 'path.toNamespacedPath',
|