declare.js
declare.js copied to clipboard
Remove call to "new Function()"
This module constructs an empty function for internal use, which causes content-security-policy issues in chrome extensions (see https://github.com/guyonroche/exceljs/issues/512). Replacing that with a normal function call seems to resolve the issue.
I also updated the dependencies, since they were fairly old.
hey @doug-martin, it would be great if we can get this PR merged.
It is causing unsafe eval errors when using excel.js (dependent on declare.js) package inside a chrome extension. Reference issue: https://github.com/guyonroche/exceljs/issues/512