grafana / jslib.k6.io

Repository of useful utility libs for k6 scripts
https://jslib.k6.io/
GNU Affero General Public License v3.0
52 stars 21 forks source link

k6-summary 0.1.0 is obfuscated thus we cannot reference methods like jUnit and textSummary in our code #128

Open pjotal opened 3 months ago

pjotal commented 3 months ago

k6-summary v0.0.4 was fine, code was not obfuscated and thus we could use jUnit and textSummary without issues. starting on v0.1.0, the file is now obfuscated which made the consumption of this file unusable as the function names does not match anymore.

could you please generate a v0.1.1 which is not obfuscated?

NOTE: noticed the issue in k6-utils v1.3.0 and v1.4.0.

olegbespalov commented 2 months ago

Hi @pjotal

the file is now obfuscated which made the consumption of this file unusable as the function names does not match anymore.

Could you please elaborate a bit on that thinking: Does that mean that exported methods jUnit and generateTextSummary don't work as expected? Or, in your code, do you use some other internal methods from the sources?

vJoeyz commented 2 months ago

I'm having the same problem with k6-utils, v1.2.0 works fine.

Edit: it does seem to work when I bundle, even though Typescript complains that

TS2305: Module '@external/k6-utils/1.4.0/index' has no exported member randomIntBetween