coffeekraken-s-codemirror-component
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -172,5 +172,5 @@ "use strict"; | ||
if (initialProps.mode === 'html') initialProps.mode = 'htmlmixed'; | ||
if (initialProps.mode === 'scss') initialProps.mode = 'text/x-scss'; | ||
if (initialProps.mode === 'scss') initialProps.mode = 'css'; | ||
if (initialProps.mode === 'json') initialProps.mode = 'javascript'; | ||
if (initialProps.mode === 'typescript') initialProps.mode = 'text/typescript'; | ||
if (initialProps.mode === 'typescript') initialProps.mode = 'javascript'; | ||
this._codemirror = new _codemirror.default(this, _objectSpread({ | ||
@@ -222,3 +222,3 @@ value: content.trim(), | ||
} else if (mode === 'scss') { | ||
mode = 'text/x-scss'; | ||
mode = 'css'; | ||
} else if (mode === 'json') { | ||
@@ -229,3 +229,3 @@ mode = 'javascript'; | ||
if (mode === 'typescript') { | ||
mode = 'text/typescript'; | ||
mode = 'javascript'; | ||
} | ||
@@ -232,0 +232,0 @@ |
{ | ||
"name": "coffeekraken-s-codemirror-component", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Webcomponent wrapper for the codemirror editor library.", | ||
@@ -84,5 +84,5 @@ "main": "dist/index.js", | ||
"node-sass": "^4.0.0", | ||
"webpack": "^4.0.0", | ||
"webpack": "^4.28.1", | ||
"webpack-cli": "^3.2.0" | ||
} | ||
} |
@@ -396,5 +396,5 @@ import SWebComponent from 'coffeekraken-sugar/js/core/SWebComponent' | ||
if (initialProps.mode === 'html') initialProps.mode = 'htmlmixed'; | ||
if (initialProps.mode === 'scss') initialProps.mode = 'text/x-scss'; | ||
if (initialProps.mode === 'scss') initialProps.mode = 'css'; | ||
if (initialProps.mode === 'json') initialProps.mode = 'javascript'; | ||
if (initialProps.mode === 'typescript') initialProps.mode = 'text/typescript'; | ||
if (initialProps.mode === 'typescript') initialProps.mode = 'javascript'; | ||
this._codemirror = new Codemirror(this, { | ||
@@ -441,7 +441,7 @@ value : content.trim(), | ||
} else if (mode === 'scss') { | ||
mode = 'text/x-scss' | ||
mode = 'css' | ||
} else if (mode === 'json') { | ||
mode = 'javascript' | ||
} if (mode === 'typescript') { | ||
mode = 'text/typescript' | ||
mode = 'javascript' | ||
} | ||
@@ -448,0 +448,0 @@ this._codemirror.setOption('mode', mode); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1852272
14491