Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

monaco-css-linter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monaco-css-linter - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

lib/CSSMonacoLinter.js

@@ -14,2 +14,4 @@ "use strict";

const code = this.editor.getValue();
if (code === '')
return;
const languageID = (_a = this.editor.getModel()) === null || _a === void 0 ? void 0 : _a.getLanguageId();

@@ -19,3 +21,3 @@ if (languageID === 'css') {

if (model === null) {
throw new Error("Your model still does't exist.");
throw new Error("Your model still doesn't exist.");
}

@@ -22,0 +24,0 @@ const monacoLinter = new CSSMonacoMarks_1.CSSMonacoMarks(code, this.options, model);

{
"name": "monaco-css-linter",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple CSS Linter for the Monaco Editor.",

@@ -11,2 +11,5 @@ "main": "./lib/index.js",

"scripts": {
"build": "npx tsc",
"build-demo": "webpack --mode=production",
"start-demo": "webpack -w --mode=development",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -37,4 +40,9 @@ },

"devDependencies": {
"typescript": "^4.7.4"
"@babel/core": "^7.19.1",
"@babel/preset-env": "^7.19.1",
"babel-loader": "^8.2.5",
"typescript": "^4.8.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}
}
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