New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ant-monaco

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ant-monaco - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

51

lib/index.js

@@ -9,2 +9,4 @@ 'use strict';

exports.generateTokensCSSForColorMap = generateTokensCSSForColorMap;
var _vscodeTextmate = require('vscode-textmate');

@@ -22,2 +24,48 @@

function generateTokensCSSForColorMap(colorMap) {
var rules = [];
for (var i = 1, len = colorMap.length; i < len; i += 1) {
var color = colorMap[i];
rules[i] = '.mtk' + i + ' { color: ' + color.toString() + '; }';
}
rules.push('.mtki { font-style: italic; }');
rules.push('.mtkb { font-weight: bold; }');
rules.push('.mtku { text-decoration: underline; }');
return rules.join('\n');
}
var rebuildMtkColors = function rebuildMtkColors(cssRules) {
var head = document.head;
var tokennColor = document.createElement('style');
var monacoColor = document.createElement('style');
tokennColor.innerHTML = '' + cssRules;
monacoColor.innerHTML = '' + lightTheme;
head.appendChild(tokennColor);
head.appendChild(monacoColor);
return true;
};
var globalLanguageMap = {
javascript: {
scope: 'source.js',
config: jsConfig,
extensions: ['.js', '.jsx']
},
css: {
scope: 'source.css',
config: cssConfig,
extensions: ['.acss', '.css']
},
json: {
scope: 'source.json',
config: jsonConfig,
extensions: ['.json', '.bowerrc', '.jshintrc', '.jscsrc', '.eslintrc', '.babelrc', '.webmanifest']
},
html: {
scope: 'text.html.basic',
config: htmlConfig,
extensions: ['.axml', '.html']
}
};
var buildCompletionItemProvider = function buildCompletionItemProvider(languageId) {

@@ -176,3 +224,2 @@ switch (languageId) {

GrammarRegistry: GrammarRegistry
};
module.exports = exports['default'];
};

2

package.json
{
"name": "ant-monaco",
"version": "0.0.5",
"version": "0.0.6",
"description": "ant monaco with vscode-textmate",

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

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