You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor code + remove error when 0 functions found
* Bump version
* Fix npm audit
* Rename identifier and refactor logAudit function
* Updated changelog and readme
"Read more about certification requirements here: https://learn.microsoft.com/en-us/power-bi/developer/visuals/power-bi-custom-visuals-certified#not-allowed",
259
+
);
260
+
261
+
if(total===0){
262
+
logger.info("No external requests found in the visual.");
263
+
}else{
264
+
for(const[name,count]ofentries){
265
+
logger.warn(`${name} - Found ${count} times`);
266
+
}
267
+
}
268
+
263
269
if(forceFix){
264
270
logger.warn(
265
-
`${certificationAudit.total} entries of ${callsToCheck.join(", ")} were removed. Test the visual before publishing`,
`${key} - Found ${certificationAudit.foundCalls[key]} times`,
273
-
);
274
-
});
275
-
logger.info(
276
-
"Read more about certification requirements here: https://learn.microsoft.com/en-us/power-bi/developer/visuals/power-bi-custom-visuals-certified#not-allowed",
271
+
`${total} forbidden calls were removed. Test the visual before publishing.`,
277
272
);
273
+
}elseif(total>0){
278
274
logger.error(
279
-
`Found ${certificationAudit.total} external requests in resulted package. Compile the package with --certification-fix flag to remove forbidden requests.`,
275
+
`Found ${total} external request(s) in resulted package. Compile the package with --certification-fix flag to remove forbidden requests.`,
0 commit comments