Socket
Socket
Sign inDemoInstall

monaco-css

Package Overview
Dependencies
Maintainers
7
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monaco-css - npm Package Compare versions

Comparing version 3.5.0 to 3.6.0

6

package.json
{
"name": "monaco-css",
"version": "3.5.0",
"version": "3.6.0",
"description": "CSS, LESS and SCSS plugin for the Monaco Editor",

@@ -26,3 +26,3 @@ "scripts": {

"husky": "^5.1.3",
"monaco-editor-core": "0.25.0",
"monaco-editor-core": "0.26.0",
"monaco-languages": "2.4.0",

@@ -35,3 +35,3 @@ "monaco-plugin-helpers": "^1.0.3",

"terser": "^5.7.0",
"vscode-css-languageservice": "5.1.3",
"vscode-css-languageservice": "^5.1.4",
"vscode-languageserver-types": "3.16.0",

@@ -38,0 +38,0 @@ "vscode-languageserver-textdocument": "^1.0.1"

@@ -50,2 +50,4 @@ /*---------------------------------------------------------------------------------------------

var localize = nls.loadMessageBundle();
var startsWithSchemeRegex = /^\w+:\/\//;
var startsWithData = /^data:/;
var CSSNavigation = /** @class */ (function () {

@@ -124,3 +126,9 @@ function CSSNavigation(fileSystemProvider) {

var target = link.target;
if (target && !(/^\w+:\/\//g.test(target))) {
if (!target || startsWithData.test(target)) {
// no links for data:
}
else if (startsWithSchemeRegex.test(target)) {
resolvedLinks.push(link);
}
else {
var resolved = documentContext.resolveReference(target, document.uri);

@@ -130,4 +138,4 @@ if (resolved) {

}
resolvedLinks.push(link);
}
resolvedLinks.push(link);
}

@@ -147,9 +155,14 @@ return resolvedLinks;

case 1:
if (!(_i < linkData_2.length)) return [3 /*break*/, 5];
if (!(_i < linkData_2.length)) return [3 /*break*/, 6];
data = linkData_2[_i];
link = data.link;
target = link.target;
if (!(target && !(/^\w+:\/\//g.test(target)))) return [3 /*break*/, 3];
return [4 /*yield*/, this.resolveRelativeReference(target, document.uri, documentContext, data.isRawLink)];
if (!(!target || startsWithData.test(target))) return [3 /*break*/, 2];
return [3 /*break*/, 5];
case 2:
if (!startsWithSchemeRegex.test(target)) return [3 /*break*/, 3];
resolvedLinks.push(link);
return [3 /*break*/, 5];
case 3: return [4 /*yield*/, this.resolveRelativeReference(target, document.uri, documentContext, data.isRawLink)];
case 4:
resolvedTarget = _a.sent();

@@ -160,10 +173,7 @@ if (resolvedTarget !== undefined) {

}
return [3 /*break*/, 4];
case 3:
resolvedLinks.push(link);
_a.label = 4;
case 4:
_a.label = 5;
case 5:
_i++;
return [3 /*break*/, 1];
case 5: return [2 /*return*/, resolvedLinks];
case 6: return [2 /*return*/, resolvedLinks];
}

@@ -170,0 +180,0 @@ });

@@ -189,2 +189,5 @@ /*---------------------------------------------------------------------------------------------

}
function toCommand(c) {
return c && c.command === 'editor.action.triggerSuggest' ? { id: c.command, title: c.title, arguments: c.arguments } : undefined;
}
var CompletionAdapter = /** @class */ (function () {

@@ -221,2 +224,3 @@ function CompletionAdapter(_worker) {

detail: entry.detail,
command: toCommand(entry.command),
range: wordRange,

@@ -223,0 +227,0 @@ kind: toCompletionItemKind(entry.kind)

/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* monaco-css version: 3.5.0(aedb82f709242126ef24e80077cbc047d70a9da5)
* monaco-css version: 3.6.0(791b8223f9387a6f516cbc335ce549edb3e4c023)
* Released under the MIT license

@@ -5,0 +5,0 @@ * https://github.com/Microsoft/monaco-css/blob/master/LICENSE.md

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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