diff --git a/Makefile b/Makefile
index 1f1a358..dc5e01b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,11 @@
-SOURCE = *.ts
-TESTS = test/*.js
+SOURCE = *.ts
+TESTS = test/*.js
REPORTER = dot
typescript:
./node_modules/.bin/tsc -p .
- cat ./umd.header ./dist/ansi_up.js ./umd.footer > ansi_up.js
- mv ./dist/ansi_up.js ./dist/ansi_up.js.include
- node ./scripts/fix-typings.js
-
+
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--require should \
diff --git a/ansi_up.d.ts b/ansi_up.d.ts
index 706e29c..2a1ad3c 100644
--- a/ansi_up.d.ts
+++ b/ansi_up.d.ts
@@ -1,27 +1,3 @@
-interface AU_Color {
- rgb: number[];
- class_name: string;
-}
-interface TextWithAttr {
- fg: AU_Color;
- bg: AU_Color;
- bold: boolean;
- text: string;
-}
-declare enum PacketKind {
- EOS = 0,
- Text = 1,
- Incomplete = 2,
- ESC = 3,
- Unknown = 4,
- SGR = 5,
- OSCURL = 6
-}
-interface TextPacket {
- kind: PacketKind;
- text: string;
- url: string;
-}
export declare class AnsiUp {
VERSION: string;
private ansi_colors;
@@ -29,25 +5,29 @@ export declare class AnsiUp {
private fg;
private bg;
private bold;
+ private italic;
+ private underline;
private _use_classes;
- private _escape_for_html;
private _csi_regex;
private _osc_st;
private _osc_regex;
private _url_whitelist;
+ private _escape_html;
private _buffer;
constructor();
- use_classes: boolean;
- escape_for_html: boolean;
- url_whitelist: {};
+ set use_classes(arg: boolean);
+ get use_classes(): boolean;
+ set url_whitelist(arg: {});
+ get url_whitelist(): {};
+ set escape_html(arg: boolean);
+ get escape_html(): boolean;
private setup_palettes;
private escape_txt_for_html;
- append_buffer(txt: string): void;
- get_next_packet(): TextPacket;
+ private append_buffer;
+ private get_next_packet;
ansi_to_html(txt: string): string;
private with_state;
private process_ansi;
- transform_to_html(fragment: TextWithAttr): string;
+ private transform_to_html;
private process_hyperlink;
}
-export {};
diff --git a/ansi_up.js b/ansi_up.js
index 4e888a6..99947bd 100644
--- a/ansi_up.js
+++ b/ansi_up.js
@@ -1,22 +1,3 @@
-/* ansi_up.js
- * author : Dru Nelson
- * license : MIT
- * http://github.com/drudru/ansi_up
- */
-(function (root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['exports'], factory);
- } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
- // CommonJS
- factory(exports);
- } else {
- // Browser globals
- var exp = {};
- factory(exp);
- root.AnsiUp = exp.default;
- }
-}(this, function (exports) {
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
@@ -32,8 +13,8 @@ var PacketKind;
PacketKind[PacketKind["SGR"] = 5] = "SGR";
PacketKind[PacketKind["OSCURL"] = 6] = "OSCURL";
})(PacketKind || (PacketKind = {}));
-var AnsiUp = (function () {
- function AnsiUp() {
+export class AnsiUp {
+ constructor() {
this.VERSION = "5.2.1";
this.setup_palettes();
this._use_classes = false;
@@ -45,38 +26,25 @@ var AnsiUp = (function () {
this._url_whitelist = { 'http': 1, 'https': 1 };
this._escape_html = true;
}
- Object.defineProperty(AnsiUp.prototype, "use_classes", {
- get: function () {
- return this._use_classes;
- },
- set: function (arg) {
- this._use_classes = arg;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(AnsiUp.prototype, "url_whitelist", {
- get: function () {
- return this._url_whitelist;
- },
- set: function (arg) {
- this._url_whitelist = arg;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(AnsiUp.prototype, "escape_html", {
- get: function () {
- return this._escape_html;
- },
- set: function (arg) {
- this._escape_html = arg;
- },
- enumerable: false,
- configurable: true
- });
- AnsiUp.prototype.setup_palettes = function () {
- var _this = this;
+ set use_classes(arg) {
+ this._use_classes = arg;
+ }
+ get use_classes() {
+ return this._use_classes;
+ }
+ set url_whitelist(arg) {
+ this._url_whitelist = arg;
+ }
+ get url_whitelist() {
+ return this._url_whitelist;
+ }
+ set escape_html(arg) {
+ this._escape_html = arg;
+ }
+ get escape_html() {
+ return this._escape_html;
+ }
+ setup_palettes() {
this.ansi_colors =
[
[
@@ -101,30 +69,30 @@ var AnsiUp = (function () {
]
];
this.palette_256 = [];
- this.ansi_colors.forEach(function (palette) {
- palette.forEach(function (rec) {
- _this.palette_256.push(rec);
+ this.ansi_colors.forEach(palette => {
+ palette.forEach(rec => {
+ this.palette_256.push(rec);
});
});
- var levels = [0, 95, 135, 175, 215, 255];
- for (var r = 0; r < 6; ++r) {
- for (var g = 0; g < 6; ++g) {
- for (var b = 0; b < 6; ++b) {
- var col = { rgb: [levels[r], levels[g], levels[b]], class_name: 'truecolor' };
+ let levels = [0, 95, 135, 175, 215, 255];
+ for (let r = 0; r < 6; ++r) {
+ for (let g = 0; g < 6; ++g) {
+ for (let b = 0; b < 6; ++b) {
+ let col = { rgb: [levels[r], levels[g], levels[b]], class_name: 'truecolor' };
this.palette_256.push(col);
}
}
}
- var grey_level = 8;
- for (var i = 0; i < 24; ++i, grey_level += 10) {
- var gry = { rgb: [grey_level, grey_level, grey_level], class_name: 'truecolor' };
+ let grey_level = 8;
+ for (let i = 0; i < 24; ++i, grey_level += 10) {
+ let gry = { rgb: [grey_level, grey_level, grey_level], class_name: 'truecolor' };
this.palette_256.push(gry);
}
- };
- AnsiUp.prototype.escape_txt_for_html = function (txt) {
+ }
+ escape_txt_for_html(txt) {
if (!this._escape_html)
return txt;
- return txt.replace(/[&<>"']/gm, function (str) {
+ return txt.replace(/[&<>"']/gm, (str) => {
if (str === "&")
return "&";
if (str === "<")
@@ -136,12 +104,12 @@ var AnsiUp = (function () {
if (str === "'")
return "'";
});
- };
- AnsiUp.prototype.append_buffer = function (txt) {
+ }
+ append_buffer(txt) {
var str = this._buffer + txt;
this._buffer = str;
- };
- AnsiUp.prototype.get_next_packet = function () {
+ }
+ get_next_packet() {
var pkt = {
kind: PacketKind.EOS,
text: '',
@@ -177,9 +145,9 @@ var AnsiUp = (function () {
}
if (next_char == '[') {
if (!this._csi_regex) {
- this._csi_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \u001B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \u001B[ # CSI\n [ -~]* # anything legal\n ([\0-\u001F:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
+ this._csi_regex = rgx(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \u001B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \u001B[ # CSI\n [ -~]* # anything legal\n ([\0-\u001F:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "])));
}
- var match = this._buffer.match(this._csi_regex);
+ let match = this._buffer.match(this._csi_regex);
if (match === null) {
pkt.kind = PacketKind.Incomplete;
return pkt;
@@ -212,16 +180,16 @@ var AnsiUp = (function () {
return pkt;
}
if (!this._osc_st) {
- this._osc_st = rgxG(__makeTemplateObject(["\n (?: # legal sequence\n (\u001B\\) # ESC | # alternate\n (\u0007) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\u0006] # anything illegal\n | # alternate\n [\b-\u001A] # anything illegal\n | # alternate\n [\u001C-\u001F] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]));
+ this._osc_st = rgxG(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n (?: # legal sequence\n (\u001B\\) # ESC | # alternate\n (\u0007) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\u0006] # anything illegal\n | # alternate\n [\b-\u001A] # anything illegal\n | # alternate\n [\u001C-\u001F] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])));
}
this._osc_st.lastIndex = 0;
{
- var match_1 = this._osc_st.exec(this._buffer);
- if (match_1 === null) {
+ let match = this._osc_st.exec(this._buffer);
+ if (match === null) {
pkt.kind = PacketKind.Incomplete;
return pkt;
}
- if (match_1[3]) {
+ if (match[3]) {
pkt.kind = PacketKind.ESC;
pkt.text = this._buffer.slice(0, 1);
this._buffer = this._buffer.slice(1);
@@ -229,12 +197,12 @@ var AnsiUp = (function () {
}
}
{
- var match_2 = this._osc_st.exec(this._buffer);
- if (match_2 === null) {
+ let match = this._osc_st.exec(this._buffer);
+ if (match === null) {
pkt.kind = PacketKind.Incomplete;
return pkt;
}
- if (match_2[3]) {
+ if (match[3]) {
pkt.kind = PacketKind.ESC;
pkt.text = this._buffer.slice(0, 1);
this._buffer = this._buffer.slice(1);
@@ -242,9 +210,9 @@ var AnsiUp = (function () {
}
}
if (!this._osc_regex) {
- this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
+ this._osc_regex = rgx(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "])));
}
- var match = this._buffer.match(this._osc_regex);
+ let match = this._buffer.match(this._osc_regex);
if (match === null) {
pkt.kind = PacketKind.ESC;
pkt.text = this._buffer.slice(0, 1);
@@ -264,8 +232,8 @@ var AnsiUp = (function () {
return pkt;
}
}
- };
- AnsiUp.prototype.ansi_to_html = function (txt) {
+ }
+ ansi_to_html(txt) {
this.append_buffer(txt);
var blocks = [];
while (true) {
@@ -284,15 +252,15 @@ var AnsiUp = (function () {
blocks.push(this.process_hyperlink(packet));
}
return blocks.join("");
- };
- AnsiUp.prototype.with_state = function (pkt) {
+ }
+ with_state(pkt) {
return { bold: this.bold, italic: this.italic, underline: this.underline, fg: this.fg, bg: this.bg, text: pkt.text };
- };
- AnsiUp.prototype.process_ansi = function (pkt) {
- var sgr_cmds = pkt.text.split(';');
+ }
+ process_ansi(pkt) {
+ let sgr_cmds = pkt.text.split(';');
while (sgr_cmds.length > 0) {
- var sgr_cmd_str = sgr_cmds.shift();
- var num = parseInt(sgr_cmd_str, 10);
+ let sgr_cmd_str = sgr_cmds.shift();
+ let num = parseInt(sgr_cmd_str, 10);
if (isNaN(num) || num === 0) {
this.fg = this.bg = null;
this.bold = false;
@@ -337,10 +305,10 @@ var AnsiUp = (function () {
}
else if (num === 38 || num === 48) {
if (sgr_cmds.length > 0) {
- var is_foreground = (num === 38);
- var mode_cmd = sgr_cmds.shift();
+ let is_foreground = (num === 38);
+ let mode_cmd = sgr_cmds.shift();
if (mode_cmd === '5' && sgr_cmds.length > 0) {
- var palette_index = parseInt(sgr_cmds.shift(), 10);
+ let palette_index = parseInt(sgr_cmds.shift(), 10);
if (palette_index >= 0 && palette_index <= 255) {
if (is_foreground)
this.fg = this.palette_256[palette_index];
@@ -349,11 +317,11 @@ var AnsiUp = (function () {
}
}
if (mode_cmd === '2' && sgr_cmds.length > 2) {
- var r = parseInt(sgr_cmds.shift(), 10);
- var g = parseInt(sgr_cmds.shift(), 10);
- var b = parseInt(sgr_cmds.shift(), 10);
+ let r = parseInt(sgr_cmds.shift(), 10);
+ let g = parseInt(sgr_cmds.shift(), 10);
+ let b = parseInt(sgr_cmds.shift(), 10);
if ((r >= 0 && r <= 255) && (g >= 0 && g <= 255) && (b >= 0 && b <= 255)) {
- var c = { rgb: [r, g, b], class_name: 'truecolor' };
+ let c = { rgb: [r, g, b], class_name: 'truecolor' };
if (is_foreground)
this.fg = c;
else
@@ -363,18 +331,18 @@ var AnsiUp = (function () {
}
}
}
- };
- AnsiUp.prototype.transform_to_html = function (fragment) {
- var txt = fragment.text;
+ }
+ transform_to_html(fragment) {
+ let txt = fragment.text;
if (txt.length === 0)
return txt;
txt = this.escape_txt_for_html(txt);
if (!fragment.bold && !fragment.italic && !fragment.underline && fragment.fg === null && fragment.bg === null)
return txt;
- var styles = [];
- var classes = [];
- var fg = fragment.fg;
- var bg = fragment.bg;
+ let styles = [];
+ let classes = [];
+ let fg = fragment.fg;
+ let bg = fragment.bg;
if (fragment.bold)
styles.push('font-weight:bold');
if (fragment.italic)
@@ -383,69 +351,57 @@ var AnsiUp = (function () {
styles.push('text-decoration:underline');
if (!this._use_classes) {
if (fg)
- styles.push("color:rgb(" + fg.rgb.join(',') + ")");
+ styles.push(`color:rgb(${fg.rgb.join(',')})`);
if (bg)
- styles.push("background-color:rgb(" + bg.rgb + ")");
+ styles.push(`background-color:rgb(${bg.rgb})`);
}
else {
if (fg) {
if (fg.class_name !== 'truecolor') {
- classes.push(fg.class_name + "-fg");
+ classes.push(`${fg.class_name}-fg`);
}
else {
- styles.push("color:rgb(" + fg.rgb.join(',') + ")");
+ styles.push(`color:rgb(${fg.rgb.join(',')})`);
}
}
if (bg) {
if (bg.class_name !== 'truecolor') {
- classes.push(bg.class_name + "-bg");
+ classes.push(`${bg.class_name}-bg`);
}
else {
- styles.push("background-color:rgb(" + bg.rgb.join(',') + ")");
+ styles.push(`background-color:rgb(${bg.rgb.join(',')})`);
}
}
}
- var class_string = '';
- var style_string = '';
+ let class_string = '';
+ let style_string = '';
if (classes.length)
- class_string = " class=\"" + classes.join(' ') + "\"";
+ class_string = ` class="${classes.join(' ')}"`;
if (styles.length)
- style_string = " style=\"" + styles.join(';') + "\"";
- return "" + txt + "";
- };
+ style_string = ` style="${styles.join(';')}"`;
+ return `${txt}`;
+ }
;
- AnsiUp.prototype.process_hyperlink = function (pkt) {
- var parts = pkt.url.split(':');
+ process_hyperlink(pkt) {
+ let parts = pkt.url.split(':');
if (parts.length < 1)
return '';
if (!this._url_whitelist[parts[0]])
return '';
- var result = "" + this.escape_txt_for_html(pkt.text) + "";
+ let result = `${this.escape_txt_for_html(pkt.text)}`;
return result;
- };
- return AnsiUp;
-}());
-function rgx(tmplObj) {
- var subst = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- subst[_i - 1] = arguments[_i];
}
- var regexText = tmplObj.raw[0];
- var wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;
- var txt2 = regexText.replace(wsrgx, '');
+}
+function rgx(tmplObj, ...subst) {
+ let regexText = tmplObj.raw[0];
+ let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;
+ let txt2 = regexText.replace(wsrgx, '');
return new RegExp(txt2);
}
-function rgxG(tmplObj) {
- var subst = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- subst[_i - 1] = arguments[_i];
- }
- var regexText = tmplObj.raw[0];
- var wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;
- var txt2 = regexText.replace(wsrgx, '');
+function rgxG(tmplObj, ...subst) {
+ let regexText = tmplObj.raw[0];
+ let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;
+ let txt2 = regexText.replace(wsrgx, '');
return new RegExp(txt2, 'g');
}
-//# sourceMappingURL=ansi_up.js.map
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.default = AnsiUp;
-}));
+var templateObject_1, templateObject_2, templateObject_3;
diff --git a/ansi_up.js.map b/ansi_up.js.map
index 5dbac94..d42006e 100644
--- a/ansi_up.js.map
+++ b/ansi_up.js.map
@@ -1 +1 @@
-{"version":3,"file":"ansi_up.js","sourceRoot":"","sources":["ansi_up.ts"],"names":[],"mappings":"AAMA,YAAY,CAAC;AAwBb,IAAK,UAQJ;AARD,WAAK,UAAU;IACX,yCAAG,CAAA;IACH,2CAAI,CAAA;IACJ,uDAAU,CAAA;IACV,yCAAG,CAAA;IACH,iDAAO,CAAA;IACP,yCAAG,CAAA;IACH,+CAAM,CAAA;AACV,CAAC,EARI,UAAU,KAAV,UAAU,QAQd;AAYD,MAAM,OAAO,MAAM;IA6Bf;QA3BA,YAAO,GAAG,OAAO,CAAC;QA8Bd,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;QAEzB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAElB,IAAI,CAAC,cAAc,GAAG,EAAE,MAAM,EAAC,CAAC,EAAE,OAAO,EAAC,CAAC,EAAE,CAAC;IAClD,CAAC;IAED,IAAI,WAAW,CAAC,GAAW;QAEvB,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;IAC5B,CAAC;IAED,IAAI,WAAW;QAEX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IA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G,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAChB,OAAO,EAAE,CAAC;QAEd,IAAI,CAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC/B,OAAO,EAAE,CAAC;QAEd,IAAI,MAAM,GAAG,YAAY,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QACxG,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAOD,SAAS,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK;IAE1B,IAAI,SAAS,GAAU,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAGtC,IAAI,KAAK,GAAG,gCAAgC,CAAC;IAC7C,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAID,SAAS,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK;IAE3B,IAAI,SAAS,GAAU,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAGtC,IAAI,KAAK,GAAG,gCAAgC,CAAC;IAC7C,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC"}
\ No newline at end of file
diff --git a/ansi_up.ts b/ansi_up.ts
index a74ac9d..be5b353 100644
--- a/ansi_up.ts
+++ b/ansi_up.ts
@@ -50,7 +50,7 @@ interface TextPacket {
// MAIN CLASS
//
-class AnsiUp
+export class AnsiUp
{
VERSION = "5.2.1";
diff --git a/dist/ansi_up.d.ts b/dist/ansi_up.d.ts
deleted file mode 100644
index b0c7667..0000000
--- a/dist/ansi_up.d.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-export interface AU_Color {
- rgb: number[];
- class_name: string;
-}
-export interface TextWithAttr {
- fg: AU_Color;
- bg: AU_Color;
- bold: boolean;
- italic: boolean;
- underline: boolean;
- text: string;
-}
-declare enum PacketKind {
- EOS = 0,
- Text = 1,
- Incomplete = 2,
- ESC = 3,
- Unknown = 4,
- SGR = 5,
- OSCURL = 6
-}
-export interface TextPacket {
- kind: PacketKind;
- text: string;
- url: string;
-}
-export default class AnsiUp {
- VERSION: string;
- private ansi_colors;
- private palette_256;
- private fg;
- private bg;
- private bold;
- private italic;
- private underline;
- private _use_classes;
- private _csi_regex;
- private _osc_st;
- private _osc_regex;
- private _url_whitelist;
- private _escape_html;
- private _buffer;
- constructor();
- set use_classes(arg: boolean);
- get use_classes(): boolean;
- set url_whitelist(arg: {});
- get url_whitelist(): {};
- set escape_html(arg: boolean);
- get escape_html(): boolean;
- private setup_palettes;
- private escape_txt_for_html;
- private append_buffer;
- private get_next_packet;
- ansi_to_html(txt: string): string;
- private with_state;
- private process_ansi;
- private transform_to_html;
- private process_hyperlink;
-}
-declare function rgx(tmplObj: any, ...subst: any[]): RegExp;
-declare function rgxG(tmplObj: any, ...subst: any[]): RegExp;
diff --git a/dist/ansi_up.js.include b/dist/ansi_up.js.include
deleted file mode 100644
index b2bfd74..0000000
--- a/dist/ansi_up.js.include
+++ /dev/null
@@ -1,429 +0,0 @@
-"use strict";
-var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
- return cooked;
-};
-var PacketKind;
-(function (PacketKind) {
- PacketKind[PacketKind["EOS"] = 0] = "EOS";
- PacketKind[PacketKind["Text"] = 1] = "Text";
- PacketKind[PacketKind["Incomplete"] = 2] = "Incomplete";
- PacketKind[PacketKind["ESC"] = 3] = "ESC";
- PacketKind[PacketKind["Unknown"] = 4] = "Unknown";
- PacketKind[PacketKind["SGR"] = 5] = "SGR";
- PacketKind[PacketKind["OSCURL"] = 6] = "OSCURL";
-})(PacketKind || (PacketKind = {}));
-var AnsiUp = (function () {
- function AnsiUp() {
- this.VERSION = "5.2.1";
- this.setup_palettes();
- this._use_classes = false;
- this.bold = false;
- this.italic = false;
- this.underline = false;
- this.fg = this.bg = null;
- this._buffer = '';
- this._url_whitelist = { 'http': 1, 'https': 1 };
- this._escape_html = true;
- }
- Object.defineProperty(AnsiUp.prototype, "use_classes", {
- get: function () {
- return this._use_classes;
- },
- set: function (arg) {
- this._use_classes = arg;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(AnsiUp.prototype, "url_whitelist", {
- get: function () {
- return this._url_whitelist;
- },
- set: function (arg) {
- this._url_whitelist = arg;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(AnsiUp.prototype, "escape_html", {
- get: function () {
- return this._escape_html;
- },
- set: function (arg) {
- this._escape_html = arg;
- },
- enumerable: false,
- configurable: true
- });
- AnsiUp.prototype.setup_palettes = function () {
- var _this = this;
- this.ansi_colors =
- [
- [
- { rgb: [0, 0, 0], class_name: "ansi-black" },
- { rgb: [187, 0, 0], class_name: "ansi-red" },
- { rgb: [0, 187, 0], class_name: "ansi-green" },
- { rgb: [187, 187, 0], class_name: "ansi-yellow" },
- { rgb: [0, 0, 187], class_name: "ansi-blue" },
- { rgb: [187, 0, 187], class_name: "ansi-magenta" },
- { rgb: [0, 187, 187], class_name: "ansi-cyan" },
- { rgb: [255, 255, 255], class_name: "ansi-white" }
- ],
- [
- { rgb: [85, 85, 85], class_name: "ansi-bright-black" },
- { rgb: [255, 85, 85], class_name: "ansi-bright-red" },
- { rgb: [0, 255, 0], class_name: "ansi-bright-green" },
- { rgb: [255, 255, 85], class_name: "ansi-bright-yellow" },
- { rgb: [85, 85, 255], class_name: "ansi-bright-blue" },
- { rgb: [255, 85, 255], class_name: "ansi-bright-magenta" },
- { rgb: [85, 255, 255], class_name: "ansi-bright-cyan" },
- { rgb: [255, 255, 255], class_name: "ansi-bright-white" }
- ]
- ];
- this.palette_256 = [];
- this.ansi_colors.forEach(function (palette) {
- palette.forEach(function (rec) {
- _this.palette_256.push(rec);
- });
- });
- var levels = [0, 95, 135, 175, 215, 255];
- for (var r = 0; r < 6; ++r) {
- for (var g = 0; g < 6; ++g) {
- for (var b = 0; b < 6; ++b) {
- var col = { rgb: [levels[r], levels[g], levels[b]], class_name: 'truecolor' };
- this.palette_256.push(col);
- }
- }
- }
- var grey_level = 8;
- for (var i = 0; i < 24; ++i, grey_level += 10) {
- var gry = { rgb: [grey_level, grey_level, grey_level], class_name: 'truecolor' };
- this.palette_256.push(gry);
- }
- };
- AnsiUp.prototype.escape_txt_for_html = function (txt) {
- if (!this._escape_html)
- return txt;
- return txt.replace(/[&<>"']/gm, function (str) {
- if (str === "&")
- return "&";
- if (str === "<")
- return "<";
- if (str === ">")
- return ">";
- if (str === "\"")
- return """;
- if (str === "'")
- return "'";
- });
- };
- AnsiUp.prototype.append_buffer = function (txt) {
- var str = this._buffer + txt;
- this._buffer = str;
- };
- AnsiUp.prototype.get_next_packet = function () {
- var pkt = {
- kind: PacketKind.EOS,
- text: '',
- url: ''
- };
- var len = this._buffer.length;
- if (len == 0)
- return pkt;
- var pos = this._buffer.indexOf("\x1B");
- if (pos == -1) {
- pkt.kind = PacketKind.Text;
- pkt.text = this._buffer;
- this._buffer = '';
- return pkt;
- }
- if (pos > 0) {
- pkt.kind = PacketKind.Text;
- pkt.text = this._buffer.slice(0, pos);
- this._buffer = this._buffer.slice(pos);
- return pkt;
- }
- if (pos == 0) {
- if (len < 3) {
- pkt.kind = PacketKind.Incomplete;
- return pkt;
- }
- var next_char = this._buffer.charAt(1);
- if ((next_char != '[') && (next_char != ']') && (next_char != '(')) {
- pkt.kind = PacketKind.ESC;
- pkt.text = this._buffer.slice(0, 1);
- this._buffer = this._buffer.slice(1);
- return pkt;
- }
- if (next_char == '[') {
- if (!this._csi_regex) {
- this._csi_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \u001B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \u001B[ # CSI\n [ -~]* # anything legal\n ([\0-\u001F:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
- }
- var match = this._buffer.match(this._csi_regex);
- if (match === null) {
- pkt.kind = PacketKind.Incomplete;
- return pkt;
- }
- if (match[4]) {
- pkt.kind = PacketKind.ESC;
- pkt.text = this._buffer.slice(0, 1);
- this._buffer = this._buffer.slice(1);
- return pkt;
- }
- if ((match[1] != '') || (match[3] != 'm'))
- pkt.kind = PacketKind.Unknown;
- else
- pkt.kind = PacketKind.SGR;
- pkt.text = match[2];
- var rpos = match[0].length;
- this._buffer = this._buffer.slice(rpos);
- return pkt;
- }
- else if (next_char == ']') {
- if (len < 4) {
- pkt.kind = PacketKind.Incomplete;
- return pkt;
- }
- if ((this._buffer.charAt(2) != '8')
- || (this._buffer.charAt(3) != ';')) {
- pkt.kind = PacketKind.ESC;
- pkt.text = this._buffer.slice(0, 1);
- this._buffer = this._buffer.slice(1);
- return pkt;
- }
- if (!this._osc_st) {
- this._osc_st = rgxG(__makeTemplateObject(["\n (?: # legal sequence\n (\u001B\\) # ESC | # alternate\n (\u0007) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\u0006] # anything illegal\n | # alternate\n [\b-\u001A] # anything illegal\n | # alternate\n [\u001C-\u001F] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]));
- }
- this._osc_st.lastIndex = 0;
- {
- var match_1 = this._osc_st.exec(this._buffer);
- if (match_1 === null) {
- pkt.kind = PacketKind.Incomplete;
- return pkt;
- }
- if (match_1[3]) {
- pkt.kind = PacketKind.ESC;
- pkt.text = this._buffer.slice(0, 1);
- this._buffer = this._buffer.slice(1);
- return pkt;
- }
- }
- {
- var match_2 = this._osc_st.exec(this._buffer);
- if (match_2 === null) {
- pkt.kind = PacketKind.Incomplete;
- return pkt;
- }
- if (match_2[3]) {
- pkt.kind = PacketKind.ESC;
- pkt.text = this._buffer.slice(0, 1);
- this._buffer = this._buffer.slice(1);
- return pkt;
- }
- }
- if (!this._osc_regex) {
- this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
- }
- var match = this._buffer.match(this._osc_regex);
- if (match === null) {
- pkt.kind = PacketKind.ESC;
- pkt.text = this._buffer.slice(0, 1);
- this._buffer = this._buffer.slice(1);
- return pkt;
- }
- pkt.kind = PacketKind.OSCURL;
- pkt.url = match[1];
- pkt.text = match[2];
- var rpos = match[0].length;
- this._buffer = this._buffer.slice(rpos);
- return pkt;
- }
- else if (next_char == '(') {
- pkt.kind = PacketKind.Unknown;
- this._buffer = this._buffer.slice(3);
- return pkt;
- }
- }
- };
- AnsiUp.prototype.ansi_to_html = function (txt) {
- this.append_buffer(txt);
- var blocks = [];
- while (true) {
- var packet = this.get_next_packet();
- if ((packet.kind == PacketKind.EOS)
- || (packet.kind == PacketKind.Incomplete))
- break;
- if ((packet.kind == PacketKind.ESC)
- || (packet.kind == PacketKind.Unknown))
- continue;
- if (packet.kind == PacketKind.Text)
- blocks.push(this.transform_to_html(this.with_state(packet)));
- else if (packet.kind == PacketKind.SGR)
- this.process_ansi(packet);
- else if (packet.kind == PacketKind.OSCURL)
- blocks.push(this.process_hyperlink(packet));
- }
- return blocks.join("");
- };
- AnsiUp.prototype.with_state = function (pkt) {
- return { bold: this.bold, italic: this.italic, underline: this.underline, fg: this.fg, bg: this.bg, text: pkt.text };
- };
- AnsiUp.prototype.process_ansi = function (pkt) {
- var sgr_cmds = pkt.text.split(';');
- while (sgr_cmds.length > 0) {
- var sgr_cmd_str = sgr_cmds.shift();
- var num = parseInt(sgr_cmd_str, 10);
- if (isNaN(num) || num === 0) {
- this.fg = this.bg = null;
- this.bold = false;
- this.italic = false;
- this.underline = false;
- }
- else if (num === 1) {
- this.bold = true;
- }
- else if (num === 3) {
- this.italic = true;
- }
- else if (num === 4) {
- this.underline = true;
- }
- else if (num === 22) {
- this.bold = false;
- }
- else if (num === 23) {
- this.italic = false;
- }
- else if (num === 24) {
- this.underline = false;
- }
- else if (num === 39) {
- this.fg = null;
- }
- else if (num === 49) {
- this.bg = null;
- }
- else if ((num >= 30) && (num < 38)) {
- this.fg = this.ansi_colors[0][(num - 30)];
- }
- else if ((num >= 40) && (num < 48)) {
- this.bg = this.ansi_colors[0][(num - 40)];
- }
- else if ((num >= 90) && (num < 98)) {
- this.fg = this.ansi_colors[1][(num - 90)];
- }
- else if ((num >= 100) && (num < 108)) {
- this.bg = this.ansi_colors[1][(num - 100)];
- }
- else if (num === 38 || num === 48) {
- if (sgr_cmds.length > 0) {
- var is_foreground = (num === 38);
- var mode_cmd = sgr_cmds.shift();
- if (mode_cmd === '5' && sgr_cmds.length > 0) {
- var palette_index = parseInt(sgr_cmds.shift(), 10);
- if (palette_index >= 0 && palette_index <= 255) {
- if (is_foreground)
- this.fg = this.palette_256[palette_index];
- else
- this.bg = this.palette_256[palette_index];
- }
- }
- if (mode_cmd === '2' && sgr_cmds.length > 2) {
- var r = parseInt(sgr_cmds.shift(), 10);
- var g = parseInt(sgr_cmds.shift(), 10);
- var b = parseInt(sgr_cmds.shift(), 10);
- if ((r >= 0 && r <= 255) && (g >= 0 && g <= 255) && (b >= 0 && b <= 255)) {
- var c = { rgb: [r, g, b], class_name: 'truecolor' };
- if (is_foreground)
- this.fg = c;
- else
- this.bg = c;
- }
- }
- }
- }
- }
- };
- AnsiUp.prototype.transform_to_html = function (fragment) {
- var txt = fragment.text;
- if (txt.length === 0)
- return txt;
- txt = this.escape_txt_for_html(txt);
- if (!fragment.bold && !fragment.italic && !fragment.underline && fragment.fg === null && fragment.bg === null)
- return txt;
- var styles = [];
- var classes = [];
- var fg = fragment.fg;
- var bg = fragment.bg;
- if (fragment.bold)
- styles.push('font-weight:bold');
- if (fragment.italic)
- styles.push('font-style:italic');
- if (fragment.underline)
- styles.push('text-decoration:underline');
- if (!this._use_classes) {
- if (fg)
- styles.push("color:rgb(" + fg.rgb.join(',') + ")");
- if (bg)
- styles.push("background-color:rgb(" + bg.rgb + ")");
- }
- else {
- if (fg) {
- if (fg.class_name !== 'truecolor') {
- classes.push(fg.class_name + "-fg");
- }
- else {
- styles.push("color:rgb(" + fg.rgb.join(',') + ")");
- }
- }
- if (bg) {
- if (bg.class_name !== 'truecolor') {
- classes.push(bg.class_name + "-bg");
- }
- else {
- styles.push("background-color:rgb(" + bg.rgb.join(',') + ")");
- }
- }
- }
- var class_string = '';
- var style_string = '';
- if (classes.length)
- class_string = " class=\"" + classes.join(' ') + "\"";
- if (styles.length)
- style_string = " style=\"" + styles.join(';') + "\"";
- return "" + txt + "";
- };
- ;
- AnsiUp.prototype.process_hyperlink = function (pkt) {
- var parts = pkt.url.split(':');
- if (parts.length < 1)
- return '';
- if (!this._url_whitelist[parts[0]])
- return '';
- var result = "" + this.escape_txt_for_html(pkt.text) + "";
- return result;
- };
- return AnsiUp;
-}());
-function rgx(tmplObj) {
- var subst = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- subst[_i - 1] = arguments[_i];
- }
- var regexText = tmplObj.raw[0];
- var wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;
- var txt2 = regexText.replace(wsrgx, '');
- return new RegExp(txt2);
-}
-function rgxG(tmplObj) {
- var subst = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- subst[_i - 1] = arguments[_i];
- }
- var regexText = tmplObj.raw[0];
- var wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm;
- var txt2 = regexText.replace(wsrgx, '');
- return new RegExp(txt2, 'g');
-}
-//# sourceMappingURL=ansi_up.js.map
\ No newline at end of file
diff --git a/dist/ansi_up.js.map b/dist/ansi_up.js.map
deleted file mode 100644
index b8a72c9..0000000
--- a/dist/ansi_up.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ansi_up.js","sourceRoot":"","sources":["../ansi_up.ts"],"names":[],"mappings":"AAMA,YAAY,CAAC;;;;;AA0Bb,IAAK,UAQJ;AARD,WAAK,UAAU;IACX,yCAAG,CAAA;IACH,2CAAI,C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IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC/B,OAAO,EAAE,CAAC;QAEd,IAAI,MAAM,GAAG,eAAY,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,WAAK,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,SAAM,CAAC;QACxG,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,aAAC;AAAD,CAAC,AA5qBD,IA4qBC;AAOD,SAAS,GAAG,CAAC,OAAO;IAAE,eAAQ;SAAR,UAAQ,EAAR,qBAAQ,EAAR,IAAQ;QAAR,8BAAQ;;IAE1B,IAAI,SAAS,GAAU,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAGtC,IAAI,KAAK,GAAG,gCAAgC,CAAC;IAC7C,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAID,SAAS,IAAI,CAAC,OAAO;IAAE,eAAQ;SAAR,UAAQ,EAAR,qBAAQ,EAAR,IAAQ;QAAR,8BAAQ;;IAE3B,IAAI,SAAS,GAAU,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAGtC,IAAI,KAAK,GAAG,gCAAgC,CAAC;IAC7C,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC"}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index d621ed4..4400ac1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,7 +12,7 @@
"mocha": "^10.2.0",
"npm": "^9.6.3",
"should": "*",
- "typescript": "^3.9.10"
+ "typescript": "^5.1.0"
},
"engines": {
"node": "*"
@@ -634,9 +634,9 @@
}
},
"node_modules/npm": {
- "version": "9.6.3",
- "resolved": "https://registry.npmjs.org/npm/-/npm-9.6.3.tgz",
- "integrity": "sha512-KMAw6cJF5JGPJz/NtsU8H1sMqb34qPGnSMaSWrVO8bzxOdAXJNAtDXATvLl0lflrImIze1FZCqocM8wdIu3Sfg==",
+ "version": "9.8.0",
+ "resolved": "https://registry.npmjs.org/npm/-/npm-9.8.0.tgz",
+ "integrity": "sha512-AXeiBAdfM5K2jvBwA7EGLKeYyt0VnhmJRnlq4k2+M0Ao9v7yKJBqF8xFPzQL8kAybzwlfpTPCZwM4uTIszb3xA==",
"bundleDependencies": [
"@isaacs/string-locale-compare",
"@npmcli/arborist",
@@ -693,10 +693,10 @@
"proc-log",
"qrcode-terminal",
"read",
- "read-package-json",
- "read-package-json-fast",
"semver",
+ "sigstore",
"ssri",
+ "supports-color",
"tar",
"text-table",
"tiny-relative-date",
@@ -708,71 +708,71 @@
"dev": true,
"dependencies": {
"@isaacs/string-locale-compare": "^1.1.0",
- "@npmcli/arborist": "^6.2.6",
- "@npmcli/config": "^6.1.5",
- "@npmcli/map-workspaces": "^3.0.3",
- "@npmcli/package-json": "^3.0.0",
- "@npmcli/run-script": "^6.0.0",
+ "@npmcli/arborist": "^6.3.0",
+ "@npmcli/config": "^6.2.1",
+ "@npmcli/map-workspaces": "^3.0.4",
+ "@npmcli/package-json": "^4.0.0",
+ "@npmcli/run-script": "^6.0.2",
"abbrev": "^2.0.0",
"archy": "~1.0.0",
- "cacache": "^17.0.5",
- "chalk": "^4.1.2",
+ "cacache": "^17.1.3",
+ "chalk": "^5.2.0",
"ci-info": "^3.8.0",
"cli-columns": "^4.0.0",
"cli-table3": "^0.6.3",
"columnify": "^1.6.0",
"fastest-levenshtein": "^1.0.16",
- "fs-minipass": "^3.0.1",
- "glob": "^9.3.1",
+ "fs-minipass": "^3.0.2",
+ "glob": "^10.2.7",
"graceful-fs": "^4.2.11",
"hosted-git-info": "^6.1.1",
- "ini": "^3.0.1",
+ "ini": "^4.1.1",
"init-package-json": "^5.0.0",
"is-cidr": "^4.0.2",
"json-parse-even-better-errors": "^3.0.0",
"libnpmaccess": "^7.0.2",
- "libnpmdiff": "^5.0.14",
- "libnpmexec": "^5.0.14",
- "libnpmfund": "^4.0.14",
+ "libnpmdiff": "^5.0.19",
+ "libnpmexec": "^6.0.2",
+ "libnpmfund": "^4.0.19",
"libnpmhook": "^9.0.3",
- "libnpmorg": "^5.0.3",
- "libnpmpack": "^5.0.14",
- "libnpmpublish": "^7.1.3",
+ "libnpmorg": "^5.0.4",
+ "libnpmpack": "^5.0.19",
+ "libnpmpublish": "^7.5.0",
"libnpmsearch": "^6.0.2",
"libnpmteam": "^5.0.3",
"libnpmversion": "^4.0.2",
- "make-fetch-happen": "^11.0.3",
- "minimatch": "^7.4.3",
- "minipass": "^4.2.5",
+ "make-fetch-happen": "^11.1.1",
+ "minimatch": "^9.0.0",
+ "minipass": "^5.0.0",
"minipass-pipeline": "^1.2.4",
"ms": "^2.1.2",
- "node-gyp": "^9.3.1",
- "nopt": "^7.1.0",
- "npm-audit-report": "^4.0.0",
- "npm-install-checks": "^6.1.0",
+ "node-gyp": "^9.4.0",
+ "nopt": "^7.2.0",
+ "npm-audit-report": "^5.0.0",
+ "npm-install-checks": "^6.1.1",
"npm-package-arg": "^10.1.0",
"npm-pick-manifest": "^8.0.1",
"npm-profile": "^7.0.1",
- "npm-registry-fetch": "^14.0.3",
+ "npm-registry-fetch": "^14.0.5",
"npm-user-validate": "^2.0.0",
"npmlog": "^7.0.1",
"p-map": "^4.0.0",
- "pacote": "^15.1.1",
+ "pacote": "^15.2.0",
"parse-conflict-json": "^3.0.1",
"proc-log": "^3.0.0",
"qrcode-terminal": "^0.12.0",
- "read": "^2.0.0",
- "read-package-json": "^6.0.1",
- "read-package-json-fast": "^3.0.2",
- "semver": "^7.3.8",
- "ssri": "^10.0.1",
- "tar": "^6.1.13",
+ "read": "^2.1.0",
+ "semver": "^7.5.2",
+ "sigstore": "^1.7.0",
+ "ssri": "^10.0.4",
+ "supports-color": "^9.3.1",
+ "tar": "^6.1.15",
"text-table": "~0.2.0",
"tiny-relative-date": "^1.3.0",
"treeverse": "^3.0.0",
"validate-npm-package-name": "^5.0.0",
- "which": "^3.0.0",
- "write-file-atomic": "^5.0.0"
+ "which": "^3.0.1",
+ "write-file-atomic": "^5.0.1"
},
"bin": {
"npm": "bin/npm-cli.js",
@@ -784,6 +784,7 @@
},
"node_modules/npm/node_modules/@colors/colors": {
"version": "1.5.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
@@ -791,18 +792,82 @@
"node": ">=0.1.90"
}
},
- "node_modules/npm/node_modules/@gar/promisify": {
- "version": "1.1.3",
+ "node_modules/npm/node_modules/@isaacs/cliui": {
+ "version": "8.0.2",
+ "dev": true,
+ "inBundle": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^5.1.2",
+ "string-width-cjs": "npm:string-width@^4.2.0",
+ "strip-ansi": "^7.0.1",
+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
+ "wrap-ansi": "^8.1.0",
+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": {
+ "version": "6.0.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
+ "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": {
+ "version": "5.1.2",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "eastasianwidth": "^0.2.0",
+ "emoji-regex": "^9.2.2",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
"node_modules/npm/node_modules/@isaacs/string-locale-compare": {
"version": "1.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/@npmcli/arborist": {
- "version": "6.2.6",
+ "version": "6.3.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -813,7 +878,7 @@
"@npmcli/metavuln-calculator": "^5.0.0",
"@npmcli/name-from-folder": "^2.0.0",
"@npmcli/node-gyp": "^3.0.0",
- "@npmcli/package-json": "^3.0.0",
+ "@npmcli/package-json": "^4.0.0",
"@npmcli/query": "^3.0.0",
"@npmcli/run-script": "^6.0.0",
"bin-links": "^4.0.1",
@@ -822,7 +887,7 @@
"hosted-git-info": "^6.1.1",
"json-parse-even-better-errors": "^3.0.0",
"json-stringify-nice": "^1.1.4",
- "minimatch": "^7.4.2",
+ "minimatch": "^9.0.0",
"nopt": "^7.0.0",
"npm-install-checks": "^6.0.0",
"npm-package-arg": "^10.1.0",
@@ -833,12 +898,12 @@
"parse-conflict-json": "^3.0.0",
"proc-log": "^3.0.0",
"promise-all-reject-late": "^1.0.0",
- "promise-call-limit": "^1.0.1",
+ "promise-call-limit": "^1.0.2",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.7",
"ssri": "^10.0.1",
"treeverse": "^3.0.0",
- "walk-up-path": "^1.0.0"
+ "walk-up-path": "^3.0.1"
},
"bin": {
"arborist": "bin/index.js"
@@ -848,17 +913,19 @@
}
},
"node_modules/npm/node_modules/@npmcli/config": {
- "version": "6.1.5",
+ "version": "6.2.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"@npmcli/map-workspaces": "^3.0.2",
- "ini": "^3.0.0",
+ "ci-info": "^3.8.0",
+ "ini": "^4.1.0",
"nopt": "^7.0.0",
"proc-log": "^3.0.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.5",
- "walk-up-path": "^1.0.0"
+ "walk-up-path": "^3.0.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -866,6 +933,7 @@
},
"node_modules/npm/node_modules/@npmcli/disparity-colors": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -877,6 +945,7 @@
},
"node_modules/npm/node_modules/@npmcli/fs": {
"version": "3.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -887,7 +956,8 @@
}
},
"node_modules/npm/node_modules/@npmcli/git": {
- "version": "4.0.4",
+ "version": "4.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -906,6 +976,7 @@
},
"node_modules/npm/node_modules/@npmcli/installed-package-contents": {
"version": "2.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -920,13 +991,14 @@
}
},
"node_modules/npm/node_modules/@npmcli/map-workspaces": {
- "version": "3.0.3",
+ "version": "3.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"@npmcli/name-from-folder": "^2.0.0",
- "glob": "^9.3.1",
- "minimatch": "^7.4.2",
+ "glob": "^10.2.2",
+ "minimatch": "^9.0.0",
"read-package-json-fast": "^3.0.0"
},
"engines": {
@@ -934,7 +1006,8 @@
}
},
"node_modules/npm/node_modules/@npmcli/metavuln-calculator": {
- "version": "5.0.0",
+ "version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -947,20 +1020,9 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
- "node_modules/npm/node_modules/@npmcli/move-file": {
- "version": "2.0.1",
- "inBundle": true,
- "license": "MIT",
- "dependencies": {
- "mkdirp": "^1.0.4",
- "rimraf": "^3.0.2"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
- },
"node_modules/npm/node_modules/@npmcli/name-from-folder": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -969,6 +1031,7 @@
},
"node_modules/npm/node_modules/@npmcli/node-gyp": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -976,11 +1039,17 @@
}
},
"node_modules/npm/node_modules/@npmcli/package-json": {
- "version": "3.0.0",
+ "version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "json-parse-even-better-errors": "^3.0.0"
+ "@npmcli/git": "^4.1.0",
+ "glob": "^10.2.2",
+ "json-parse-even-better-errors": "^3.0.0",
+ "normalize-package-data": "^5.0.0",
+ "npm-normalize-package-bin": "^3.0.1",
+ "proc-log": "^3.0.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -988,6 +1057,7 @@
},
"node_modules/npm/node_modules/@npmcli/promise-spawn": {
"version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -999,6 +1069,7 @@
},
"node_modules/npm/node_modules/@npmcli/query": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1009,7 +1080,8 @@
}
},
"node_modules/npm/node_modules/@npmcli/run-script": {
- "version": "6.0.0",
+ "version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1023,28 +1095,64 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
+ "node_modules/npm/node_modules/@pkgjs/parseargs": {
+ "version": "0.11.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=14"
+ }
+ },
"node_modules/npm/node_modules/@sigstore/protobuf-specs": {
"version": "0.1.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+ }
+ },
+ "node_modules/npm/node_modules/@sigstore/tuf": {
+ "version": "1.0.2",
+ "dev": true,
"inBundle": true,
"license": "Apache-2.0",
+ "dependencies": {
+ "@sigstore/protobuf-specs": "^0.1.0",
+ "tuf-js": "^1.1.7"
+ },
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npm/node_modules/@tootallnate/once": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">= 10"
}
},
+ "node_modules/npm/node_modules/@tufjs/canonical-json": {
+ "version": "1.0.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+ }
+ },
"node_modules/npm/node_modules/@tufjs/models": {
- "version": "1.0.1",
+ "version": "1.0.4",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
- "minimatch": "^7.4.2"
+ "@tufjs/canonical-json": "1.0.0",
+ "minimatch": "^9.0.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -1052,6 +1160,7 @@
},
"node_modules/npm/node_modules/abbrev": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -1060,6 +1169,7 @@
},
"node_modules/npm/node_modules/abort-controller": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1071,6 +1181,7 @@
},
"node_modules/npm/node_modules/agent-base": {
"version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1082,6 +1193,7 @@
},
"node_modules/npm/node_modules/agentkeepalive": {
"version": "4.3.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1095,6 +1207,7 @@
},
"node_modules/npm/node_modules/aggregate-error": {
"version": "3.1.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1107,6 +1220,7 @@
},
"node_modules/npm/node_modules/ansi-regex": {
"version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1115,6 +1229,7 @@
},
"node_modules/npm/node_modules/ansi-styles": {
"version": "4.3.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1129,16 +1244,19 @@
},
"node_modules/npm/node_modules/aproba": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/archy": {
"version": "1.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/are-we-there-yet": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1151,11 +1269,13 @@
},
"node_modules/npm/node_modules/balanced-match": {
"version": "1.0.2",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/base64-js": {
"version": "1.5.1",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -1175,6 +1295,7 @@
},
"node_modules/npm/node_modules/bin-links": {
"version": "4.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1189,6 +1310,7 @@
},
"node_modules/npm/node_modules/binary-extensions": {
"version": "2.2.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1197,6 +1319,7 @@
},
"node_modules/npm/node_modules/brace-expansion": {
"version": "2.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1205,6 +1328,7 @@
},
"node_modules/npm/node_modules/buffer": {
"version": "6.0.3",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -1228,6 +1352,7 @@
},
"node_modules/npm/node_modules/builtins": {
"version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1235,20 +1360,20 @@
}
},
"node_modules/npm/node_modules/cacache": {
- "version": "17.0.5",
+ "version": "17.1.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"@npmcli/fs": "^3.1.0",
"fs-minipass": "^3.0.0",
- "glob": "^9.3.1",
+ "glob": "^10.2.2",
"lru-cache": "^7.7.1",
- "minipass": "^4.0.0",
+ "minipass": "^5.0.0",
"minipass-collect": "^1.0.2",
"minipass-flush": "^1.0.5",
"minipass-pipeline": "^1.2.4",
"p-map": "^4.0.0",
- "promise-inflight": "^1.0.1",
"ssri": "^10.0.0",
"tar": "^6.1.11",
"unique-filename": "^3.0.0"
@@ -1258,15 +1383,12 @@
}
},
"node_modules/npm/node_modules/chalk": {
- "version": "4.1.2",
+ "version": "5.2.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
- "dependencies": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
"engines": {
- "node": ">=10"
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
},
"funding": {
"url": "https://github.com/chalk/chalk?sponsor=1"
@@ -1274,6 +1396,7 @@
},
"node_modules/npm/node_modules/chownr": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -1282,6 +1405,7 @@
},
"node_modules/npm/node_modules/ci-info": {
"version": "3.8.0",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -1296,6 +1420,7 @@
},
"node_modules/npm/node_modules/cidr-regex": {
"version": "3.1.1",
+ "dev": true,
"inBundle": true,
"license": "BSD-2-Clause",
"dependencies": {
@@ -1307,6 +1432,7 @@
},
"node_modules/npm/node_modules/clean-stack": {
"version": "2.2.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1315,6 +1441,7 @@
},
"node_modules/npm/node_modules/cli-columns": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1327,6 +1454,7 @@
},
"node_modules/npm/node_modules/cli-table3": {
"version": "0.6.3",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1341,6 +1469,7 @@
},
"node_modules/npm/node_modules/clone": {
"version": "1.0.4",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1349,6 +1478,7 @@
},
"node_modules/npm/node_modules/cmd-shim": {
"version": "6.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -1357,6 +1487,7 @@
},
"node_modules/npm/node_modules/color-convert": {
"version": "2.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1368,11 +1499,13 @@
},
"node_modules/npm/node_modules/color-name": {
"version": "1.1.4",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/color-support": {
"version": "1.1.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"bin": {
@@ -1381,6 +1514,7 @@
},
"node_modules/npm/node_modules/columnify": {
"version": "1.6.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1393,21 +1527,54 @@
},
"node_modules/npm/node_modules/common-ancestor-path": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/concat-map": {
"version": "0.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/console-control-strings": {
"version": "1.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
+ "node_modules/npm/node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/npm/node_modules/cross-spawn/node_modules/which": {
+ "version": "2.0.2",
+ "dev": true,
+ "inBundle": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
"node_modules/npm/node_modules/cssesc": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"bin": {
@@ -1419,6 +1586,7 @@
},
"node_modules/npm/node_modules/debug": {
"version": "4.3.4",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1435,11 +1603,13 @@
},
"node_modules/npm/node_modules/debug/node_modules/ms": {
"version": "2.1.2",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/defaults": {
"version": "1.0.4",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1451,11 +1621,13 @@
},
"node_modules/npm/node_modules/delegates": {
"version": "1.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/depd": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1464,19 +1636,28 @@
},
"node_modules/npm/node_modules/diff": {
"version": "5.1.0",
+ "dev": true,
"inBundle": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
},
+ "node_modules/npm/node_modules/eastasianwidth": {
+ "version": "0.2.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT"
+ },
"node_modules/npm/node_modules/emoji-regex": {
"version": "8.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/encoding": {
"version": "0.1.13",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
@@ -1486,6 +1667,7 @@
},
"node_modules/npm/node_modules/env-paths": {
"version": "2.2.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1494,11 +1676,13 @@
},
"node_modules/npm/node_modules/err-code": {
"version": "2.0.3",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/event-target-shim": {
"version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1507,26 +1691,51 @@
},
"node_modules/npm/node_modules/events": {
"version": "3.3.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=0.8.x"
}
},
+ "node_modules/npm/node_modules/exponential-backoff": {
+ "version": "3.1.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "Apache-2.0"
+ },
"node_modules/npm/node_modules/fastest-levenshtein": {
"version": "1.0.16",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">= 4.9.1"
}
},
+ "node_modules/npm/node_modules/foreground-child": {
+ "version": "3.1.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "ISC",
+ "dependencies": {
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/npm/node_modules/fs-minipass": {
- "version": "3.0.1",
+ "version": "3.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "minipass": "^4.0.0"
+ "minipass": "^5.0.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -1534,16 +1743,19 @@
},
"node_modules/npm/node_modules/fs.realpath": {
"version": "1.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/function-bind": {
"version": "1.1.1",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/gauge": {
- "version": "5.0.0",
+ "version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1551,7 +1763,7 @@
"color-support": "^1.1.3",
"console-control-strings": "^1.1.0",
"has-unicode": "^2.0.1",
- "signal-exit": "^3.0.7",
+ "signal-exit": "^4.0.1",
"string-width": "^4.2.3",
"strip-ansi": "^6.0.1",
"wide-align": "^1.1.5"
@@ -1561,14 +1773,19 @@
}
},
"node_modules/npm/node_modules/glob": {
- "version": "9.3.1",
+ "version": "10.2.7",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "fs.realpath": "^1.0.0",
- "minimatch": "^7.4.1",
- "minipass": "^4.2.4",
- "path-scurry": "^1.6.1"
+ "foreground-child": "^3.1.0",
+ "jackspeak": "^2.0.3",
+ "minimatch": "^9.0.1",
+ "minipass": "^5.0.0 || ^6.0.2",
+ "path-scurry": "^1.7.0"
+ },
+ "bin": {
+ "glob": "dist/cjs/src/bin.js"
},
"engines": {
"node": ">=16 || 14 >=14.17"
@@ -1579,11 +1796,13 @@
},
"node_modules/npm/node_modules/graceful-fs": {
"version": "4.2.11",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/has": {
"version": "1.0.3",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1593,21 +1812,15 @@
"node": ">= 0.4.0"
}
},
- "node_modules/npm/node_modules/has-flag": {
- "version": "4.0.0",
- "inBundle": true,
- "license": "MIT",
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/npm/node_modules/has-unicode": {
"version": "2.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/hosted-git-info": {
"version": "6.1.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1619,11 +1832,13 @@
},
"node_modules/npm/node_modules/http-cache-semantics": {
"version": "4.1.1",
+ "dev": true,
"inBundle": true,
"license": "BSD-2-Clause"
},
"node_modules/npm/node_modules/http-proxy-agent": {
"version": "5.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1637,6 +1852,7 @@
},
"node_modules/npm/node_modules/https-proxy-agent": {
"version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1649,6 +1865,7 @@
},
"node_modules/npm/node_modules/humanize-ms": {
"version": "1.2.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1657,6 +1874,7 @@
},
"node_modules/npm/node_modules/iconv-lite": {
"version": "0.6.3",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
@@ -1669,6 +1887,7 @@
},
"node_modules/npm/node_modules/ieee754": {
"version": "1.2.1",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -1687,11 +1906,12 @@
"license": "BSD-3-Clause"
},
"node_modules/npm/node_modules/ignore-walk": {
- "version": "6.0.2",
+ "version": "6.0.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "minimatch": "^7.4.2"
+ "minimatch": "^9.0.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -1699,6 +1919,7 @@
},
"node_modules/npm/node_modules/imurmurhash": {
"version": "0.1.4",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1707,19 +1928,16 @@
},
"node_modules/npm/node_modules/indent-string": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
- "node_modules/npm/node_modules/infer-owner": {
- "version": "1.0.4",
- "inBundle": true,
- "license": "ISC"
- },
"node_modules/npm/node_modules/inflight": {
"version": "1.0.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1729,19 +1947,22 @@
},
"node_modules/npm/node_modules/inherits": {
"version": "2.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/ini": {
- "version": "3.0.1",
+ "version": "4.1.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npm/node_modules/init-package-json": {
"version": "5.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1759,11 +1980,13 @@
},
"node_modules/npm/node_modules/ip": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/ip-regex": {
"version": "4.3.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1772,6 +1995,7 @@
},
"node_modules/npm/node_modules/is-cidr": {
"version": "4.0.2",
+ "dev": true,
"inBundle": true,
"license": "BSD-2-Clause",
"dependencies": {
@@ -1782,7 +2006,8 @@
}
},
"node_modules/npm/node_modules/is-core-module": {
- "version": "2.11.0",
+ "version": "2.12.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -1794,6 +2019,7 @@
},
"node_modules/npm/node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1802,16 +2028,37 @@
},
"node_modules/npm/node_modules/is-lambda": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/isexe": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
+ "node_modules/npm/node_modules/jackspeak": {
+ "version": "2.2.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "@isaacs/cliui": "^8.0.2"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ },
+ "optionalDependencies": {
+ "@pkgjs/parseargs": "^0.11.0"
+ }
+ },
"node_modules/npm/node_modules/json-parse-even-better-errors": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -1820,6 +2067,7 @@
},
"node_modules/npm/node_modules/json-stringify-nice": {
"version": "1.1.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"funding": {
@@ -1828,6 +2076,7 @@
},
"node_modules/npm/node_modules/jsonparse": {
"version": "1.3.1",
+ "dev": true,
"engines": [
"node >= 0.2.0"
],
@@ -1835,17 +2084,20 @@
"license": "MIT"
},
"node_modules/npm/node_modules/just-diff": {
- "version": "6.0.0",
+ "version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/just-diff-apply": {
"version": "5.5.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/libnpmaccess": {
"version": "7.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1857,16 +2109,17 @@
}
},
"node_modules/npm/node_modules/libnpmdiff": {
- "version": "5.0.14",
+ "version": "5.0.19",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "@npmcli/arborist": "^6.2.6",
+ "@npmcli/arborist": "^6.3.0",
"@npmcli/disparity-colors": "^3.0.0",
"@npmcli/installed-package-contents": "^2.0.2",
"binary-extensions": "^2.2.0",
"diff": "^5.1.0",
- "minimatch": "^7.4.2",
+ "minimatch": "^9.0.0",
"npm-package-arg": "^10.1.0",
"pacote": "^15.0.8",
"tar": "^6.1.13"
@@ -1876,13 +2129,13 @@
}
},
"node_modules/npm/node_modules/libnpmexec": {
- "version": "5.0.14",
+ "version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "@npmcli/arborist": "^6.2.6",
+ "@npmcli/arborist": "^6.3.0",
"@npmcli/run-script": "^6.0.0",
- "chalk": "^4.1.0",
"ci-info": "^3.7.1",
"npm-package-arg": "^10.1.0",
"npmlog": "^7.0.1",
@@ -1891,18 +2144,19 @@
"read": "^2.0.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.7",
- "walk-up-path": "^1.0.0"
+ "walk-up-path": "^3.0.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npm/node_modules/libnpmfund": {
- "version": "4.0.14",
+ "version": "4.0.19",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "@npmcli/arborist": "^6.2.6"
+ "@npmcli/arborist": "^6.3.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -1910,6 +2164,7 @@
},
"node_modules/npm/node_modules/libnpmhook": {
"version": "9.0.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1921,7 +2176,8 @@
}
},
"node_modules/npm/node_modules/libnpmorg": {
- "version": "5.0.3",
+ "version": "5.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1933,11 +2189,12 @@
}
},
"node_modules/npm/node_modules/libnpmpack": {
- "version": "5.0.14",
+ "version": "5.0.19",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "@npmcli/arborist": "^6.2.6",
+ "@npmcli/arborist": "^6.3.0",
"@npmcli/run-script": "^6.0.0",
"npm-package-arg": "^10.1.0",
"pacote": "^15.0.8"
@@ -1947,7 +2204,8 @@
}
},
"node_modules/npm/node_modules/libnpmpublish": {
- "version": "7.1.3",
+ "version": "7.5.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1957,7 +2215,7 @@
"npm-registry-fetch": "^14.0.3",
"proc-log": "^3.0.0",
"semver": "^7.3.7",
- "sigstore": "^1.0.0",
+ "sigstore": "^1.4.0",
"ssri": "^10.0.1"
},
"engines": {
@@ -1966,6 +2224,7 @@
},
"node_modules/npm/node_modules/libnpmsearch": {
"version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1977,6 +2236,7 @@
},
"node_modules/npm/node_modules/libnpmteam": {
"version": "5.0.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -1989,6 +2249,7 @@
},
"node_modules/npm/node_modules/libnpmversion": {
"version": "4.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2004,6 +2265,7 @@
},
"node_modules/npm/node_modules/lru-cache": {
"version": "7.18.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -2011,7 +2273,8 @@
}
},
"node_modules/npm/node_modules/make-fetch-happen": {
- "version": "11.0.3",
+ "version": "11.1.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2022,7 +2285,7 @@
"https-proxy-agent": "^5.0.0",
"is-lambda": "^1.0.1",
"lru-cache": "^7.7.1",
- "minipass": "^4.0.0",
+ "minipass": "^5.0.0",
"minipass-fetch": "^3.0.0",
"minipass-flush": "^1.0.5",
"minipass-pipeline": "^1.2.4",
@@ -2036,21 +2299,23 @@
}
},
"node_modules/npm/node_modules/minimatch": {
- "version": "7.4.3",
+ "version": "9.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
- "node": ">=10"
+ "node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/npm/node_modules/minipass": {
- "version": "4.2.5",
+ "version": "5.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -2059,6 +2324,7 @@
},
"node_modules/npm/node_modules/minipass-collect": {
"version": "1.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2070,6 +2336,7 @@
},
"node_modules/npm/node_modules/minipass-collect/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2080,11 +2347,12 @@
}
},
"node_modules/npm/node_modules/minipass-fetch": {
- "version": "3.0.1",
+ "version": "3.0.3",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
- "minipass": "^4.0.0",
+ "minipass": "^5.0.0",
"minipass-sized": "^1.0.3",
"minizlib": "^2.1.2"
},
@@ -2097,6 +2365,7 @@
},
"node_modules/npm/node_modules/minipass-flush": {
"version": "1.0.5",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2108,6 +2377,7 @@
},
"node_modules/npm/node_modules/minipass-flush/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2119,6 +2389,7 @@
},
"node_modules/npm/node_modules/minipass-json-stream": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2128,6 +2399,7 @@
},
"node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2139,6 +2411,7 @@
},
"node_modules/npm/node_modules/minipass-pipeline": {
"version": "1.2.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2150,6 +2423,7 @@
},
"node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2161,6 +2435,7 @@
},
"node_modules/npm/node_modules/minipass-sized": {
"version": "1.0.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2172,6 +2447,7 @@
},
"node_modules/npm/node_modules/minipass-sized/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2183,6 +2459,7 @@
},
"node_modules/npm/node_modules/minizlib": {
"version": "2.1.2",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2195,6 +2472,7 @@
},
"node_modules/npm/node_modules/minizlib/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2206,6 +2484,7 @@
},
"node_modules/npm/node_modules/mkdirp": {
"version": "1.0.4",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"bin": {
@@ -2217,11 +2496,13 @@
},
"node_modules/npm/node_modules/ms": {
"version": "2.1.3",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/mute-stream": {
"version": "1.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -2230,6 +2511,7 @@
},
"node_modules/npm/node_modules/negotiator": {
"version": "0.6.3",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -2237,14 +2519,16 @@
}
},
"node_modules/npm/node_modules/node-gyp": {
- "version": "9.3.1",
+ "version": "9.4.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
"env-paths": "^2.2.0",
+ "exponential-backoff": "^3.1.1",
"glob": "^7.1.4",
"graceful-fs": "^4.2.6",
- "make-fetch-happen": "^10.0.3",
+ "make-fetch-happen": "^11.0.3",
"nopt": "^6.0.0",
"npmlog": "^6.0.0",
"rimraf": "^3.0.2",
@@ -2259,25 +2543,15 @@
"node": "^12.13 || ^14.13 || >=16"
}
},
- "node_modules/npm/node_modules/node-gyp/node_modules/@npmcli/fs": {
- "version": "2.1.2",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "@gar/promisify": "^1.1.3",
- "semver": "^7.3.5"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
- },
"node_modules/npm/node_modules/node-gyp/node_modules/abbrev": {
"version": "1.1.1",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/node-gyp/node_modules/are-we-there-yet": {
"version": "3.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2290,6 +2564,7 @@
},
"node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": {
"version": "1.1.11",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2297,84 +2572,9 @@
"concat-map": "0.0.1"
}
},
- "node_modules/npm/node_modules/node-gyp/node_modules/cacache": {
- "version": "16.1.3",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "@npmcli/fs": "^2.1.0",
- "@npmcli/move-file": "^2.0.0",
- "chownr": "^2.0.0",
- "fs-minipass": "^2.1.0",
- "glob": "^8.0.1",
- "infer-owner": "^1.0.4",
- "lru-cache": "^7.7.1",
- "minipass": "^3.1.6",
- "minipass-collect": "^1.0.2",
- "minipass-flush": "^1.0.5",
- "minipass-pipeline": "^1.2.4",
- "mkdirp": "^1.0.4",
- "p-map": "^4.0.0",
- "promise-inflight": "^1.0.1",
- "rimraf": "^3.0.2",
- "ssri": "^9.0.0",
- "tar": "^6.1.11",
- "unique-filename": "^2.0.0"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion": {
- "version": "2.0.1",
- "inBundle": true,
- "license": "MIT",
- "dependencies": {
- "balanced-match": "^1.0.0"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob": {
- "version": "8.1.0",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^5.0.1",
- "once": "^1.3.0"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch": {
- "version": "5.1.6",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "brace-expansion": "^2.0.1"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/fs-minipass": {
- "version": "2.1.0",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "minipass": "^3.0.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
"node_modules/npm/node_modules/node-gyp/node_modules/gauge": {
"version": "4.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2393,6 +2593,7 @@
},
"node_modules/npm/node_modules/node-gyp/node_modules/glob": {
"version": "7.2.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2410,34 +2611,9 @@
"url": "https://github.com/sponsors/isaacs"
}
},
- "node_modules/npm/node_modules/node-gyp/node_modules/make-fetch-happen": {
- "version": "10.2.1",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "agentkeepalive": "^4.2.1",
- "cacache": "^16.1.0",
- "http-cache-semantics": "^4.1.0",
- "http-proxy-agent": "^5.0.0",
- "https-proxy-agent": "^5.0.0",
- "is-lambda": "^1.0.1",
- "lru-cache": "^7.7.1",
- "minipass": "^3.1.6",
- "minipass-collect": "^1.0.2",
- "minipass-fetch": "^2.0.3",
- "minipass-flush": "^1.0.5",
- "minipass-pipeline": "^1.2.4",
- "negotiator": "^0.6.3",
- "promise-retry": "^2.0.1",
- "socks-proxy-agent": "^7.0.0",
- "ssri": "^9.0.0"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
- },
"node_modules/npm/node_modules/node-gyp/node_modules/minimatch": {
"version": "3.1.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2447,35 +2623,9 @@
"node": "*"
}
},
- "node_modules/npm/node_modules/node-gyp/node_modules/minipass": {
- "version": "3.3.6",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/minipass-fetch": {
- "version": "2.1.2",
- "inBundle": true,
- "license": "MIT",
- "dependencies": {
- "minipass": "^3.1.6",
- "minipass-sized": "^1.0.3",
- "minizlib": "^2.1.2"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- },
- "optionalDependencies": {
- "encoding": "^0.1.13"
- }
- },
"node_modules/npm/node_modules/node-gyp/node_modules/nopt": {
"version": "6.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2490,6 +2640,7 @@
},
"node_modules/npm/node_modules/node-gyp/node_modules/npmlog": {
"version": "6.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2504,6 +2655,7 @@
},
"node_modules/npm/node_modules/node-gyp/node_modules/readable-stream": {
"version": "3.6.2",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2515,41 +2667,15 @@
"node": ">= 6"
}
},
- "node_modules/npm/node_modules/node-gyp/node_modules/ssri": {
- "version": "9.0.1",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "minipass": "^3.1.1"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/unique-filename": {
- "version": "2.0.1",
- "inBundle": true,
- "license": "ISC",
- "dependencies": {
- "unique-slug": "^3.0.0"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
- },
- "node_modules/npm/node_modules/node-gyp/node_modules/unique-slug": {
- "version": "3.0.0",
+ "node_modules/npm/node_modules/node-gyp/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "dev": true,
"inBundle": true,
- "license": "ISC",
- "dependencies": {
- "imurmurhash": "^0.1.4"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- }
+ "license": "ISC"
},
"node_modules/npm/node_modules/node-gyp/node_modules/which": {
"version": "2.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2563,7 +2689,8 @@
}
},
"node_modules/npm/node_modules/nopt": {
- "version": "7.1.0",
+ "version": "7.2.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2578,6 +2705,7 @@
},
"node_modules/npm/node_modules/normalize-package-data": {
"version": "5.0.0",
+ "dev": true,
"inBundle": true,
"license": "BSD-2-Clause",
"dependencies": {
@@ -2591,18 +2719,17 @@
}
},
"node_modules/npm/node_modules/npm-audit-report": {
- "version": "4.0.0",
+ "version": "5.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
- "dependencies": {
- "chalk": "^4.0.0"
- },
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npm/node_modules/npm-bundled": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2613,7 +2740,8 @@
}
},
"node_modules/npm/node_modules/npm-install-checks": {
- "version": "6.1.0",
+ "version": "6.1.1",
+ "dev": true,
"inBundle": true,
"license": "BSD-2-Clause",
"dependencies": {
@@ -2624,7 +2752,8 @@
}
},
"node_modules/npm/node_modules/npm-normalize-package-bin": {
- "version": "3.0.0",
+ "version": "3.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -2633,6 +2762,7 @@
},
"node_modules/npm/node_modules/npm-package-arg": {
"version": "10.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2647,6 +2777,7 @@
},
"node_modules/npm/node_modules/npm-packlist": {
"version": "7.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2658,6 +2789,7 @@
},
"node_modules/npm/node_modules/npm-pick-manifest": {
"version": "8.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2672,6 +2804,7 @@
},
"node_modules/npm/node_modules/npm-profile": {
"version": "7.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2683,12 +2816,13 @@
}
},
"node_modules/npm/node_modules/npm-registry-fetch": {
- "version": "14.0.3",
+ "version": "14.0.5",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"make-fetch-happen": "^11.0.0",
- "minipass": "^4.0.0",
+ "minipass": "^5.0.0",
"minipass-fetch": "^3.0.0",
"minipass-json-stream": "^1.0.1",
"minizlib": "^2.1.2",
@@ -2701,6 +2835,7 @@
},
"node_modules/npm/node_modules/npm-user-validate": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "BSD-2-Clause",
"engines": {
@@ -2709,6 +2844,7 @@
},
"node_modules/npm/node_modules/npmlog": {
"version": "7.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2723,6 +2859,7 @@
},
"node_modules/npm/node_modules/once": {
"version": "1.4.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2731,6 +2868,7 @@
},
"node_modules/npm/node_modules/p-map": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2744,7 +2882,8 @@
}
},
"node_modules/npm/node_modules/pacote": {
- "version": "15.1.1",
+ "version": "15.2.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2754,7 +2893,7 @@
"@npmcli/run-script": "^6.0.0",
"cacache": "^17.0.0",
"fs-minipass": "^3.0.0",
- "minipass": "^4.0.0",
+ "minipass": "^5.0.0",
"npm-package-arg": "^10.0.0",
"npm-packlist": "^7.0.0",
"npm-pick-manifest": "^8.0.0",
@@ -2763,7 +2902,7 @@
"promise-retry": "^2.0.1",
"read-package-json": "^6.0.0",
"read-package-json-fast": "^3.0.0",
- "sigstore": "^1.0.0",
+ "sigstore": "^1.3.0",
"ssri": "^10.0.0",
"tar": "^6.1.11"
},
@@ -2776,6 +2915,7 @@
},
"node_modules/npm/node_modules/parse-conflict-json": {
"version": "3.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2789,29 +2929,50 @@
},
"node_modules/npm/node_modules/path-is-absolute": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
+ "node_modules/npm/node_modules/path-key": {
+ "version": "3.1.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/npm/node_modules/path-scurry": {
- "version": "1.6.1",
+ "version": "1.9.2",
+ "dev": true,
"inBundle": true,
"license": "BlueOak-1.0.0",
"dependencies": {
- "lru-cache": "^7.14.1",
- "minipass": "^4.0.2"
+ "lru-cache": "^9.1.1",
+ "minipass": "^5.0.0 || ^6.0.2"
},
"engines": {
- "node": ">=14"
+ "node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/npm/node_modules/path-scurry/node_modules/lru-cache": {
+ "version": "9.1.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "ISC",
+ "engines": {
+ "node": "14 || >=16.14"
+ }
+ },
"node_modules/npm/node_modules/postcss-selector-parser": {
- "version": "6.0.11",
+ "version": "6.0.13",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2824,6 +2985,7 @@
},
"node_modules/npm/node_modules/proc-log": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -2832,6 +2994,7 @@
},
"node_modules/npm/node_modules/process": {
"version": "0.11.10",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -2840,6 +3003,7 @@
},
"node_modules/npm/node_modules/promise-all-reject-late": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"funding": {
@@ -2847,7 +3011,8 @@
}
},
"node_modules/npm/node_modules/promise-call-limit": {
- "version": "1.0.1",
+ "version": "1.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"funding": {
@@ -2856,11 +3021,13 @@
},
"node_modules/npm/node_modules/promise-inflight": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/promise-retry": {
"version": "2.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2873,6 +3040,7 @@
},
"node_modules/npm/node_modules/promzard": {
"version": "1.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2884,13 +3052,15 @@
},
"node_modules/npm/node_modules/qrcode-terminal": {
"version": "0.12.0",
+ "dev": true,
"inBundle": true,
"bin": {
"qrcode-terminal": "bin/qrcode-terminal.js"
}
},
"node_modules/npm/node_modules/read": {
- "version": "2.0.0",
+ "version": "2.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2902,6 +3072,7 @@
},
"node_modules/npm/node_modules/read-cmd-shim": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -2909,11 +3080,12 @@
}
},
"node_modules/npm/node_modules/read-package-json": {
- "version": "6.0.1",
+ "version": "6.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "glob": "^9.3.0",
+ "glob": "^10.2.2",
"json-parse-even-better-errors": "^3.0.0",
"normalize-package-data": "^5.0.0",
"npm-normalize-package-bin": "^3.0.0"
@@ -2924,6 +3096,7 @@
},
"node_modules/npm/node_modules/read-package-json-fast": {
"version": "3.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2935,7 +3108,8 @@
}
},
"node_modules/npm/node_modules/readable-stream": {
- "version": "4.3.0",
+ "version": "4.4.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2950,6 +3124,7 @@
},
"node_modules/npm/node_modules/retry": {
"version": "0.12.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -2958,6 +3133,7 @@
},
"node_modules/npm/node_modules/rimraf": {
"version": "3.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -2972,6 +3148,7 @@
},
"node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": {
"version": "1.1.11",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -2981,6 +3158,7 @@
},
"node_modules/npm/node_modules/rimraf/node_modules/glob": {
"version": "7.2.3",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3000,6 +3178,7 @@
},
"node_modules/npm/node_modules/rimraf/node_modules/minimatch": {
"version": "3.1.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3010,18 +3189,35 @@
}
},
"node_modules/npm/node_modules/safe-buffer": {
- "version": "5.1.2",
+ "version": "5.2.1",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/safer-buffer": {
"version": "2.1.2",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"optional": true
},
"node_modules/npm/node_modules/semver": {
- "version": "7.3.8",
+ "version": "7.5.2",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3036,6 +3232,7 @@
},
"node_modules/npm/node_modules/semver/node_modules/lru-cache": {
"version": "6.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3047,22 +3244,52 @@
},
"node_modules/npm/node_modules/set-blocking": {
"version": "2.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
+ "node_modules/npm/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/npm/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/npm/node_modules/signal-exit": {
- "version": "3.0.7",
+ "version": "4.0.2",
+ "dev": true,
"inBundle": true,
- "license": "ISC"
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
},
"node_modules/npm/node_modules/sigstore": {
- "version": "1.2.0",
+ "version": "1.7.0",
+ "dev": true,
"inBundle": true,
"license": "Apache-2.0",
"dependencies": {
"@sigstore/protobuf-specs": "^0.1.0",
- "make-fetch-happen": "^11.0.1",
- "tuf-js": "^1.0.0"
+ "@sigstore/tuf": "^1.0.1",
+ "make-fetch-happen": "^11.0.1"
},
"bin": {
"sigstore": "bin/sigstore.js"
@@ -3073,6 +3300,7 @@
},
"node_modules/npm/node_modules/smart-buffer": {
"version": "4.2.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -3082,6 +3310,7 @@
},
"node_modules/npm/node_modules/socks": {
"version": "2.7.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -3095,6 +3324,7 @@
},
"node_modules/npm/node_modules/socks-proxy-agent": {
"version": "7.0.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -3108,6 +3338,7 @@
},
"node_modules/npm/node_modules/spdx-correct": {
"version": "3.2.0",
+ "dev": true,
"inBundle": true,
"license": "Apache-2.0",
"dependencies": {
@@ -3117,11 +3348,13 @@
},
"node_modules/npm/node_modules/spdx-exceptions": {
"version": "2.3.0",
+ "dev": true,
"inBundle": true,
"license": "CC-BY-3.0"
},
"node_modules/npm/node_modules/spdx-expression-parse": {
"version": "3.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -3131,30 +3364,49 @@
},
"node_modules/npm/node_modules/spdx-license-ids": {
"version": "3.0.13",
+ "dev": true,
"inBundle": true,
"license": "CC0-1.0"
},
"node_modules/npm/node_modules/ssri": {
- "version": "10.0.1",
+ "version": "10.0.4",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
- "minipass": "^4.0.0"
+ "minipass": "^5.0.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npm/node_modules/string_decoder": {
- "version": "1.1.1",
+ "version": "1.3.0",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
- "safe-buffer": "~5.1.0"
+ "safe-buffer": "~5.2.0"
}
},
"node_modules/npm/node_modules/string-width": {
"version": "4.2.3",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/npm/node_modules/string-width-cjs": {
+ "name": "string-width",
+ "version": "4.2.3",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -3168,6 +3420,7 @@
},
"node_modules/npm/node_modules/strip-ansi": {
"version": "6.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -3177,25 +3430,40 @@
"node": ">=8"
}
},
- "node_modules/npm/node_modules/supports-color": {
- "version": "7.2.0",
+ "node_modules/npm/node_modules/strip-ansi-cjs": {
+ "name": "strip-ansi",
+ "version": "6.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
- "has-flag": "^4.0.0"
+ "ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
+ "node_modules/npm/node_modules/supports-color": {
+ "version": "9.3.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
"node_modules/npm/node_modules/tar": {
- "version": "6.1.13",
+ "version": "6.1.15",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"chownr": "^2.0.0",
"fs-minipass": "^2.0.0",
- "minipass": "^4.0.0",
+ "minipass": "^5.0.0",
"minizlib": "^2.1.1",
"mkdirp": "^1.0.3",
"yallist": "^4.0.0"
@@ -3206,6 +3474,7 @@
},
"node_modules/npm/node_modules/tar/node_modules/fs-minipass": {
"version": "2.1.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3217,6 +3486,7 @@
},
"node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": {
"version": "3.3.6",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3228,16 +3498,19 @@
},
"node_modules/npm/node_modules/text-table": {
"version": "0.2.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/tiny-relative-date": {
"version": "1.3.0",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/treeverse": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -3245,12 +3518,14 @@
}
},
"node_modules/npm/node_modules/tuf-js": {
- "version": "1.1.2",
+ "version": "1.1.7",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
- "@tufjs/models": "1.0.1",
- "make-fetch-happen": "^11.0.1"
+ "@tufjs/models": "1.0.4",
+ "debug": "^4.3.4",
+ "make-fetch-happen": "^11.1.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -3258,6 +3533,7 @@
},
"node_modules/npm/node_modules/unique-filename": {
"version": "3.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3269,6 +3545,7 @@
},
"node_modules/npm/node_modules/unique-slug": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3280,11 +3557,13 @@
},
"node_modules/npm/node_modules/util-deprecate": {
"version": "1.0.2",
+ "dev": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/npm/node_modules/validate-npm-package-license": {
"version": "3.0.4",
+ "dev": true,
"inBundle": true,
"license": "Apache-2.0",
"dependencies": {
@@ -3294,6 +3573,7 @@
},
"node_modules/npm/node_modules/validate-npm-package-name": {
"version": "5.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3304,12 +3584,14 @@
}
},
"node_modules/npm/node_modules/walk-up-path": {
- "version": "1.0.0",
+ "version": "3.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/wcwidth": {
"version": "1.0.1",
+ "dev": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -3317,7 +3599,8 @@
}
},
"node_modules/npm/node_modules/which": {
- "version": "3.0.0",
+ "version": "3.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -3332,24 +3615,124 @@
},
"node_modules/npm/node_modules/wide-align": {
"version": "1.1.5",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"string-width": "^1.0.2 || 2 || 3 || 4"
}
},
+ "node_modules/npm/node_modules/wrap-ansi": {
+ "version": "8.1.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.1.0",
+ "string-width": "^5.0.1",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/npm/node_modules/wrap-ansi-cjs": {
+ "name": "wrap-ansi",
+ "version": "7.0.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": {
+ "version": "6.0.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "6.2.1",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT"
+ },
+ "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": {
+ "version": "5.1.2",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "eastasianwidth": "^0.2.0",
+ "emoji-regex": "^9.2.2",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "dev": true,
+ "inBundle": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
"node_modules/npm/node_modules/wrappy": {
"version": "1.0.2",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/npm/node_modules/write-file-atomic": {
- "version": "5.0.0",
+ "version": "5.0.1",
+ "dev": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
"imurmurhash": "^0.1.4",
- "signal-exit": "^3.0.7"
+ "signal-exit": "^4.0.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -3357,6 +3740,7 @@
},
"node_modules/npm/node_modules/yallist": {
"version": "4.0.0",
+ "dev": true,
"inBundle": true,
"license": "ISC"
},
@@ -3608,16 +3992,16 @@
}
},
"node_modules/typescript": {
- "version": "3.9.10",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
- "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
+ "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
- "node": ">=4.2.0"
+ "node": ">=14.17"
}
},
"node_modules/workerpool": {
diff --git a/package.json b/package.json
index ad249f1..a1f2be0 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"author": "drudru ",
"license": "MIT",
"main": "./ansi_up.js",
+ "type": "module",
"types": "./dist/ansi_up.d.ts",
"repository": {
"type": "git",
@@ -28,6 +29,6 @@
"npm": "^9.6.3",
"mocha": "^10.2.0",
"should": "*",
- "typescript": "^3.9.10"
+ "typescript": "^5.1.0"
}
}
diff --git a/scripts/fix-typings.js b/scripts/fix-typings.js
deleted file mode 100644
index b5cc9e6..0000000
--- a/scripts/fix-typings.js
+++ /dev/null
@@ -1,15 +0,0 @@
-
-var fs = require('fs');
-var path = require('path');
-
-var HERE = __dirname;
-var typings = path.resolve(HERE, '..', 'dist', 'ansi_up.d.ts');
-
-var content = fs.readFileSync(typings, 'utf-8');
-
-var new_content = content.replace(/^interface /mg, 'export interface ');
-new_content = new_content.replace(/^declare class AnsiUp/mg, 'export default class AnsiUp');
-
-if (new_content !== content) {
- fs.writeFileSync(typings, new_content, 'utf-8');
-}
diff --git a/test/ansi_up-test.js b/test/ansi_up-test.js
index 6ec66c2..bbe0002 100644
--- a/test/ansi_up-test.js
+++ b/test/ansi_up-test.js
@@ -1,7 +1,5 @@
-var AU = require('../ansi_up');
-var AnsiUp = AU.default;
-var should = require('should');
+import { AnsiUp } from '../ansi_up.js';
describe('ansi_up', function () {
@@ -176,9 +174,9 @@ describe('ansi_up', function () {
var bg = 41; // red bg
var lines = [
"should have no color",
- "\033[" + attr + ";" + fg + "m " + "should be bold with green foreground" + "\033[0m",
- "\033[" + attr + ";" + bg + ";" + fg + "m " + "should have bold with red background with green foreground" + "\033[0m",
- "\033[" + bg + ";" + fg + "m " + "should have red background with green foreground" + "\033[0m"
+ "\x1B[" + attr + ";" + fg + "m " + "should be bold with green foreground" + "\x1B[0m",
+ "\x1B[" + attr + ";" + bg + ";" + fg + "m " + "should have bold with red background with green foreground" + "\x1B[0m",
+ "\x1B[" + bg + ";" + fg + "m " + "should have red background with green foreground" + "\x1B[0m"
];
var stats = {};
@@ -229,7 +227,7 @@ describe('ansi_up', function () {
it('should transform a foreground to html', function () {
var attr = 0;
var fg = 32;
- var start = "\033[" + fg + "m " + fg + " \033[0m";
+ var start = "\x1B[" + fg + "m " + fg + " \x1B[0m";
var expected = " " + fg + " ";
@@ -242,7 +240,7 @@ describe('ansi_up', function () {
it('should transform a attr;foreground to html', function () {
var attr = 0;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + fg + " \x1B[0m";
var expected = " " + fg + " ";
@@ -254,7 +252,7 @@ describe('ansi_up', function () {
it('should transform an empty code to a normal/reset html', function () {
var attr = 0;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + fg + " \033[m x";
+ var start = "\x1B[" + attr + ";" + fg + "m " + fg + " \x1B[m x";
var expected = " " + fg + " x";
@@ -266,7 +264,7 @@ describe('ansi_up', function () {
it('should transform a bold attr;foreground to html', function () {
var attr = 1;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + attr + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + attr + ";" + fg + " \x1B[0m";
var expected = " " + attr + ";" + fg + " ";
@@ -278,7 +276,7 @@ describe('ansi_up', function () {
it('should transform an italic attr;foreground to html', function () {
var attr = 3;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + attr + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + attr + ";" + fg + " \x1B[0m";
var expected = " " + attr + ";" + fg + " ";
@@ -290,7 +288,7 @@ describe('ansi_up', function () {
it('should transform an underline attr;foreground to html', function () {
var attr = 4;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + attr + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + attr + ";" + fg + " \x1B[0m";
var expected = " " + attr + ";" + fg + " ";
@@ -301,7 +299,7 @@ describe('ansi_up', function () {
it('should transform a bright-foreground to html', function () {
var fg = 92;
- var start = "\033[" + fg + "m " + fg + " \033[0m";
+ var start = "\x1B[" + fg + "m " + fg + " \x1B[0m";
var expected = " " + fg + " ";
@@ -314,7 +312,7 @@ describe('ansi_up', function () {
var attr = 1;
var fg = 33;
var bg = 42;
- var start = "\033[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \x1B[0m";
var expected = " " + attr + ";" + bg + ";" + fg + " ";
@@ -326,7 +324,7 @@ describe('ansi_up', function () {
it('should transform a bright-background;foreground to html', function () {
var fg = 33;
var bg = 102;
- var start = "\033[" + bg + ";" + fg + "m " + bg + ";" + fg + " \033[0m";
+ var start = "\x1B[" + bg + ";" + fg + "m " + bg + ";" + fg + " \x1B[0m";
var expected = " " + bg + ";" + fg + " ";
@@ -340,7 +338,7 @@ describe('ansi_up', function () {
var attr = 1;
var fg = 32;
var bg = 42;
- var start = "\n \033[" + fg + "m " + fg + " \033[0m \n \033[" + bg + "m " + bg + " \033[0m \n zimpper ";
+ var start = "\n \x1B[" + fg + "m " + fg + " \x1B[0m \n \x1B[" + bg + "m " + bg + " \x1B[0m \n zimpper ";
var expected = "\n " + fg + " \n " + bg + " \n zimpper ";
@@ -352,7 +350,7 @@ describe('ansi_up', function () {
it('should transform a foreground and background and reset foreground to html', function () {
var fg = 37;
var bg = 42;
- var start = "\n\033[40m \033[49m\033[" + fg + ";" + bg + "m " + bg + " \033[39m foobar ";
+ var start = "\n\x1B[40m \x1B[49m\x1B[" + fg + ";" + bg + "m " + bg + " \x1B[39m foobar ";
var expected = "\n " + bg + " foobar ";
@@ -364,7 +362,7 @@ describe('ansi_up', function () {
it('should transform a foreground and background and reset background to html', function () {
var fg = 37;
var bg = 42;
- var start = "\n\033[40m \033[49m\033[" + fg + ";" + bg + "m " + fg + " \033[49m foobar ";
+ var start = "\n\x1B[40m \x1B[49m\x1B[" + fg + ";" + bg + "m " + fg + " \x1B[49m foobar ";
var expected = "\n " + fg + " foobar ";
@@ -376,7 +374,7 @@ describe('ansi_up', function () {
it('should transform a foreground and background and reset them to html', function () {
var fg = 37;
var bg = 42;
- var start = "\n\033[40m \033[49m\033[" + fg + ";" + bg + "m " + fg + ';' + bg + " \033[39;49m foobar ";
+ var start = "\n\x1B[40m \x1B[49m\x1B[" + fg + ";" + bg + "m " + fg + ';' + bg + " \x1B[39;49m foobar ";
var expected = "\n " + fg + ';' + bg + " foobar ";
@@ -387,7 +385,7 @@ describe('ansi_up', function () {
describe('transform extended colors (palette)', function () {
it('system color, foreground', function () {
- var start = "\033[38;5;1m" + "red" + "\033[0m";
+ var start = "\x1B[38;5;1m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -395,7 +393,7 @@ describe('ansi_up', function () {
});
it('system color, foreground (bright)', function () {
- var start = "\033[38;5;9m" + "red" + "\033[0m";
+ var start = "\x1B[38;5;9m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -403,7 +401,7 @@ describe('ansi_up', function () {
});
it('system color, background', function () {
- var start = "\033[48;5;1m" + "red" + "\033[0m";
+ var start = "\x1B[48;5;1m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -411,7 +409,7 @@ describe('ansi_up', function () {
});
it('system color, background (bright)', function () {
- var start = "\033[48;5;9m" + "red" + "\033[0m";
+ var start = "\x1B[48;5;9m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -419,7 +417,7 @@ describe('ansi_up', function () {
});
it('palette, foreground', function () {
- var start = "\033[38;5;171m" + "foo" + "\033[0m";
+ var start = "\x1B[38;5;171m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -427,7 +425,7 @@ describe('ansi_up', function () {
});
it('palette, background', function () {
- var start = "\033[48;5;171m" + "foo" + "\033[0m";
+ var start = "\x1B[48;5;171m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -435,7 +433,7 @@ describe('ansi_up', function () {
});
it('combination of bold and palette', function () {
- var start = "\033[1;38;5;171m" + "foo" + "\033[0m";
+ var start = "\x1B[1;38;5;171m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -443,7 +441,7 @@ describe('ansi_up', function () {
});
it('combination of palette and bold', function () {
- var start = "\033[38;5;171;1m" + "foo" + "\033[0m";
+ var start = "\x1B[38;5;171;1m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -453,21 +451,21 @@ describe('ansi_up', function () {
describe('transform extended colors (true color)', function () {
it('foreground', function () {
- var start = "\033[38;2;42;142;242m" + "foo" + "\033[0m";
+ var start = "\x1B[38;2;42;142;242m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
l.should.eql(expected);
});
it('background', function () {
- var start = "\033[48;2;42;142;242m" + "foo" + "\033[0m";
+ var start = "\x1B[48;2;42;142;242m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
l.should.eql(expected);
});
it('both foreground and background', function () {
- var start = "\033[38;2;42;142;242;48;2;1;2;3m" + "foo" + "\033[0m";
+ var start = "\x1B[38;2;42;142;242;48;2;1;2;3m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -480,7 +478,7 @@ describe('ansi_up', function () {
it('should transform a foreground to html', function () {
var attr = 0;
var fg = 32;
- var start = "\033[" + fg + "m " + fg + " \033[0m";
+ var start = "\x1B[" + fg + "m " + fg + " \x1B[0m";
var expected = " " + fg + " ";
@@ -493,7 +491,7 @@ describe('ansi_up', function () {
it('should transform a attr;foreground to html', function () {
var attr = 0;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + fg + " \x1B[0m";
var expected = " " + fg + " ";
@@ -506,7 +504,7 @@ describe('ansi_up', function () {
it('should transform a bold attr;foreground to html', function () {
var attr = 1;
var fg = 32;
- var start = "\033[" + attr + ";" + fg + "m " + attr + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + attr + ";" + fg + " \x1B[0m";
var expected = ' " + attr + ";" + fg + " ";
@@ -519,7 +517,7 @@ describe('ansi_up', function () {
it('should transform a bold attr;bright-foreground to html', function () {
var attr = 1;
var fg = 92;
- var start = "\033[" + attr + ";" + fg + "m " + attr + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + fg + "m " + attr + ";" + fg + " \x1B[0m";
var expected = ' " + attr + ";" + fg + " ";
@@ -533,7 +531,7 @@ describe('ansi_up', function () {
var attr = 1;
var fg = 33;
var bg = 42;
- var start = "\033[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \x1B[0m";
var expected = ' " + attr + ";" + bg + ";" + fg + " ";
@@ -547,7 +545,7 @@ describe('ansi_up', function () {
var attr = 1;
var fg = 33;
var bg = 102;
- var start = "\033[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \x1B[0m";
var expected = ' " + attr + ";" + bg + ";" + fg + " ";
@@ -561,7 +559,7 @@ describe('ansi_up', function () {
var attr = 3;
var fg = 33;
var bg = 102;
- var start = "\033[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \x1B[0m";
var expected = ' " + attr + ";" + bg + ";" + fg + " ";
@@ -575,7 +573,7 @@ describe('ansi_up', function () {
var attr = 4;
var fg = 33;
var bg = 102;
- var start = "\033[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \033[0m";
+ var start = "\x1B[" + attr + ";" + bg + ";" + fg + "m " + attr + ";" + bg + ";" + fg + " \x1B[0m";
var expected = ' " + attr + ";" + bg + ";" + fg + " ";
@@ -589,7 +587,7 @@ describe('ansi_up', function () {
var attr = 1;
var fg = 32;
var bg = 42;
- var start = "\n \033[" + fg + "m " + fg + " \033[0m \n \033[" + bg + "m " + bg + " \033[0m \n zimpper ";
+ var start = "\n \x1B[" + fg + "m " + fg + " \x1B[0m \n \x1B[" + bg + "m " + bg + " \x1B[0m \n zimpper ";
var expected = "\n " + fg + " \n " + bg + " \n zimpper ";
@@ -601,7 +599,7 @@ describe('ansi_up', function () {
describe('transform extended colors (palette)', function () {
it('system color, foreground', function () {
- var start = "\033[38;5;1m" + "red" + "\033[0m";
+ var start = "\x1B[38;5;1m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
au.use_classes = true;
@@ -610,7 +608,7 @@ describe('ansi_up', function () {
});
it('system color, foreground (bright)', function () {
- var start = "\033[38;5;9m" + "red" + "\033[0m";
+ var start = "\x1B[38;5;9m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
au.use_classes = true;
@@ -619,7 +617,7 @@ describe('ansi_up', function () {
});
it('system color, background', function () {
- var start = "\033[48;5;1m" + "red" + "\033[0m";
+ var start = "\x1B[48;5;1m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
au.use_classes = true;
@@ -628,7 +626,7 @@ describe('ansi_up', function () {
});
it('system color, background (bright)', function () {
- var start = "\033[48;5;9m" + "red" + "\033[0m";
+ var start = "\x1B[48;5;9m" + "red" + "\x1B[0m";
var expected = 'red';
var au = new AnsiUp();
au.use_classes = true;
@@ -637,7 +635,7 @@ describe('ansi_up', function () {
});
it('palette, foreground', function () {
- var start = "\033[38;5;171m" + "foo" + "\033[0m";
+ var start = "\x1B[38;5;171m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -646,7 +644,7 @@ describe('ansi_up', function () {
});
it('palette, background', function () {
- var start = "\033[48;5;171m" + "foo" + "\033[0m";
+ var start = "\x1B[48;5;171m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -655,7 +653,7 @@ describe('ansi_up', function () {
});
it('combination of bold and palette', function () {
- var start = "\033[1;38;5;171m" + "foo" + "\033[0m";
+ var start = "\x1B[1;38;5;171m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -664,7 +662,7 @@ describe('ansi_up', function () {
});
it('combination of palette and bold', function () {
- var start = "\033[38;5;171;1m" + "foo" + "\033[0m";
+ var start = "\x1B[38;5;171;1m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -675,7 +673,7 @@ describe('ansi_up', function () {
describe('transform extended colors (true color)', function () {
it('foreground', function () {
- var start = "\033[38;2;42;142;242m" + "foo" + "\033[0m";
+ var start = "\x1B[38;2;42;142;242m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -683,7 +681,7 @@ describe('ansi_up', function () {
l.should.eql(expected);
});
it('background', function () {
- var start = "\033[48;2;42;142;242m" + "foo" + "\033[0m";
+ var start = "\x1B[48;2;42;142;242m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -691,7 +689,7 @@ describe('ansi_up', function () {
l.should.eql(expected);
});
it('both foreground and background', function () {
- var start = "\033[38;2;42;142;242;48;2;1;2;3m" + "foo" + "\033[0m";
+ var start = "\x1B[38;2;42;142;242;48;2;1;2;3m" + "foo" + "\x1B[0m";
var expected = 'foo';
var au = new AnsiUp();
au.use_classes = true;
@@ -705,7 +703,7 @@ describe('ansi_up', function () {
it('should correctly convert a string similar to CSI', function () {
// https://github.com/drudru/ansi_up/pull/15
// "[1;31m" is a plain text. not an escape sequence.
- var start = "foo\033[1@bar[1;31mbaz\033[0m";
+ var start = "foo\x1B[1@bar[1;31mbaz\x1B[0m";
var au = new AnsiUp();
var l = au.ansi_to_html(start);
@@ -716,34 +714,34 @@ describe('ansi_up', function () {
l.should.containEql('1;31m');
});
it('(cursor-up)', function () {
- var start = "foo\033[1Abar";
+ var start = "foo\x1B[1Abar";
var au = new AnsiUp();
var l = au.ansi_to_html(start);
l.should.eql('foobar');
});
it('(scroll-left)', function () {
// [1 @ (including ascii space)
- var start = "foo\033[1 @bar";
+ var start = "foo\x1B[1 @bar";
var au = new AnsiUp();
var l = au.ansi_to_html(start);
l.should.eql('foobar');
});
it('(DECMC)', function () {
- var start = "foo\033[?11ibar";
+ var start = "foo\x1B[?11ibar";
var au = new AnsiUp();
var l = au.ansi_to_html(start);
l.should.eql('foobar');
});
/* I cannot find this in the XTERM specs
it('(RLIMGCP)', function () {
- var start = "foo\033[ " + fg + " ";
@@ -782,8 +780,8 @@ describe('ansi_up', function () {
it('should transform a lonely escape', function () {
var attr = 0;
var fg = 32;
- var start1 = "xyz \033";
- var start2 = "[" + attr + ";" + fg + "m " + fg + " \033[0m";
+ var start1 = "xyz \x1B";
+ var start2 = "[" + attr + ";" + fg + "m " + fg + " \x1B[0m";
var expected = " " + fg + " ";
@@ -801,19 +799,19 @@ describe('ansi_up', function () {
/*
describe('ansi to text', function () {
it('should remove color sequence', function () {
- var start = "foo \033[1;32mbar\033[0m baz";
+ var start = "foo \x1B[1;32mbar\x1B[0m baz";
var au = new AnsiUp();
var l = au.ansi_to_text(start);
l.should.eql("foo bar baz");
});
it('should remove unsupported sequence', function () {
- var start = "foo \033[1Abar";
+ var start = "foo \x1B[1Abar";
var au = new AnsiUp();
var l = au.ansi_to_text(start);
l.should.eql('foo bar');
});
it('should keep multiline', function () {
- var start = "foo \033[1;32mbar\nbaz\033[0m qux";
+ var start = "foo \x1B[1;32mbar\nbaz\x1B[0m qux";
var au = new AnsiUp();
var l = au.ansi_to_text(start);
l.should.eql("foo bar\nbaz qux");
diff --git a/tsconfig.json b/tsconfig.json
index c4400d6..6553cbf 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,13 +1,10 @@
{
"compilerOptions": {
- "target": "es5",
- "module": "none",
+ "target": "es6",
+ "module": "es6",
"noEmitOnError": true,
"removeComments": true,
- "sourceMap": true,
- "declaration": true,
- "noImplicitUseStrict": true,
- "outDir": "dist"
- },
- "exclude": [ "node_modules", "dist" ]
+ "sourceMap": false,
+ "declaration": true
+ }
}
\ No newline at end of file