Socket
Socket
Sign inDemoInstall

coffeekraken-s-codemirror-component

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeekraken-s-codemirror-component - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

8

dist/js/SCodemirrorComponent.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc