declare.js icon indicating copy to clipboard operation
declare.js copied to clipboard

Remove call to "new Function()"

Open SupernaviX opened this issue 7 years ago • 1 comments

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.

SupernaviX avatar Oct 22 '18 23:10 SupernaviX

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

manu-chroma avatar Oct 31 '18 08:10 manu-chroma