feat: init
This commit is contained in:
4
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts
generated
vendored
Normal file
4
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare const ansiRegex: ({ onlyFirst }?: {
|
||||
onlyFirst?: boolean | undefined;
|
||||
}) => RegExp;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ansi-regex/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI;;CAA0B,WAcnD,CAAC"}
|
||||
16
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js
generated
vendored
Normal file
16
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
// TODO! cut this down? do we need the onlyFirst option?
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ansiRegex = void 0;
|
||||
const ansiRegex = ({ onlyFirst = false } = {}) => {
|
||||
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
||||
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
||||
// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
|
||||
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
||||
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
|
||||
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
||||
const pattern = `${osc}|${csi}`;
|
||||
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
||||
};
|
||||
exports.ansiRegex = ansiRegex;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map
generated
vendored
Normal file
1
node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ansi-regex/index.ts"],"names":[],"mappings":";AAAA,wDAAwD;;;AAEjD,MAAM,SAAS,GAAG,CAAC,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;IACtD,4DAA4D;IAC5D,MAAM,EAAE,GAAG,oCAAoC,CAAC;IAEhD,mEAAmE;IACnE,MAAM,GAAG,GAAG,0BAA0B,EAAE,GAAG,CAAC;IAE5C,sGAAsG;IACtG,MAAM,GAAG,GACP,oFAAoF,CAAC;IAEvF,MAAM,OAAO,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IAEhC,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC,CAAC;AAdW,QAAA,SAAS,aAcpB","sourcesContent":["// TODO! cut this down? do we need the onlyFirst option?\n\nexport const ansiRegex = ({ onlyFirst = false } = {}) => {\n // Valid string terminator sequences are BEL, ESC\\, and 0x9c\n const ST = \"(?:\\\\u0007|\\\\u001B\\\\u005C|\\\\u009C)\";\n\n // OSC sequences only: ESC ] ... ST (non-greedy until the first ST)\n const osc = `(?:\\\\u001B\\\\][\\\\s\\\\S]*?${ST})`;\n\n // CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte\n const csi =\n \"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:\\\\d{1,4}(?:[;:]\\\\d{0,4})*)?[\\\\dA-PR-TZcf-nq-uy=><~]\";\n\n const pattern = `${osc}|${csi}`;\n\n return new RegExp(pattern, onlyFirst ? undefined : \"g\");\n};\n"]}
|
||||
Reference in New Issue
Block a user