asantibanez / livewire-charts

Neat Livewire Charts for your Laravel projects
MIT License
787 stars 116 forks source link

Update helpers.js #124

Open arkdev1 opened 4 months ago

arkdev1 commented 4 months ago

Summary

I updated helpers.js to fix a recurring problem, eval() returned a JS error:

Uncaught SyntaxError: Unexpected end of input
    at app-08a4b5f5.js:738:14381
    at Array.reduce (<anonymous>)
    at mergedOptionsWithJsonConfig (app-08a4b5f5.js:738:14178)
    at Proxy.drawChart (app-08a4b5f5.js:738:21078)
    at app-08a4b5f5.js:738:19964

eval() with vite has "security" risk? resources/js/vendor/livewire-charts/helpers.js (20:58) Use of eval in "resources/js/vendor/livewire-charts/helpers.js" is strongly discouraged as it poses security risks and may cause issues with minification.

Issue

No issue

Type of Change

Screenshot/Video

image