@contrast/agent 4.35.0 → 4.36.1
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.
|
@@ -881,7 +881,8 @@
|
|
|
881
881
|
"requiredTags": ["untrusted"]
|
|
882
882
|
}
|
|
883
883
|
]
|
|
884
|
-
}
|
|
884
|
+
},
|
|
885
|
+
"stackTrustedLibs": ["i18n"]
|
|
885
886
|
},
|
|
886
887
|
"fs.readFile": {
|
|
887
888
|
"type": "dataflow",
|
|
@@ -939,7 +940,8 @@
|
|
|
939
940
|
"requiredTags": ["untrusted"]
|
|
940
941
|
}
|
|
941
942
|
]
|
|
942
|
-
}
|
|
943
|
+
},
|
|
944
|
+
"stackTrustedLibs": ["i18n"]
|
|
943
945
|
},
|
|
944
946
|
"fs.open": {
|
|
945
947
|
"type": "dataflow",
|
|
@@ -998,7 +1000,8 @@
|
|
|
998
1000
|
"requiredTags": ["untrusted"]
|
|
999
1001
|
}
|
|
1000
1002
|
]
|
|
1001
|
-
}
|
|
1003
|
+
},
|
|
1004
|
+
"stackTrustedLibs": ["i18n"]
|
|
1002
1005
|
},
|
|
1003
1006
|
"fs.readlink": {
|
|
1004
1007
|
"type": "dataflow",
|
|
@@ -46,11 +46,7 @@ function shouldSkip(data) {
|
|
|
46
46
|
|
|
47
47
|
// split just returns the original string
|
|
48
48
|
// if not passed an argument
|
|
49
|
-
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return false;
|
|
49
|
+
return data.args.length === 0;
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
/**
|
|
@@ -111,6 +107,10 @@ module.exports.handle = {
|
|
|
111
107
|
} else {
|
|
112
108
|
for (let i = 0; i < result.length; i++) {
|
|
113
109
|
const stringPart = result[i];
|
|
110
|
+
if (!stringPart) {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
114
|
const stringPartLength = stringPart.length - 1;
|
|
115
115
|
|
|
116
116
|
let stringStart = origString.indexOf(stringPart);
|
|
@@ -130,10 +130,6 @@ module.exports.handle = {
|
|
|
130
130
|
|
|
131
131
|
indexOfFounds.add(stringStart + stringPartLength);
|
|
132
132
|
|
|
133
|
-
if (stringPart.length === 0) {
|
|
134
|
-
continue;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
133
|
const newTagRanges = [];
|
|
138
134
|
oldTagRanges.forEach((tag) => {
|
|
139
135
|
const relation = new TagRange(
|