crate
crate copied to clipboard
Popup Discord widgets for your website ☄️
Removed an instance of eval so Crate can be used with CSP easier.
I am reopening #13 since I think I have found an instance of `eval` that is not negated by setting `"no-eval"=true`. In [`src/util/validate/index.ts Line 62`](https://github.com/widgetbot-io/crate/blob/66a121f1712167837fbc2a78d18252eed409cad4/src/util/validate/index.ts#L62), there is an `eval` that...
Bottom left  Top left  Top right 
If someone needs the types, they would currently need to do ```js import { ... } from '@widgetbot/crate/dist/types/...'; ``` Instead of ```js import { ... } from '@widgetbot/crate'; ```

It would be really good to have some events emitted by the Crate object which could be used by the app/website where it's installed. Example: ``` create.on('ready', (data) => {...
I'm trying to bundle some common js scripts into a single npm package for use across my different projects, one of those common js scripts is loading the widgetbot crate....