From 10aaf643dfd9b2444b0049fac46c754db9a4ccb4 Mon Sep 17 00:00:00 2001 From: Suren Atoyan Date: Sat, 20 Jun 2020 17:43:42 +0400 Subject: [PATCH] update package version to 3.3.2 --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/utils/monaco.js | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82be0e7..bf10e44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ### Versions +## 3.3.1 +###### *June 20, 2020* + +- utils: (monaco) add a possibility to pass src of config script + ## 3.3.1 ###### *May 30, 2020* diff --git a/package.json b/package.json index cc64ade..03360d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@monaco-editor/react", - "version": "3.3.1", + "version": "3.3.2", "description": "Monaco editor wrapper for easy/one-line integration with React applications (e.g. powered by create-react-app) without need of webpack configuration files", "main": "lib/index.js", "module": "lib/index.js", diff --git a/src/utils/monaco.js b/src/utils/monaco.js index bbee91a..affa698 100644 --- a/src/utils/monaco.js +++ b/src/utils/monaco.js @@ -67,6 +67,8 @@ class Monaco { const configScript = this.createScript(); if (this.configScriptSrc) { + // it will be helpfull in case of CSP, which doesn't allow + // inline script execution configScript.src = this.configScriptSrc; } else { configScript.innerHTML = `