Merge branch 'dev' into fix-name-generator

This commit is contained in:
Nick O'Leary 2022-04-25 20:31:33 +01:00 committed by GitHub
commit 2fb9f62d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
154 changed files with 24779 additions and 20873 deletions

View File

@ -106,9 +106,15 @@ async function login(req,res) {
urlPrefix += "/";
}
response = {
"type":"strategy",
"prompts":[{type:"button",label:mergedAdminAuth.strategy.label, url: urlPrefix + "auth/strategy"}]
"type":"strategy"
}
if (mergedAdminAuth.strategy.autoLogin) {
response.autoLogin = true
response.loginRedirect = urlPrefix + "auth/strategy"
}
response.prompts = [
{type:"button",label:mergedAdminAuth.strategy.label, url: urlPrefix + "auth/strategy"}
]
if (mergedAdminAuth.strategy.icon) {
response.prompts[0].icon = mergedAdminAuth.strategy.icon;
}
@ -185,7 +191,7 @@ function genericStrategy(adminApp,strategy) {
}
};
options.verify.apply(null,args);
options.verify.apply(this,args);
} else {
var profile = arguments[arguments.length - 2];
return completeVerify(profile,originalDone);

View File

@ -92,10 +92,16 @@ var passwordTokenExchange = function(client, username, password, scope, done) {
loginAttempts = loginAttempts.filter(function(logEntry) {
return logEntry.user !== username;
});
Tokens.create(username,client.id,scope).then(function(tokens) {
log.audit({event: "auth.login",user,username:username,client:client.id,scope:scope});
done(null,tokens.accessToken,null,{expires_in:tokens.expires_in});
});
// Check if the user contains a user defined token and use it
// instead of generating a new token
if(user.token){
done(null,user.token,null,null);
} else {
Tokens.create(username,client.id,scope).then(function(tokens) {
log.audit({event: "auth.login",user,username:username,client:client.id,scope:scope});
done(null,tokens.accessToken,null,{expires_in:tokens.expires_in});
});
}
} else {
log.audit({event: "auth.login.fail.permissions",username:username,client:client.id,scope:scope});
done(null,false);

View File

@ -474,7 +474,7 @@ var RED = (function() {
var parts = topic.split("/");
var node = RED.nodes.node(parts[1]);
if (node) {
if (msg.hasOwnProperty("text") && msg.text !== null && /^[a-zA-Z]/.test(msg.text)) {
if (msg.hasOwnProperty("text") && msg.text !== null && /^[@a-zA-Z]/.test(msg.text)) {
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()});
}
node.status = msg;

View File

@ -319,205 +319,208 @@ RED.deploy = (function() {
},delta);
});
}
function save(skipValidation,force) {
if (!$("#red-ui-header-button-deploy").hasClass("disabled")) {
if (!RED.user.hasPermission("flows.write")) {
RED.notify(RED._("user.errors.deploy"),"error");
function save(skipValidation, force) {
if ($("#red-ui-header-button-deploy").hasClass("disabled")) {
return; //deploy is disabled
}
if ($("#red-ui-header-shade").is(":visible")) {
return; //deploy is shaded
}
if (!RED.user.hasPermission("flows.write")) {
RED.notify(RED._("user.errors.deploy"), "error");
return;
}
let hasUnusedConfig = false;
if (!skipValidation) {
let hasUnknown = false;
let hasInvalid = false;
const unknownNodes = [];
const invalidNodes = [];
RED.nodes.eachConfig(function (node) {
if (node.valid === undefined) {
RED.editor.validateNode(node);
}
if (!node.valid && !node.d) {
invalidNodes.push(getNodeInfo(node));
}
if (node.type === "unknown") {
if (unknownNodes.indexOf(node.name) == -1) {
unknownNodes.push(node.name);
}
}
});
RED.nodes.eachNode(function (node) {
if (!node.valid && !node.d) {
invalidNodes.push(getNodeInfo(node));
}
if (node.type === "unknown") {
if (unknownNodes.indexOf(node.name) == -1) {
unknownNodes.push(node.name);
}
}
});
hasUnknown = unknownNodes.length > 0;
hasInvalid = invalidNodes.length > 0;
const unusedConfigNodes = [];
RED.nodes.eachConfig(function (node) {
if ((node._def.hasUsers !== false) && (node.users.length === 0)) {
unusedConfigNodes.push(getNodeInfo(node));
hasUnusedConfig = true;
}
});
let showWarning = false;
let notificationMessage;
let notificationButtons = [];
let notification;
if (hasUnknown && !ignoreDeployWarnings.unknown) {
showWarning = true;
notificationMessage = "<p>" + RED._('deploy.confirm.unknown') + "</p>" +
'<ul class="red-ui-deploy-dialog-confirm-list"><li>' + cropList(unknownNodes).map(function (n) { return sanitize(n) }).join("</li><li>") + "</li></ul><p>" +
RED._('deploy.confirm.confirm') +
"</p>";
notificationButtons = [
{
id: "red-ui-deploy-dialog-confirm-deploy-deploy",
text: RED._("deploy.confirm.button.confirm"),
class: "primary",
click: function () {
save(true);
notification.close();
}
}
];
} else if (hasInvalid && !ignoreDeployWarnings.invalid) {
showWarning = true;
invalidNodes.sort(sortNodeInfo);
notificationMessage = "<p>" + RED._('deploy.confirm.improperlyConfigured') + "</p>" +
'<ul class="red-ui-deploy-dialog-confirm-list"><li>' + cropList(invalidNodes.map(function (A) { return sanitize((A.tab ? "[" + A.tab + "] " : "") + A.label + " (" + A.type + ")") })).join("</li><li>") + "</li></ul><p>" +
RED._('deploy.confirm.confirm') +
"</p>";
notificationButtons = [
{
id: "red-ui-deploy-dialog-confirm-deploy-deploy",
text: RED._("deploy.confirm.button.confirm"),
class: "primary",
click: function () {
save(true);
notification.close();
}
}
];
}
if (showWarning) {
notificationButtons.unshift(
{
text: RED._("common.label.cancel"),
click: function () {
notification.close();
}
}
);
notification = RED.notify(notificationMessage, {
modal: true,
fixed: true,
buttons: notificationButtons
});
return;
}
if (!skipValidation) {
var hasUnknown = false;
var hasInvalid = false;
var hasUnusedConfig = false;
var unknownNodes = [];
var invalidNodes = [];
RED.nodes.eachConfig(function(node) {
if (node.valid === undefined) {
RED.editor.validateNode(node);
}
if (!node.valid && !node.d) {
invalidNodes.push(getNodeInfo(node));
}
if (node.type === "unknown") {
if (unknownNodes.indexOf(node.name) == -1) {
unknownNodes.push(node.name);
}
}
});
RED.nodes.eachNode(function(node) {
if (!node.valid && !node.d) {
invalidNodes.push(getNodeInfo(node));
}
if (node.type === "unknown") {
if (unknownNodes.indexOf(node.name) == -1) {
unknownNodes.push(node.name);
}
}
});
hasUnknown = unknownNodes.length > 0;
hasInvalid = invalidNodes.length > 0;
var unusedConfigNodes = [];
RED.nodes.eachConfig(function(node) {
if ((node._def.hasUsers !== false) && (node.users.length === 0)) {
unusedConfigNodes.push(getNodeInfo(node));
hasUnusedConfig = true;
}
});
var showWarning = false;
var notificationMessage;
var notificationButtons = [];
var notification;
if (hasUnknown && !ignoreDeployWarnings.unknown) {
showWarning = true;
notificationMessage = "<p>"+RED._('deploy.confirm.unknown')+"</p>"+
'<ul class="red-ui-deploy-dialog-confirm-list"><li>'+cropList(unknownNodes).map(function(n) { return sanitize(n) }).join("</li><li>")+"</li></ul><p>"+
RED._('deploy.confirm.confirm')+
"</p>";
notificationButtons= [
{
id: "red-ui-deploy-dialog-confirm-deploy-deploy",
text: RED._("deploy.confirm.button.confirm"),
class: "primary",
click: function() {
save(true);
notification.close();
}
}
];
} else if (hasInvalid && !ignoreDeployWarnings.invalid) {
showWarning = true;
invalidNodes.sort(sortNodeInfo);
notificationMessage = "<p>"+RED._('deploy.confirm.improperlyConfigured')+"</p>"+
'<ul class="red-ui-deploy-dialog-confirm-list"><li>'+cropList(invalidNodes.map(function(A) { return sanitize( (A.tab?"["+A.tab+"] ":"")+A.label+" ("+A.type+")")})).join("</li><li>")+"</li></ul><p>"+
RED._('deploy.confirm.confirm')+
"</p>";
notificationButtons= [
{
id: "red-ui-deploy-dialog-confirm-deploy-deploy",
text: RED._("deploy.confirm.button.confirm"),
class: "primary",
click: function() {
save(true);
notification.close();
}
}
];
}
if (showWarning) {
notificationButtons.unshift(
{
text: RED._("common.label.cancel"),
click: function() {
notification.close();
}
}
);
notification = RED.notify(notificationMessage,{
modal: true,
fixed: true,
buttons:notificationButtons
});
return;
}
}
var nns = RED.nodes.createCompleteNodeSet();
var startTime = Date.now();
$(".red-ui-deploy-button-content").css('opacity',0);
$(".red-ui-deploy-button-spinner").show();
$("#red-ui-header-button-deploy").addClass("disabled");
var data = {flows:nns};
if (!force) {
data.rev = RED.nodes.version();
}
deployInflight = true;
$("#red-ui-header-shade").show();
$("#red-ui-editor-shade").show();
$("#red-ui-palette-shade").show();
$("#red-ui-sidebar-shade").show();
$.ajax({
url:"flows",
type: "POST",
data: JSON.stringify(data),
contentType: "application/json; charset=utf-8",
headers: {
"Node-RED-Deployment-Type":deploymentType
}
}).done(function(data,textStatus,xhr) {
RED.nodes.dirty(false);
RED.nodes.version(data.rev);
RED.nodes.originalFlow(nns);
if (hasUnusedConfig) {
RED.notify(
'<p>'+RED._("deploy.successfulDeploy")+'</p>'+
'<p>'+RED._("deploy.unusedConfigNodes")+' <a href="#" onclick="RED.sidebar.config.show(true); return false;">'+RED._("deploy.unusedConfigNodesLink")+'</a></p>',"success",false,6000);
} else {
RED.notify('<p>'+RED._("deploy.successfulDeploy")+'</p>',"success");
}
RED.nodes.eachNode(function(node) {
if (node.changed) {
node.dirty = true;
node.changed = false;
}
if (node.moved) {
node.dirty = true;
node.moved = false;
}
if(node.credentials) {
delete node.credentials;
}
});
RED.nodes.eachConfig(function (confNode) {
confNode.changed = false;
if (confNode.credentials) {
delete confNode.credentials;
}
});
RED.nodes.eachSubflow(function(subflow) {
subflow.changed = false;
});
RED.nodes.eachWorkspace(function(ws) {
ws.changed = false;
});
// Once deployed, cannot undo back to a clean state
RED.history.markAllDirty();
RED.view.redraw();
RED.events.emit("deploy");
}).fail(function(xhr,textStatus,err) {
RED.nodes.dirty(true);
$("#red-ui-header-button-deploy").removeClass("disabled");
if (xhr.status === 401) {
RED.notify(RED._("deploy.deployFailed",{message:RED._("user.notAuthorized")}),"error");
} else if (xhr.status === 409) {
resolveConflict(nns, true);
} else if (xhr.responseText) {
RED.notify(RED._("deploy.deployFailed",{message:xhr.responseText}),"error");
} else {
RED.notify(RED._("deploy.deployFailed",{message:RED._("deploy.errors.noResponse")}),"error");
}
}).always(function() {
deployInflight = false;
var delta = Math.max(0,300-(Date.now()-startTime));
setTimeout(function() {
$(".red-ui-deploy-button-content").css('opacity',1);
$(".red-ui-deploy-button-spinner").hide();
$("#red-ui-header-shade").hide();
$("#red-ui-editor-shade").hide();
$("#red-ui-palette-shade").hide();
$("#red-ui-sidebar-shade").hide();
},delta);
});
}
const nns = RED.nodes.createCompleteNodeSet();
const startTime = Date.now();
$(".red-ui-deploy-button-content").css('opacity', 0);
$(".red-ui-deploy-button-spinner").show();
$("#red-ui-header-button-deploy").addClass("disabled");
const data = { flows: nns };
if (!force) {
data.rev = RED.nodes.version();
}
deployInflight = true;
$("#red-ui-header-shade").show();
$("#red-ui-editor-shade").show();
$("#red-ui-palette-shade").show();
$("#red-ui-sidebar-shade").show();
$.ajax({
url: "flows",
type: "POST",
data: JSON.stringify(data),
contentType: "application/json; charset=utf-8",
headers: {
"Node-RED-Deployment-Type": deploymentType
}
}).done(function (data, textStatus, xhr) {
RED.nodes.dirty(false);
RED.nodes.version(data.rev);
RED.nodes.originalFlow(nns);
if (hasUnusedConfig) {
RED.notify(
'<p>' + RED._("deploy.successfulDeploy") + '</p>' +
'<p>' + RED._("deploy.unusedConfigNodes") + ' <a href="#" onclick="RED.sidebar.config.show(true); return false;">' + RED._("deploy.unusedConfigNodesLink") + '</a></p>', "success", false, 6000);
} else {
RED.notify('<p>' + RED._("deploy.successfulDeploy") + '</p>', "success");
}
RED.nodes.eachNode(function (node) {
if (node.changed) {
node.dirty = true;
node.changed = false;
}
if (node.moved) {
node.dirty = true;
node.moved = false;
}
if (node.credentials) {
delete node.credentials;
}
});
RED.nodes.eachConfig(function (confNode) {
confNode.changed = false;
if (confNode.credentials) {
delete confNode.credentials;
}
});
RED.nodes.eachSubflow(function (subflow) {
subflow.changed = false;
});
RED.nodes.eachWorkspace(function (ws) {
ws.changed = false;
});
// Once deployed, cannot undo back to a clean state
RED.history.markAllDirty();
RED.view.redraw();
RED.events.emit("deploy");
}).fail(function (xhr, textStatus, err) {
RED.nodes.dirty(true);
$("#red-ui-header-button-deploy").removeClass("disabled");
if (xhr.status === 401) {
RED.notify(RED._("deploy.deployFailed", { message: RED._("user.notAuthorized") }), "error");
} else if (xhr.status === 409) {
resolveConflict(nns, true);
} else if (xhr.responseText) {
RED.notify(RED._("deploy.deployFailed", { message: xhr.responseText }), "error");
} else {
RED.notify(RED._("deploy.deployFailed", { message: RED._("deploy.errors.noResponse") }), "error");
}
}).always(function () {
deployInflight = false;
const delta = Math.max(0, 300 - (Date.now() - startTime));
setTimeout(function () {
$(".red-ui-deploy-button-content").css('opacity', 1);
$(".red-ui-deploy-button-spinner").hide();
$("#red-ui-header-shade").hide();
$("#red-ui-editor-shade").hide();
$("#red-ui-palette-shade").hide();
$("#red-ui-sidebar-shade").hide();
}, delta);
});
}
return {
init: init,

View File

@ -1151,7 +1151,7 @@ RED.editor.codeEditor.monaco = (function() {
try {
var _model = ed.getModel();
if (_model !== null) {
var id = _model.getModeId(); // e.g. javascript
var id = _model._languageId; // e.g. javascript
var ra = _model._associatedResource.authority; //e.g. model
var rp = _model._associatedResource.path; //e.g. /18
var rs = _model._associatedResource.scheme; //e.g. inmemory

View File

@ -168,7 +168,7 @@
'b': { before:"**", after: "**", tooltip: RED._("markdownEditor.bold")},
'i': { before:"_", after: "_", tooltip: RED._("markdownEditor.italic")},
'code': { before:"`", after: "`", tooltip: RED._("markdownEditor.code")},
'ol': { before:" * ", newline: true, tooltip: RED._("markdownEditor.ordered-list")},
'ol': { before:" 1. ", newline: true, tooltip: RED._("markdownEditor.ordered-list")},
'ul': { before:" - ", newline: true, tooltip: RED._("markdownEditor.unordered-list")},
'bq': { before:"> ", newline: true, tooltip: RED._("markdownEditor.quote")},
'link': { before:"[", after: "]()", tooltip: RED._("markdownEditor.link")},

View File

@ -118,20 +118,26 @@ RED.user = (function() {
});
} else if (data.type == "strategy") {
var sessionMessage = /[?&]session_message=(.*?)(?:$|&)/.exec(window.location.search);
RED.sessionMessages = RED.sessionMessages || [];
if (sessionMessage) {
RED.sessionMessages.push(decodeURIComponent(sessionMessage[1]));
if (history.pushState) {
var newurl = window.location.protocol+"//"+window.location.host+window.location.pathname
window.history.replaceState({ path: newurl }, "", newurl);
} else {
window.location.search = "";
}
}
if (RED.sessionMessages.length === 0 && data.autoLogin) {
document.location = data.loginRedirect
return
}
i = 0;
for (;i<data.prompts.length;i++) {
var field = data.prompts[i];
var sessionMessage = /[?&]session_message=(.*?)(?:$|&)/.exec(window.location.search);
if (sessionMessage) {
RED.sessionMessages = RED.sessionMessages || [];
RED.sessionMessages.push(sessionMessage[1]);
if (history.pushState) {
var newurl = window.location.protocol+"//"+window.location.host+window.location.pathname
window.history.replaceState({ path: newurl }, "", newurl);
} else {
window.location.search = "";
}
}
if (RED.sessionMessages) {
var sessionMessages = $("<div/>",{class:"form-row",style:"text-align: center"}).appendTo("#node-dialog-login-fields");
RED.sessionMessages.forEach(function (msg) {

View File

@ -150,7 +150,6 @@ $popover-button-border-color-hover: #666;
$diff-text-header-color: $secondary-text-color;
$diff-text-header-background: #ffd;
$diff-text-header-background-hover: #ffc;
$diff-state-color: $primary-text-color;
$diff-state-prefix-color: $secondary-text-color;
$diff-state-added: #009900;
@ -195,7 +194,6 @@ $view-lasso-stroke: #ff7f0e;
$view-lasso-fill: rgba(20,125,255,0.1);
$view-background: $secondary-background;
$view-select-mode-background: $secondary-background-selected;
$view-grid-color: #eee;
$node-label-color: #333;

View File

@ -26,6 +26,13 @@
box-shadow: none;
}
.ui-widget.ui-widget-content {
border: 1px solid $tertiary-border-color;
}
.ui-widget-content {
border: 1px solid $secondary-border-color;
}
.ui-widget-header {
color: $header-text-color;
}

View File

@ -58,7 +58,6 @@
.red-ui-workspace-select-mode {
.red-ui-workspace-chart-background {
opacity: 0.7;
// fill: $view-select-mode-background;
}
.red-ui-workspace-chart-grid line {
opacity: 0.8;

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'assert' {
/** An alias of `assert.ok()`. */
@ -125,3 +125,7 @@ declare module 'assert' {
export = assert;
}
declare module 'node:assert' {
import assert = require('assert');
export = assert;
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
/**
* Async Hooks module: https://nodejs.org/api/async_hooks.html
@ -227,3 +227,6 @@ declare module 'async_hooks' {
enterWith(store: T): void;
}
}
declare module 'node:async_hooks' {
export * from 'async_hooks';
}

View File

@ -1,7 +1,8 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'buffer' {
import { BinaryLike } from 'node:crypto';
export const INSPECT_MAX_BYTES: number;
export const kMaxLength: number;
export const kStringMaxLength: number;
@ -20,6 +21,72 @@ declare module 'buffer' {
new(size: number): Buffer;
prototype: Buffer;
};
/**
* @experimental
*/
export interface BlobOptions {
/**
* @default 'utf8'
*/
encoding?: BufferEncoding | undefined;
/**
* The Blob content-type. The intent is for `type` to convey
* the MIME media type of the data, however no validation of the type format
* is performed.
*/
type?: string | undefined;
}
/**
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
* multiple worker threads.
* @since v14.18.0
* @experimental
*/
export class Blob {
/**
* The total size of the `Blob` in bytes.
* @since v14.18.0
*/
readonly size: number;
/**
* The content-type of the `Blob`.
* @since v14.18.0
*/
readonly type: string;
/**
* Creates a new `Blob` object containing a concatenation of the given sources.
*
* {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
* the 'Blob' and can therefore be safely modified after the 'Blob' is created.
*
* String sources are also copied into the `Blob`.
*/
constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
/**
* Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
* the `Blob` data.
* @since v14.18.0
*/
arrayBuffer(): Promise<ArrayBuffer>;
/**
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
* data. The original `Blob` is not altered.
* @since v14.18.0
* @param start The starting index.
* @param end The ending index.
* @param type The content-type for the new `Blob`
*/
slice(start?: number, end?: number, type?: string): Blob;
/**
* Returns a promise that fulfills with the contents of the `Blob` decoded as a
* UTF-8 string.
* @since v14.18.0
*/
text(): Promise<string>;
}
export { BuffType as Buffer };
}
declare module 'node:buffer' {
export * from 'buffer';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'child_process' {
import { BaseEncodingOptions } from 'fs';
@ -512,3 +512,6 @@ declare module 'child_process' {
function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
}
declare module 'node:child_process' {
export * from 'child_process';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'cluster' {
import * as child from 'child_process';
@ -263,3 +263,6 @@ declare module 'cluster' {
function eventNames(): string[];
}
declare module 'node:cluster' {
export * from 'cluster';
}

View File

@ -1,7 +1,11 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'console' {
import console = require('node:console');
export = console;
}
declare module 'node:console' {
import { InspectOptions } from 'util';
global {
@ -118,6 +122,11 @@ declare module 'console' {
ignoreErrors?: boolean | undefined;
colorMode?: boolean | 'auto' | undefined;
inspectOptions?: InspectOptions | undefined;
/**
* Set group indentation
* @default 2
*/
groupIndentation?: number | undefined;
}
interface ConsoleConstructor {

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'crypto' {
import * as stream from 'stream';
@ -143,7 +143,7 @@ declare module 'crypto' {
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
type BinaryToTextEncoding = 'base64' | 'hex';
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
@ -517,7 +517,7 @@ declare module 'crypto' {
key: BinaryLike,
curve: string,
inputEncoding?: BinaryToTextEncoding,
outputEncoding?: 'latin1' | 'hex' | 'base64',
outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
format?: 'uncompressed' | 'compressed' | 'hybrid',
): Buffer | string;
generateKeys(): Buffer;
@ -1187,3 +1187,6 @@ declare module 'crypto' {
*/
function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
}
declare module 'node:crypto' {
export * from 'crypto';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'dgram' {
import { AddressInfo } from 'net';
@ -40,11 +40,11 @@ declare module 'dgram' {
class Socket extends EventEmitter {
addMembership(multicastAddress: string, multicastInterface?: string): void;
address(): AddressInfo;
bind(port?: number, address?: string, callback?: () => void): void;
bind(port?: number, callback?: () => void): void;
bind(callback?: () => void): void;
bind(options: BindOptions, callback?: () => void): void;
close(callback?: () => void): void;
bind(port?: number, address?: string, callback?: () => void): this;
bind(port?: number, callback?: () => void): this;
bind(callback?: () => void): this;
bind(options: BindOptions, callback?: () => void): this;
close(callback?: () => void): this;
connect(port: number, address?: string, callback?: () => void): void;
connect(port: number, callback: () => void): void;
disconnect(): void;
@ -61,11 +61,11 @@ declare module 'dgram' {
send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
setBroadcast(flag: boolean): void;
setMulticastInterface(multicastInterface: string): void;
setMulticastLoopback(flag: boolean): void;
setMulticastTTL(ttl: number): void;
setMulticastLoopback(flag: boolean): boolean;
setMulticastTTL(ttl: number): number;
setRecvBufferSize(size: number): void;
setSendBufferSize(size: number): void;
setTTL(ttl: number): void;
setTTL(ttl: number): number;
unref(): this;
/**
* Tells the kernel to join a source-specific multicast channel at the given
@ -142,3 +142,6 @@ declare module 'dgram' {
prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
}
}
declare module 'node:dgram' {
export * from 'dgram';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'dns' {
// Supported getaddrinfo flags.
@ -253,6 +253,8 @@ declare module 'dns' {
function setServers(servers: ReadonlyArray<string>): void;
function getServers(): string[];
function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
// Error codes
const NODATA: string;
const FORMERR: string;
@ -359,6 +361,8 @@ declare module 'dns' {
function setServers(servers: ReadonlyArray<string>): void;
function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
class Resolver {
constructor(options?: ResolverOptions);
cancel(): void;
@ -381,3 +385,6 @@ declare module 'dns' {
}
}
}
declare module 'node:dns' {
export * from 'dns';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'domain' {
import EventEmitter = require('events');
@ -25,3 +25,6 @@ declare module 'domain' {
function create(): Domain;
}
declare module 'node:domain' {
export * from 'domain';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'events' {
interface EventEmitterOptions {
@ -79,3 +79,7 @@ declare module 'events' {
export = EventEmitter;
}
declare module 'node:events' {
import events = require('events');
export = events;
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'fs' {
import * as stream from 'stream';
@ -146,7 +146,7 @@ declare module 'fs' {
}
export class ReadStream extends stream.Readable {
close(): void;
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
bytesRead: number;
path: string | Buffer;
pending: boolean;
@ -214,7 +214,7 @@ declare module 'fs' {
}
export class WriteStream extends stream.Writable {
close(): void;
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
bytesWritten: number;
path: string | Buffer;
pending: boolean;
@ -2244,13 +2244,13 @@ declare module 'fs' {
bufferSize?: number | undefined;
}
export function opendirSync(path: string, options?: OpenDirOptions): Dir;
export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
export function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
export function opendir(path: string, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
export namespace opendir {
function __promisify__(path: string, options?: OpenDirOptions): Promise<Dir>;
function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
}
export interface BigIntStats extends StatsBase<bigint> {
@ -2271,3 +2271,6 @@ declare module 'fs' {
bigint?: boolean | undefined;
}
}
declare module 'node:fs' {
export * from 'fs';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'fs/promises' {
import {
@ -564,5 +564,8 @@ declare module 'fs/promises' {
*/
function readFile(path: PathLike | FileHandle, options?: BaseEncodingOptions & { flag?: OpenMode | undefined } | BufferEncoding | null): Promise<string | Buffer>;
function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
}
declare module 'node:fs/promises' {
export * from 'fs/promises';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
// Declare "static" methods in Error
interface ErrorConstructor {
@ -74,14 +74,57 @@ declare var module: NodeModule;
declare var exports: any;
// Buffer class
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
type WithImplicitCoercion<T> = T | { valueOf(): T };
//#region borrowed
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
* @since v14.7.0
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
* @since v14.7.0
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
* @since v14.7.0
*/
abort(): void;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
* @since v14.7.0
*/
interface AbortSignal {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
* @since v14.7.0
*/
readonly aborted: boolean;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
// TODO: Add abort() static
};
//#endregion borrowed
/**
* Raw data is stored in instances of the Buffer class.
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
*/
declare class Buffer extends Uint8Array {
/**
@ -163,7 +206,7 @@ declare class Buffer extends Uint8Array {
static isBuffer(obj: any): obj is Buffer;
/**
* Returns true if {encoding} is a valid encoding argument.
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
*
* @param encoding string to test.
*/
@ -258,24 +301,89 @@ declare class Buffer extends Uint8Array {
writeBigInt64BE(value: bigint, offset?: number): number;
writeBigInt64LE(value: bigint, offset?: number): number;
writeBigUInt64BE(value: bigint, offset?: number): number;
/**
* @alias Buffer.writeBigUInt64BE
* @since v14.10.0, v12.19.0
*/
writeBigUint64BE(value: bigint, offset?: number): number;
writeBigUInt64LE(value: bigint, offset?: number): number;
/**
* @alias Buffer.writeBigUInt64LE
* @since v14.10.0, v12.19.0
*/
writeBigUint64LE(value: bigint, offset?: number): number;
writeUIntLE(value: number, offset: number, byteLength: number): number;
/**
* @alias Buffer.writeUIntLE
* @since v14.9.0, v12.19.0
*/
writeUintLE(value: number, offset: number, byteLength: number): number;
writeUIntBE(value: number, offset: number, byteLength: number): number;
/**
* @alias Buffer.writeUIntBE
* @since v14.9.0, v12.19.0
*/
writeUintBE(value: number, offset: number, byteLength: number): number;
writeIntLE(value: number, offset: number, byteLength: number): number;
writeIntBE(value: number, offset: number, byteLength: number): number;
readBigUInt64BE(offset?: number): bigint;
/**
* @alias Buffer.readBigUInt64BE
* @since v14.10.0, v12.19.0
*/
readBigUint64BE(offset?: number): bigint;
readBigUInt64LE(offset?: number): bigint;
/**
* @alias Buffer.readBigUInt64LE
* @since v14.10.0, v12.19.0
*/
readBigUint64LE(offset?: number): bigint;
readBigInt64BE(offset?: number): bigint;
readBigInt64LE(offset?: number): bigint;
readUIntLE(offset: number, byteLength: number): number;
/**
* @alias Buffer.readUIntLE
* @since v14.9.0, v12.19.0
*/
readUintLE(offset: number, byteLength: number): number;
readUIntBE(offset: number, byteLength: number): number;
/**
* @alias Buffer.readUIntBE
* @since v14.9.0, v12.19.0
*/
readUintBE(offset: number, byteLength: number): number;
readIntLE(offset: number, byteLength: number): number;
readIntBE(offset: number, byteLength: number): number;
readUInt8(offset?: number): number;
/**
* @alias Buffer.readUInt8
* @since v14.9.0, v12.19.0
*/
readUint8(offset?: number): number;
readUInt16LE(offset?: number): number;
/**
* @alias Buffer.readUInt16LE
* @since v14.9.0, v12.19.0
*/
readUint16LE(offset?: number): number;
readUInt16BE(offset?: number): number;
/**
* @alias Buffer.readUInt16BE
* @since v14.9.0, v12.19.0
*/
readUint16BE(offset?: number): number;
readUInt32LE(offset?: number): number;
/**
* @alias Buffer.readUInt32LE
* @since v14.9.0, v12.19.0
*/
readUint32LE(offset?: number): number;
readUInt32BE(offset?: number): number;
/**
* @alias Buffer.readUInt32BE
* @since v14.9.0, v12.19.0
*/
readUint32BE(offset?: number): number;
readInt8(offset?: number): number;
readInt16LE(offset?: number): number;
readInt16BE(offset?: number): number;
@ -290,10 +398,35 @@ declare class Buffer extends Uint8Array {
swap32(): Buffer;
swap64(): Buffer;
writeUInt8(value: number, offset?: number): number;
/**
* @alias Buffer.writeUInt8
* @since v14.9.0, v12.19.0
*/
writeUint8(value: number, offset?: number): number;
writeUInt16LE(value: number, offset?: number): number;
/**
* @alias Buffer.writeUInt16LE
* @since v14.9.0, v12.19.0
*/
writeUint16LE(value: number, offset?: number): number;
writeUInt16BE(value: number, offset?: number): number;
/**
* @alias Buffer.writeUInt16BE
* @since v14.9.0, v12.19.0
*/
writeUint16BE(value: number, offset?: number): number;
writeUInt32LE(value: number, offset?: number): number;
/**
* @alias Buffer.writeUInt32LE
* @since v14.9.0, v12.19.0
*/
writeUint32LE(value: number, offset?: number): number;
writeUInt32BE(value: number, offset?: number): number;
/**
* @alias Buffer.writeUInt32BE
* @since v14.9.0, v12.19.0
*/
writeUint32BE(value: number, offset?: number): number;
writeInt8(value: number, offset?: number): number;
writeInt16LE(value: number, offset?: number): number;
writeInt16BE(value: number, offset?: number): number;
@ -460,9 +593,9 @@ declare namespace NodeJS {
writable: boolean;
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
end(cb?: () => void): void;
end(data: string | Uint8Array, cb?: () => void): void;
end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
end(cb?: () => void): this;
end(data: string | Uint8Array, cb?: () => void): this;
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
}
interface ReadWriteStream extends ReadableStream, WritableStream { }

View File

@ -1,10 +1,10 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'http' {
import * as stream from 'stream';
import { URL } from 'url';
import { Socket, Server as NetServer } from 'net';
import { Socket, Server as NetServer, LookupFunction } from 'net';
// incoming headers will never contain number
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
@ -102,6 +102,7 @@ declare module 'http' {
setHost?: boolean | undefined;
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
lookup?: LookupFunction | undefined;
}
interface ServerOptions {
@ -239,7 +240,7 @@ declare module 'http' {
constructor();
setTimeout(msecs: number, callback?: () => void): this;
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
getHeader(name: string): number | string | string[] | undefined;
getHeaders(): OutgoingHttpHeaders;
getHeaderNames(): string[];
@ -281,6 +282,8 @@ declare module 'http' {
aborted: boolean;
host: string;
protocol: string;
reusedSocket: boolean;
maxHeadersCount: number;
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
@ -408,7 +411,7 @@ declare module 'http' {
* Only valid for response obtained from http.ClientRequest.
*/
statusMessage?: string | undefined;
destroy(error?: Error): void;
destroy(error?: Error): this;
}
interface AgentOptions {
@ -487,3 +490,6 @@ declare module 'http' {
*/
const maxHeaderSize: number;
}
declare module 'node:http' {
export * from 'http';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'http2' {
import EventEmitter = require('events');
@ -597,7 +597,7 @@ declare module 'http2' {
readonly socket: net.Socket | tls.TLSSocket;
readonly stream: ServerHttp2Stream;
readonly trailers: IncomingHttpHeaders;
readonly url: string;
url: string;
setTimeout(msecs: number, callback?: () => void): void;
read(size?: number): Buffer | string | null;
@ -663,9 +663,9 @@ declare module 'http2' {
statusCode: number;
statusMessage: '';
addTrailers(trailers: OutgoingHttpHeaders): void;
end(callback?: () => void): void;
end(data: string | Uint8Array, callback?: () => void): void;
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void;
end(callback?: () => void): this;
end(data: string | Uint8Array, callback?: () => void): this;
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
getHeader(name: string): string;
getHeaderNames(): string[];
getHeaders(): OutgoingHttpHeaders;
@ -959,3 +959,6 @@ declare module 'http2' {
listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
): ClientHttp2Session;
}
declare module 'node:http2' {
export * from 'http2';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'https' {
import { Duplex } from 'stream';
@ -140,3 +140,6 @@ declare module 'https' {
function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
let globalAgent: Agent;
}
declare module 'node:https' {
export * from 'https';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'module' {
import { URL } from 'url';
@ -53,3 +53,7 @@ declare module 'module' {
}
export = Module;
}
declare module 'node:module' {
import module = require('module');
export = module;
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'net' {
import * as stream from 'stream';
@ -95,9 +95,9 @@ declare module 'net' {
readonly remotePort?: number | undefined;
// Extended base methods
end(cb?: () => void): void;
end(buffer: Uint8Array | string, cb?: () => void): void;
end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): void;
end(cb?: () => void): this;
end(buffer: Uint8Array | string, cb?: () => void): this;
end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): this;
/**
* events.EventEmitter
@ -294,3 +294,6 @@ declare module 'net' {
function isIPv4(input: string): boolean;
function isIPv6(input: string): boolean;
}
declare module 'node:net' {
export * from 'net';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'os' {
interface CpuInfo {
@ -240,3 +240,6 @@ declare module 'os' {
*/
function setPriority(pid: number, priority: number): void;
}
declare module 'node:os' {
export * from 'os';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'path' {
namespace path {
@ -154,3 +154,7 @@ declare module 'path' {
const path: path.PlatformPath;
export = path;
}
declare module 'node:path' {
import path = require('path');
export = path;
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'perf_hooks' {
import { AsyncResource } from 'async_hooks';
@ -272,3 +272,6 @@ declare module 'perf_hooks' {
function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
}
declare module 'node:perf_hooks' {
export * from 'perf_hooks';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'process' {
import * as tty from 'tty';
@ -123,7 +123,7 @@ declare module 'process' {
/**
* If true, a diagnostic report is generated when the process
* receives the signal specified by process.report.signal.
* @defaul false
* @default false
*/
reportOnSignal: boolean;
@ -410,3 +410,7 @@ declare module 'process' {
export = process;
}
declare module 'node:process' {
import process = require('process');
export = process;
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'querystring' {
interface StringifyOptions {
@ -29,3 +29,6 @@ declare module 'querystring' {
function escape(str: string): string;
function unescape(str: string): string;
}
declare module 'node:querystring' {
export * from 'querystring';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'readline' {
import EventEmitter = require('events');
@ -48,6 +48,7 @@ declare module 'readline' {
resume(): this;
close(): void;
write(data: string | Buffer, key?: Key): void;
write(data: undefined | null | string | Buffer, key: Key): void;
/**
* Returns the real position of the cursor in relation to the input
@ -171,3 +172,6 @@ declare module 'readline' {
*/
function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
}
declare module 'node:readline' {
export * from 'readline';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'stream' {
import EventEmitter = require('events');
@ -48,7 +48,7 @@ declare module 'stream' {
wrap(oldStream: NodeJS.ReadableStream): this;
push(chunk: any, encoding?: BufferEncoding): boolean;
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
destroy(error?: Error): void;
destroy(error?: Error): this;
/**
* Event emitter
@ -157,12 +157,12 @@ declare module 'stream' {
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
write(chunk: any, encoding: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
setDefaultEncoding(encoding: BufferEncoding): this;
end(cb?: () => void): void;
end(chunk: any, cb?: () => void): void;
end(chunk: any, encoding: BufferEncoding, cb?: () => void): void;
end(cb?: () => void): this;
end(chunk: any, cb?: () => void): this;
end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
cork(): void;
uncork(): void;
destroy(error?: Error): void;
destroy(error?: Error): this;
/**
* Event emitter
@ -263,9 +263,9 @@ declare module 'stream' {
write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
setDefaultEncoding(encoding: BufferEncoding): this;
end(cb?: () => void): void;
end(chunk: any, cb?: () => void): void;
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void;
end(cb?: () => void): this;
end(chunk: any, cb?: () => void): this;
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
cork(): void;
uncork(): void;
}
@ -356,3 +356,7 @@ declare module 'stream' {
export = internal;
}
declare module 'node:stream' {
import stream = require('stream');
export = stream;
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'string_decoder' {
class StringDecoder {
@ -8,3 +8,6 @@ declare module 'string_decoder' {
end(buffer?: Buffer): string;
}
}
declare module 'node:string_decoder' {
export * from 'string_decoder';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'timers' {
function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
@ -17,3 +17,6 @@ declare module 'timers' {
}
function clearImmediate(immediateId: NodeJS.Immediate): void;
}
declare module 'node:timers' {
export * from 'timers';
}

View File

@ -1,8 +1,9 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'tls' {
import * as net from 'net';
import * as stream from 'stream';
const CLIENT_RENEG_LIMIT: number;
const CLIENT_RENEG_WINDOW: number;
@ -444,7 +445,7 @@ declare module 'tls' {
host?: string | undefined;
port?: number | undefined;
path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
checkServerIdentity?: typeof checkServerIdentity | undefined;
servername?: string | undefined; // SNI TLS Extension
session?: Buffer | undefined;
@ -781,3 +782,6 @@ declare module 'tls' {
*/
const rootCertificates: ReadonlyArray<string>;
}
declare module 'node:tls' {
export * from 'tls';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'trace_events' {
/**
@ -62,3 +62,6 @@ declare module 'trace_events' {
*/
function getEnabledCategories(): string | undefined;
}
declare module 'node:trace_events' {
export * from 'trace_events';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'tty' {
import * as net from 'net';
@ -67,3 +67,6 @@ declare module 'tty' {
isTTY: boolean;
}
}
declare module 'node:tty' {
export * from 'tty';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'url' {
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
@ -105,7 +105,7 @@ declare module 'url' {
append(name: string, value: string): void;
delete(name: string): void;
entries(): IterableIterator<[string, string]>;
forEach(callback: (value: string, name: string, searchParams: this) => void): void;
forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: any): void;
get(name: string): string | null;
getAll(name: string): string[];
has(name: string): boolean;
@ -116,4 +116,37 @@ declare module 'url' {
values(): IterableIterator<string>;
[Symbol.iterator](): IterableIterator<[string, string]>;
}
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
global {
interface URLSearchParams extends _URLSearchParams {}
interface URL extends _URL {}
interface Global {
URL: typeof _URL;
URLSearchParams: typeof _URLSearchParams;
}
/**
* `URL` class is a global reference for `require('url').URL`
* https://nodejs.org/api/url.html#the-whatwg-url-api
* @since v10.0.0
*/
var URL:
// For compatibility with "dom" and "webworker" URL declarations
typeof globalThis extends { onmessage: any, URL: infer URL }
? URL
: typeof _URL;
/**
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
* https://nodejs.org/api/url.html#class-urlsearchparams
* @since v10.0.0
*/
var URLSearchParams:
// For compatibility with "dom" and "webworker" URLSearchParams declarations
typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
? URLSearchParams
: typeof _URLSearchParams;
}
}
declare module 'node:url' {
export * from 'url';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'util' {
interface InspectOptions extends NodeJS.InspectOptions { }
@ -10,6 +10,7 @@ declare module 'util' {
}
function format(format?: any, ...param: any[]): string;
function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
function getSystemErrorName(err: number): string;
/** @deprecated since v0.11.3 - use a third party module instead. */
function log(string: string): void;
function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
@ -35,7 +36,12 @@ declare module 'util' {
/** @deprecated since v4.0.0 - use `util.types.isNativeError()` instead. */
function isError(object: any): object is Error;
function inherits(constructor: any, superConstructor: any): void;
function debuglog(key: string): (msg: string, ...param: any[]) => void;
type DebugLoggerFunction = (msg: string, ...param: any[]) => void;
interface DebugLogger extends DebugLoggerFunction {
enabled: boolean;
}
function debuglog(key: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
const debug: typeof debuglog;
/** @deprecated since v4.0.0 - use `typeof value === 'boolean'` instead. */
function isBoolean(object: any): object is boolean;
/** @deprecated since v4.0.0 - use `Buffer.isBuffer()` instead. */
@ -208,3 +214,6 @@ declare module 'util' {
encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
}
}
declare module 'node:util' {
export * from 'util';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'v8' {
import { Readable } from 'stream';
@ -188,3 +188,6 @@ declare module 'v8' {
*/
function deserialize(data: NodeJS.TypedArray): any;
}
declare module 'node:v8' {
export * from 'v8';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'vm' {
interface Context extends NodeJS.Dict<any> { }
@ -153,3 +153,6 @@ declare module 'vm' {
*/
function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
}
declare module 'node:vm' {
export * from 'vm';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'wasi' {
interface WASIOptions {
@ -87,3 +87,6 @@ declare module 'wasi' {
readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
}
}
declare module 'node:wasi' {
export * from 'wasi';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'worker_threads' {
import { Context } from 'vm';
@ -239,3 +239,6 @@ declare module 'worker_threads' {
*/
function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
}
declare module 'node:worker_threads' {
export * from 'worker_threads';
}

View File

@ -1,5 +1,5 @@
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
declare module 'zlib' {
import * as stream from 'stream';
@ -362,3 +362,6 @@ declare module 'zlib' {
/** @deprecated */
const Z_DEFLATED: number;
}
declare module 'node:zlib' {
export * from 'zlib';
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/

View File

@ -0,0 +1,197 @@
{
"base": "vs",
"inherit": true,
"rules": [
{
"token": "",
"foreground": "5c6773"
},
{
"token": "invalid",
"foreground": "ff3333"
},
{
"token": "emphasis",
"fontStyle": "italic"
},
{
"token": "strong",
"fontStyle": "bold"
},
{
"token": "variable",
"foreground": "5c6773"
},
{
"token": "variable.predefined",
"foreground": "5c6773"
},
{
"token": "constant",
"foreground": "f08c36"
},
{
"token": "comment",
"foreground": "abb0b6",
"fontStyle": "italic"
},
{
"token": "number",
"foreground": "f08c36"
},
{
"token": "number.hex",
"foreground": "f08c36"
},
{
"token": "regexp",
"foreground": "4dbf99"
},
{
"token": "annotation",
"foreground": "41a6d9"
},
{
"token": "type",
"foreground": "41a6d9"
},
{
"token": "delimiter",
"foreground": "5c6773"
},
{
"token": "delimiter.html",
"foreground": "5c6773"
},
{
"token": "delimiter.xml",
"foreground": "5c6773"
},
{
"token": "tag",
"foreground": "e7c547"
},
{
"token": "tag.id.jade",
"foreground": "e7c547"
},
{
"token": "tag.class.jade",
"foreground": "e7c547"
},
{
"token": "meta.scss",
"foreground": "e7c547"
},
{
"token": "metatag",
"foreground": "e7c547"
},
{
"token": "metatag.content.html",
"foreground": "86b300"
},
{
"token": "metatag.html",
"foreground": "e7c547"
},
{
"token": "metatag.xml",
"foreground": "e7c547"
},
{
"token": "metatag.php",
"fontStyle": "bold"
},
{
"token": "key",
"foreground": "41a6d9"
},
{
"token": "string.key.json",
"foreground": "41a6d9"
},
{
"token": "string.value.json",
"foreground": "86b300"
},
{
"token": "attribute.name",
"foreground": "f08c36"
},
{
"token": "attribute.value",
"foreground": "0451A5"
},
{
"token": "attribute.value.number",
"foreground": "abb0b6"
},
{
"token": "attribute.value.unit",
"foreground": "86b300"
},
{
"token": "attribute.value.html",
"foreground": "86b300"
},
{
"token": "attribute.value.xml",
"foreground": "86b300"
},
{
"token": "string",
"foreground": "86b300"
},
{
"token": "string.html",
"foreground": "86b300"
},
{
"token": "string.sql",
"foreground": "86b300"
},
{
"token": "string.yaml",
"foreground": "86b300"
},
{
"token": "keyword",
"foreground": "f2590c"
},
{
"token": "keyword.json",
"foreground": "f2590c"
},
{
"token": "keyword.flow",
"foreground": "f2590c"
},
{
"token": "keyword.flow.scss",
"foreground": "f2590c"
},
{
"token": "operator.scss",
"foreground": "666666"
},
{
"token": "operator.sql",
"foreground": "778899"
},
{
"token": "operator.swift",
"foreground": "666666"
},
{
"token": "predefined.sql",
"foreground": "FF00FF"
}
],
"colors": {
"editor.background": "#fafafa",
"editor.foreground": "#5c6773",
"editorIndentGuide.background": "#ecebec",
"editorIndentGuide.activeBackground": "#e0e0e0"
}
}

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"background": "e2e9ff5e",
"token": "text.html source.active4d"

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "000000",
"token": ""
},
{
"foreground": "ffffff",
"background": "434242",

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "200020",
"token": ""
},
{
"foreground": "404080",
"background": "200020",

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "372725",
"token": ""
},
{
"foreground": "e6e1c4",
"background": "322323",

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "0C1021",
"token": ""
},
{
"foreground": "aeaeae",
"token": "comment"

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "0D0D0DFA",
"token": ""
},
{
"foreground": "000000",
"background": "ffffff",

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "050505FA",
"token": ""
},
{
"foreground": "000000",
"background": "ffffff",

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"foreground": "c41a16",
"token": "string"

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "191919",
"token": ""
},
{
"foreground": "3c403b",
"token": "comment"

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"foreground": "bcc8ba",
"token": "comment"

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "002240",
"token": ""
},
{
"foreground": "e1efff",
"token": "punctuation - (punctuation.definition.string || punctuation.definition.comment)"

View File

@ -0,0 +1,859 @@
{
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "193549",
"token": ""
},
{
"foreground": "e1efff",
"token": "punctuation - (punctuation.definition.string || punctuation.definition.comment)"
},
{
"foreground": "ff628c",
"token": "constant"
},
{
"foreground": "ffc600",
"token": "entity"
},
{
"foreground": "ff9d00",
"token": "keyword"
},
{
"foreground": "ffc600",
"token": "storage"
},
{
"foreground": "3ad900",
"token": "string -string.unquoted.old-plist -string.unquoted.heredoc"
},
{
"foreground": "3ad900",
"token": "string.unquoted.heredoc string"
},
{
"foreground": "0088ff",
"fontStyle": "italic",
"token": "comment"
},
{
"foreground": "80ffbb",
"token": "support"
},
{
"foreground": "cccccc",
"background": "0d3a58",
"token": "variable"
},
{
"foreground": "ff80e1",
"token": "variable.language"
},
{
"foreground": "ffee80",
"token": "meta.function-call"
},
{
"foreground": "f8f8f8",
"background": "800f00",
"token": "invalid"
},
{
"foreground": "80fcff",
"fontStyle": "italic",
"token": "entity.other.inherited-class"
},
{
"foreground": "9eff80",
"token": "string.quoted source"
},
{
"foreground": "9eff80",
"token": "string.quoted"
},
{
"foreground": "80ff82",
"token": "string constant"
},
{
"foreground": "80ffc2",
"token": "string.regexp"
},
{
"foreground": "edef7d",
"token": "string variable"
},
{
"foreground": "ffb054",
"token": "support.function"
},
{
"foreground": "eb939a",
"token": "support.constant"
},
{
"foreground": "ff1e00",
"token": "support.type.exception"
},
{
"foreground": "8996a8",
"token": "meta.preprocessor.c"
},
{
"foreground": "afc4db",
"token": "meta.preprocessor.c keyword"
},
{
"foreground": "73817d",
"token": "meta.sgml.html meta.doctype"
},
{
"foreground": "73817d",
"token": "meta.sgml.html meta.doctype entity"
},
{
"foreground": "73817d",
"token": "meta.sgml.html meta.doctype string"
},
{
"foreground": "73817d",
"token": "meta.xml-processing"
},
{
"foreground": "73817d",
"token": "meta.xml-processing entity"
},
{
"foreground": "73817d",
"token": "meta.xml-processing string"
},
{
"foreground": "9effff",
"token": "meta.tag"
},
{
"foreground": "9effff",
"token": "meta.tag entity"
},
{
"foreground": "9effff",
"token": "meta.selector.css entity.name.tag"
},
{
"foreground": "ffb454",
"token": "meta.selector.css entity.other.attribute-name.id"
},
{
"foreground": "5fe461",
"token": "meta.selector.css entity.other.attribute-name.class"
},
{
"foreground": "9df39f",
"token": "support.type.property-name.css"
},
{
"foreground": "f6f080",
"token": "meta.property-group support.constant.property-value.css"
},
{
"foreground": "f6f080",
"token": "meta.property-value support.constant.property-value.css"
},
{
"foreground": "f6aa11",
"token": "meta.preprocessor.at-rule keyword.control.at-rule"
},
{
"foreground": "edf080",
"token": "meta.property-value support.constant.named-color.css"
},
{
"foreground": "edf080",
"token": "meta.property-value constant"
},
{
"foreground": "eb939a",
"token": "meta.constructor.argument.css"
},
{
"foreground": "f8f8f8",
"background": "000e1a",
"token": "meta.diff"
},
{
"foreground": "f8f8f8",
"background": "000e1a",
"token": "meta.diff.header"
},
{
"foreground": "f8f8f8",
"background": "ee3a43",
"token": "markup.deleted"
},
{
"foreground": "f8f8f8",
"background": "806f00",
"token": "markup.changed"
},
{
"foreground": "f8f8f8",
"background": "154f00",
"token": "markup.inserted"
},
{
"background": "8fddf630",
"token": "markup.raw"
},
{
"background": "004480",
"token": "markup.quote"
},
{
"background": "1d425d",
"token": "markup.list"
},
{
"foreground": "c1afff",
"fontStyle": "bold",
"token": "markup.bold"
},
{
"foreground": "b8ffd9",
"fontStyle": "italic",
"token": "markup.italic"
},
{
"foreground": "c8e4fd",
"background": "001221",
"fontStyle": "bold",
"token": "markup.heading"
},
{
"foreground": "ffffff",
"background": "ffffaa",
"token": "sublimelinter.annotations"
},
{
"foreground": "da2000",
"token": "sublimelinter.mark.error"
},
{
"foreground": "ffffff",
"background": "ff4a52",
"token": "sublimelinter.outline.illegal"
},
{
"background": "ff0000",
"token": "sublimelinter.underline.illegal"
},
{
"foreground": "ffffff",
"token": "sublimelinter.gutter-mark"
},
{
"foreground": "edba00",
"token": "sublimelinter.mark.warning"
},
{
"foreground": "ffffff",
"background": "df9400",
"token": "sublimelinter.outline.warning"
},
{
"background": "ff0000",
"token": "sublimelinter.underline.warning"
},
{
"foreground": "ffffff",
"background": "ffffff",
"token": "sublimelinter.outline.violation"
},
{
"background": "ff0000",
"token": "sublimelinter.underline.violation"
},
{
"foreground": "80ffc2",
"token": ""
},
{
"foreground": "80ffc2",
"token": "entity.name.class.php"
},
{
"foreground": "80ffc2",
"token": ""
},
{
"foreground": "80ffc2",
"token": "entity.name.type.class.php"
},
{
"foreground": "80ffc2",
"token": ""
},
{
"background": "333333",
"token": "entity.name.function.php"
},
{
"foreground": "f92672",
"token": "markup.deleted.git_gutter"
},
{
"foreground": "a6e22e",
"token": "markup.inserted.git_gutter"
},
{
"foreground": "967efb",
"token": "markup.changed.git_gutter"
},
{
"foreground": "565656",
"token": "markup.ignored.git_gutter"
},
{
"foreground": "565656",
"token": "markup.untracked.git_gutter"
},
{
"foreground": "1f4662",
"token": "brackethighlighter.tag"
},
{
"foreground": "ffc600",
"token": "brackethighlighter.curly"
},
{
"foreground": "ffc600",
"token": "brackethighlighter.round"
},
{
"foreground": "ffc600",
"token": "brackethighlighter.square"
},
{
"foreground": "ffdd00",
"token": "brackethighlighter.angle"
},
{
"foreground": "ffc600",
"token": "brackethighlighter.quote"
},
{
"foreground": "f92672",
"token": "brackethighlighter.unmatched"
},
{
"foreground": "ffa5f3",
"background": "1d3c52",
"token": "storage.type.function.js"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.begin.js"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.end.js"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "2affdf",
"token": "string.unquoted.label.js"
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "2affdf",
"token": "meta.object-literal.key.js"
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "80ffbb",
"token": "meta.object-literal.key.string.quoted"
},
{
"foreground": "ffc600",
"token": "meta.object-literal.key.entity"
},
{
"foreground": "ffffff",
"token": "meta.object-literal.key.punctuation"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.template.begin.js"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.template.end.js"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "9eff80",
"token": "string.template.js"
},
{
"foreground": "ffffff",
"token": ""
},
{
"foreground": "ffffff",
"token": "string.template.js punctuation"
},
{
"foreground": "ffffff",
"token": ""
},
{
"foreground": "ffc600",
"token": "template.entity"
},
{
"foreground": "ff80e1",
"token": "string.template variable"
},
{
"foreground": "ffa5f3",
"background": "1d3c52",
"token": "storage.type.function.jsx"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.begin.jsx"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.end.jsx"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "2affdf",
"token": "string.unquoted.label.jsx"
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "2affdf",
"token": "meta.object-literal.key.jsx"
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "80ffbb",
"token": "meta.object-literal.key.string.quoted"
},
{
"foreground": "ffc600",
"token": "meta.object-literal.key.entity"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.template.begin.jsx"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.template.end.jsx"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "9eff80",
"token": "string.template.jsx"
},
{
"foreground": "ffffff",
"token": ""
},
{
"foreground": "ffffff",
"token": "string.template.jsx punctuation"
},
{
"foreground": "ffffff",
"token": ""
},
{
"foreground": "ffa5f3",
"background": "1d3c52",
"token": "storage.type.function.ts"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.begin.ts"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.end.ts"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.template.begin.ts"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "2eff00",
"token": "punctuation.definition.string.template.end.ts"
},
{
"foreground": "2eff00",
"token": ""
},
{
"foreground": "9eff80",
"token": "string.template.ts"
},
{
"foreground": "ffffff",
"token": ""
},
{
"foreground": "ffffff",
"token": "string.template.ts punctuation"
},
{
"foreground": "ffffff",
"token": ""
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "2affdf",
"token": "string.unquoted.label.ts"
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "2affdf",
"token": "meta.object-literal.key.ts"
},
{
"foreground": "2affdf",
"token": ""
},
{
"foreground": "fb94ff",
"token": ""
},
{
"foreground": "fb94ff",
"token": "entity.name.class.js"
},
{
"foreground": "fb94ff",
"token": ""
},
{
"foreground": "fb94ff",
"token": "entity.name.type.class.js"
},
{
"foreground": "fb94ff",
"token": ""
},
{
"foreground": "fb94ff",
"token": "entity.name.class.jsx"
},
{
"foreground": "fb94ff",
"token": ""
},
{
"foreground": "fb94ff",
"token": "entity.name.type.class.jsx"
},
{
"foreground": "fb94ff",
"token": ""
},
{
"foreground": "ff9d00",
"token": ""
},
{
"foreground": "ff9d00",
"token": "storage.type.class.js"
},
{
"foreground": "ff9d00",
"token": ""
},
{
"foreground": "ff9d00",
"token": "storage.type.class.jsx"
},
{
"foreground": "ff9d00",
"token": ""
},
{
"fontStyle": "italic",
"token": ""
},
{
"fontStyle": "italic",
"token": "storage.type.extends.js"
},
{
"fontStyle": "italic",
"token": ""
},
{
"fontStyle": "italic",
"token": "storage.modifier.extends.js"
},
{
"fontStyle": "italic",
"token": ""
},
{
"fontStyle": "italic",
"token": "storage.type.extends.jsx"
},
{
"fontStyle": "italic",
"token": ""
},
{
"fontStyle": "italic",
"token": "storage.modifier.extends.jsx"
},
{
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"token": "punctuation.separator.key-value.css"
},
{
"foreground": "0088ff",
"background": "17344a",
"token": "invalid.illegal.bad-comments-or-CDATA.html"
},
{
"foreground": "ffc600",
"token": ""
},
{
"foreground": "ffc600",
"token": "punctuation.definition.list_item.markdown"
},
{
"foreground": "ffc600",
"token": ""
},
{
"foreground": "ffc600",
"token": "punctuation.definition.blockquote.markdown"
},
{
"foreground": "ffc600",
"token": ""
},
{
"foreground": "ffc600",
"token": "punctuation.definition.string.begin.markdown"
},
{
"foreground": "ffc600",
"token": ""
},
{
"foreground": "ffc600",
"token": "punctuation.definition.string.end.markdown"
},
{
"foreground": "ffc600",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "markup.underline.link.image.markdown"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.html"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.event.html"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.class.html"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.style.html"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.id.html"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.tag.jade"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "constant.other.symbol.ruby"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": "entity.other.attribute-name.jsx"
},
{
"foreground": "ffc600",
"fontStyle": "italic",
"token": ""
}
],
"colors": {
"editor.foreground": "#FFFFFF",
"editor.background": "#193549",
"editor.selectionBackground": "#0050a4",
"editor.lineHighlightBackground": "#1f4662",
"editorCursor.foreground": "#ffc600",
"editorWhitespace.foreground": "#7f7f7fb2",
"editorIndentGuide.background": "#3b5364",
"editorIndentGuide.activeBackground": "#ffc600"
}
}

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "F9F9F9",
"token": ""
},
{
"foreground": "5a525f",
"fontStyle": "italic",

View File

@ -0,0 +1,208 @@
{
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "282a36",
"token": ""
},
{
"foreground": "6272a4",
"token": "comment"
},
{
"foreground": "f1fa8c",
"token": "string"
},
{
"foreground": "bd93f9",
"token": "constant.numeric"
},
{
"foreground": "bd93f9",
"token": "constant.language"
},
{
"foreground": "bd93f9",
"token": "constant.character"
},
{
"foreground": "bd93f9",
"token": "constant.other"
},
{
"foreground": "ffb86c",
"token": "variable.other.readwrite.instance"
},
{
"foreground": "ff79c6",
"token": "constant.character.escaped"
},
{
"foreground": "ff79c6",
"token": "constant.character.escape"
},
{
"foreground": "ff79c6",
"token": "string source"
},
{
"foreground": "ff79c6",
"token": "string source.ruby"
},
{
"foreground": "ff79c6",
"token": "keyword"
},
{
"foreground": "ff79c6",
"token": "storage"
},
{
"foreground": "8be9fd",
"fontStyle": "italic",
"token": "storage.type"
},
{
"foreground": "50fa7b",
"fontStyle": "underline",
"token": "entity.name.class"
},
{
"foreground": "50fa7b",
"fontStyle": "italic underline",
"token": "entity.other.inherited-class"
},
{
"foreground": "50fa7b",
"token": "entity.name.function"
},
{
"foreground": "ffb86c",
"fontStyle": "italic",
"token": "variable.parameter"
},
{
"foreground": "ff79c6",
"token": "entity.name.tag"
},
{
"foreground": "50fa7b",
"token": "entity.other.attribute-name"
},
{
"foreground": "8be9fd",
"token": "support.function"
},
{
"foreground": "6be5fd",
"token": "support.constant"
},
{
"foreground": "66d9ef",
"fontStyle": " italic",
"token": "support.type"
},
{
"foreground": "66d9ef",
"fontStyle": " italic",
"token": "support.class"
},
{
"foreground": "f8f8f0",
"background": "ff79c6",
"token": "invalid"
},
{
"foreground": "f8f8f0",
"background": "bd93f9",
"token": "invalid.deprecated"
},
{
"foreground": "cfcfc2",
"token": "meta.structure.dictionary.json string.quoted.double.json"
},
{
"foreground": "6272a4",
"token": "meta.diff"
},
{
"foreground": "6272a4",
"token": "meta.diff.header"
},
{
"foreground": "ff79c6",
"token": "markup.deleted"
},
{
"foreground": "50fa7b",
"token": "markup.inserted"
},
{
"foreground": "e6db74",
"token": "markup.changed"
},
{
"foreground": "bd93f9",
"token": "constant.numeric.line-number.find-in-files - match"
},
{
"foreground": "e6db74",
"token": "entity.name.filename"
},
{
"foreground": "f83333",
"token": "message.error"
},
{
"foreground": "eeeeee",
"token": "punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"
},
{
"foreground": "eeeeee",
"token": "punctuation.definition.string.end.json - meta.structure.dictionary.value.json"
},
{
"foreground": "8be9fd",
"token": "meta.structure.dictionary.json string.quoted.double.json"
},
{
"foreground": "f1fa8c",
"token": "meta.structure.dictionary.value.json string.quoted.double.json"
},
{
"foreground": "50fa7b",
"token": "meta meta meta meta meta meta meta.structure.dictionary.value string"
},
{
"foreground": "ffb86c",
"token": "meta meta meta meta meta meta.structure.dictionary.value string"
},
{
"foreground": "ff79c6",
"token": "meta meta meta meta meta.structure.dictionary.value string"
},
{
"foreground": "bd93f9",
"token": "meta meta meta meta.structure.dictionary.value string"
},
{
"foreground": "50fa7b",
"token": "meta meta meta.structure.dictionary.value string"
},
{
"foreground": "ffb86c",
"token": "meta meta.structure.dictionary.value string"
}
],
"colors": {
"editor.foreground": "#f8f8f2",
"editor.background": "#282a36",
"editor.selectionBackground": "#44475a",
"editor.lineHighlightBackground": "#44475a",
"editorCursor.foreground": "#f8f8f0",
"editorWhitespace.foreground": "#3B3A32",
"editorIndentGuide.activeBackground": "#9D550FB0",
"editor.selectionHighlightBorder": "#222218"
}
}

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"foreground": "000000",
"token": "text"

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"foreground": "00b418",
"token": "comment"

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "2A211C",
"token": ""
},
{
"foreground": "0066ff",
"fontStyle": "italic",

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "F8F8FF",
"token": ""
},
{
"foreground": "999988",
"fontStyle": "italic",

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"foreground": "919191",
"token": "comment"

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "323232",
"token": ""
},
{
"foreground": "ffffff",
"token": "text"

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "EEEEEEEB",
"token": ""
},
{
"foreground": "009933",
"token": "string"

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "E8E9E8",
"token": ""
},
{
"foreground": "949494e8",
"background": "dcdcdc8f",

View File

@ -2,6 +2,10 @@
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "0B0A09",
"token": ""
},
{
"foreground": "d27518c2",
"token": "constant"

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "E8E9E8",
"token": ""
},
{
"foreground": "949494e8",
"background": "dcdcdc8f",

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "FFFFFF",
"token": ""
},
{
"foreground": "8c868f",
"token": "comment"

View File

@ -2,6 +2,10 @@
"base": "vs",
"inherit": true,
"rules": [
{
"background": "969696",
"token": ""
},
{
"foreground": "8d2e75",
"fontStyle": "italic",

Some files were not shown because too many files have changed in this diff Show More