@kitql/helpers
Advanced tools
Comparing version 0.8.3-next.1 to 0.8.3-next.2
# @kitql/helper | ||
## 0.8.3-next.2 | ||
### Patch Changes | ||
- [#436](https://github.com/jycouet/kitql/pull/436) | ||
[`c056a39`](https://github.com/jycouet/kitql/commit/c056a395d118b0882fe8f3981b7f49532b0101b1) | ||
Thanks [@jycouet](https://github.com/jycouet)! - perf improvements | ||
## 0.8.3-next.1 | ||
@@ -4,0 +12,0 @@ |
@@ -76,3 +76,3 @@ "use strict"; | ||
module.exports = __toCommonJS(colors_exports); | ||
var import_constants = require("$lib/constants.js"); | ||
var import_constants = require("../constants.js"); | ||
var stylesBrowser = __toESM(require("./stylesBrowser.js"), 1); | ||
@@ -90,3 +90,3 @@ var stylesNode = __toESM(require("./stylesNode.js"), 1); | ||
const colorNode = (style, str) => { | ||
return `${getStyleNode(style).start}${str}${getStyleNode(style).end}`; | ||
return `${getStyleNode(style)[0]}${str}${getStyleNode(style)[1]}`; | ||
}; | ||
@@ -93,0 +93,0 @@ const START1 = `$$KitQL_`; |
@@ -64,42 +64,42 @@ "use strict"; | ||
module.exports = __toCommonJS(stylesNode_exports); | ||
const reset = { start: "\x1B[0m", end: "\x1B[0m" }; | ||
const bold = { start: "\x1B[1m", end: "\x1B[22m" }; | ||
const dim = { start: "\x1B[2m", end: "\x1B[22m" }; | ||
const italic = { start: "\x1B[3m", end: "\x1B[23m" }; | ||
const underline = { start: "\x1B[4m", end: "\x1B[24m" }; | ||
const inverse = { start: "\x1B[7m", end: "\x1B[27m" }; | ||
const hidden = { start: "\x1B[8m", end: "\x1B[28m" }; | ||
const strikethrough = { start: "\x1B[9m", end: "\x1B[29m" }; | ||
const black = { start: "\x1B[30m", end: "\x1B[39m" }; | ||
const red = { start: "\x1B[31m", end: "\x1B[39m" }; | ||
const green = { start: "\x1B[32m", end: "\x1B[39m" }; | ||
const yellow = { start: "\x1B[33m", end: "\x1B[39m" }; | ||
const blue = { start: "\x1B[34m", end: "\x1B[39m" }; | ||
const magenta = { start: "\x1B[35m", end: "\x1B[39m" }; | ||
const cyan = { start: "\x1B[36m", end: "\x1B[39m" }; | ||
const white = { start: "\x1B[37m", end: "\x1B[39m" }; | ||
const gray = { start: "\x1B[90m", end: "\x1B[39m" }; | ||
const bgBlack = { start: "\x1B[40m", end: "\x1B[49m" }; | ||
const bgRed = { start: "\x1B[41m", end: "\x1B[49m" }; | ||
const bgGreen = { start: "\x1B[42m", end: "\x1B[49m" }; | ||
const bgYellow = { start: "\x1B[43m", end: "\x1B[49m" }; | ||
const bgBlue = { start: "\x1B[44m", end: "\x1B[49m" }; | ||
const bgMagenta = { start: "\x1B[45m", end: "\x1B[49m" }; | ||
const bgCyan = { start: "\x1B[46m", end: "\x1B[49m" }; | ||
const bgWhite = { start: "\x1B[47m", end: "\x1B[49m" }; | ||
const blackBright = { start: "\x1B[90m", end: "\x1B[39m" }; | ||
const redBright = { start: "\x1B[91m", end: "\x1B[39m" }; | ||
const greenBright = { start: "\x1B[92m", end: "\x1B[39m" }; | ||
const yellowBright = { start: "\x1B[93m", end: "\x1B[39m" }; | ||
const blueBright = { start: "\x1B[94m", end: "\x1B[39m" }; | ||
const magentaBright = { start: "\x1B[95m", end: "\x1B[39m" }; | ||
const cyanBright = { start: "\x1B[96m", end: "\x1B[39m" }; | ||
const whiteBright = { start: "\x1B[97m", end: "\x1B[39m" }; | ||
const bgBlackBright = { start: "\x1B[100m", end: "\x1B[49m" }; | ||
const bgRedBright = { start: "\x1B[101m", end: "\x1B[49m" }; | ||
const bgGreenBright = { start: "\x1B[102m", end: "\x1B[49m" }; | ||
const bgYellowBright = { start: "\x1B[103m", end: "\x1B[49m" }; | ||
const bgBlueBright = { start: "\x1B[104m", end: "\x1B[49m" }; | ||
const bgMagentaBright = { start: "\x1B[105m", end: "\x1B[49m" }; | ||
const bgCyanBright = { start: "\x1B[106m", end: "\x1B[49m" }; | ||
const bgWhiteBright = { start: "\x1B[107m", end: "\x1B[49m" }; | ||
const reset = ["\x1B[0m", "\x1B[0m"]; | ||
const bold = ["\x1B[1m", "\x1B[22m"]; | ||
const dim = ["\x1B[2m", "\x1B[22m"]; | ||
const italic = ["\x1B[3m", "\x1B[23m"]; | ||
const underline = ["\x1B[4m", "\x1B[24m"]; | ||
const inverse = ["\x1B[7m", "\x1B[27m"]; | ||
const hidden = ["\x1B[8m", "\x1B[28m"]; | ||
const strikethrough = ["\x1B[9m", "\x1B[29m"]; | ||
const black = ["\x1B[30m", "\x1B[39m"]; | ||
const red = ["\x1B[31m", "\x1B[39m"]; | ||
const green = ["\x1B[32m", "\x1B[39m"]; | ||
const yellow = ["\x1B[33m", "\x1B[39m"]; | ||
const blue = ["\x1B[34m", "\x1B[39m"]; | ||
const magenta = ["\x1B[35m", "\x1B[39m"]; | ||
const cyan = ["\x1B[36m", "\x1B[39m"]; | ||
const white = ["\x1B[37m", "\x1B[39m"]; | ||
const gray = ["\x1B[90m", "\x1B[39m"]; | ||
const bgBlack = ["\x1B[40m", "\x1B[49m"]; | ||
const bgRed = ["\x1B[41m", "\x1B[49m"]; | ||
const bgGreen = ["\x1B[42m", "\x1B[49m"]; | ||
const bgYellow = ["\x1B[43m", "\x1B[49m"]; | ||
const bgBlue = ["\x1B[44m", "\x1B[49m"]; | ||
const bgMagenta = ["\x1B[45m", "\x1B[49m"]; | ||
const bgCyan = ["\x1B[46m", "\x1B[49m"]; | ||
const bgWhite = ["\x1B[47m", "\x1B[49m"]; | ||
const blackBright = ["\x1B[90m", "\x1B[39m"]; | ||
const redBright = ["\x1B[91m", "\x1B[39m"]; | ||
const greenBright = ["\x1B[92m", "\x1B[39m"]; | ||
const yellowBright = ["\x1B[93m", "\x1B[39m"]; | ||
const blueBright = ["\x1B[94m", "\x1B[39m"]; | ||
const magentaBright = ["\x1B[95m", "\x1B[39m"]; | ||
const cyanBright = ["\x1B[96m", "\x1B[39m"]; | ||
const whiteBright = ["\x1B[97m", "\x1B[39m"]; | ||
const bgBlackBright = ["\x1B[100m", "\x1B[49m"]; | ||
const bgRedBright = ["\x1B[101m", "\x1B[49m"]; | ||
const bgGreenBright = ["\x1B[102m", "\x1B[49m"]; | ||
const bgYellowBright = ["\x1B[103m", "\x1B[49m"]; | ||
const bgBlueBright = ["\x1B[104m", "\x1B[49m"]; | ||
const bgMagentaBright = ["\x1B[105m", "\x1B[49m"]; | ||
const bgCyanBright = ["\x1B[106m", "\x1B[49m"]; | ||
const bgWhiteBright = ["\x1B[107m", "\x1B[49m"]; |
@@ -16,3 +16,3 @@ import { BROWSER } from '../constants.js'; | ||
const colorNode = (style, str) => { | ||
return `${getStyleNode(style).start}${str}${getStyleNode(style).end}`; | ||
return `${getStyleNode(style)[0]}${str}${getStyleNode(style)[1]}`; | ||
}; | ||
@@ -19,0 +19,0 @@ const START1 = `$$KitQL_`; |
@@ -1,164 +0,41 @@ | ||
export declare const reset: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bold: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const dim: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const italic: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const underline: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const inverse: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const hidden: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const strikethrough: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const black: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const red: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const green: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const yellow: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const blue: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const magenta: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const cyan: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const white: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const gray: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgBlack: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgRed: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgGreen: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgYellow: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgBlue: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgMagenta: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgCyan: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgWhite: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const blackBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const redBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const greenBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const yellowBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const blueBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const magentaBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const cyanBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const whiteBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgBlackBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgRedBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgGreenBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgYellowBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgBlueBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgMagentaBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgCyanBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const bgWhiteBright: { | ||
start: string; | ||
end: string; | ||
}; | ||
export declare const reset: string[]; | ||
export declare const bold: string[]; | ||
export declare const dim: string[]; | ||
export declare const italic: string[]; | ||
export declare const underline: string[]; | ||
export declare const inverse: string[]; | ||
export declare const hidden: string[]; | ||
export declare const strikethrough: string[]; | ||
export declare const black: string[]; | ||
export declare const red: string[]; | ||
export declare const green: string[]; | ||
export declare const yellow: string[]; | ||
export declare const blue: string[]; | ||
export declare const magenta: string[]; | ||
export declare const cyan: string[]; | ||
export declare const white: string[]; | ||
export declare const gray: string[]; | ||
export declare const bgBlack: string[]; | ||
export declare const bgRed: string[]; | ||
export declare const bgGreen: string[]; | ||
export declare const bgYellow: string[]; | ||
export declare const bgBlue: string[]; | ||
export declare const bgMagenta: string[]; | ||
export declare const bgCyan: string[]; | ||
export declare const bgWhite: string[]; | ||
export declare const blackBright: string[]; | ||
export declare const redBright: string[]; | ||
export declare const greenBright: string[]; | ||
export declare const yellowBright: string[]; | ||
export declare const blueBright: string[]; | ||
export declare const magentaBright: string[]; | ||
export declare const cyanBright: string[]; | ||
export declare const whiteBright: string[]; | ||
export declare const bgBlackBright: string[]; | ||
export declare const bgRedBright: string[]; | ||
export declare const bgGreenBright: string[]; | ||
export declare const bgYellowBright: string[]; | ||
export declare const bgBlueBright: string[]; | ||
export declare const bgMagentaBright: string[]; | ||
export declare const bgCyanBright: string[]; | ||
export declare const bgWhiteBright: string[]; |
@@ -1,41 +0,41 @@ | ||
export const reset = { start: '\x1b[0m', end: '\x1b[0m' }; | ||
export const bold = { start: '\x1b[1m', end: '\x1b[22m' }; | ||
export const dim = { start: '\x1b[2m', end: '\x1b[22m' }; | ||
export const italic = { start: '\x1b[3m', end: '\x1b[23m' }; | ||
export const underline = { start: '\x1b[4m', end: '\x1b[24m' }; | ||
export const inverse = { start: '\x1b[7m', end: '\x1b[27m' }; | ||
export const hidden = { start: '\x1b[8m', end: '\x1b[28m' }; | ||
export const strikethrough = { start: '\x1b[9m', end: '\x1b[29m' }; | ||
export const black = { start: '\x1b[30m', end: '\x1b[39m' }; | ||
export const red = { start: '\x1b[31m', end: '\x1b[39m' }; | ||
export const green = { start: '\x1b[32m', end: '\x1b[39m' }; | ||
export const yellow = { start: '\x1b[33m', end: '\x1b[39m' }; | ||
export const blue = { start: '\x1b[34m', end: '\x1b[39m' }; | ||
export const magenta = { start: '\x1b[35m', end: '\x1b[39m' }; | ||
export const cyan = { start: '\x1b[36m', end: '\x1b[39m' }; | ||
export const white = { start: '\x1b[37m', end: '\x1b[39m' }; | ||
export const gray = { start: '\x1b[90m', end: '\x1b[39m' }; | ||
export const bgBlack = { start: '\x1b[40m', end: '\x1b[49m' }; | ||
export const bgRed = { start: '\x1b[41m', end: '\x1b[49m' }; | ||
export const bgGreen = { start: '\x1b[42m', end: '\x1b[49m' }; | ||
export const bgYellow = { start: '\x1b[43m', end: '\x1b[49m' }; | ||
export const bgBlue = { start: '\x1b[44m', end: '\x1b[49m' }; | ||
export const bgMagenta = { start: '\x1b[45m', end: '\x1b[49m' }; | ||
export const bgCyan = { start: '\x1b[46m', end: '\x1b[49m' }; | ||
export const bgWhite = { start: '\x1b[47m', end: '\x1b[49m' }; | ||
export const blackBright = { start: '\x1b[90m', end: '\x1b[39m' }; | ||
export const redBright = { start: '\x1b[91m', end: '\x1b[39m' }; | ||
export const greenBright = { start: '\x1b[92m', end: '\x1b[39m' }; | ||
export const yellowBright = { start: '\x1b[93m', end: '\x1b[39m' }; | ||
export const blueBright = { start: '\x1b[94m', end: '\x1b[39m' }; | ||
export const magentaBright = { start: '\x1b[95m', end: '\x1b[39m' }; | ||
export const cyanBright = { start: '\x1b[96m', end: '\x1b[39m' }; | ||
export const whiteBright = { start: '\x1b[97m', end: '\x1b[39m' }; | ||
export const bgBlackBright = { start: '\x1b[100m', end: '\x1b[49m' }; | ||
export const bgRedBright = { start: '\x1b[101m', end: '\x1b[49m' }; | ||
export const bgGreenBright = { start: '\x1b[102m', end: '\x1b[49m' }; | ||
export const bgYellowBright = { start: '\x1b[103m', end: '\x1b[49m' }; | ||
export const bgBlueBright = { start: '\x1b[104m', end: '\x1b[49m' }; | ||
export const bgMagentaBright = { start: '\x1b[105m', end: '\x1b[49m' }; | ||
export const bgCyanBright = { start: '\x1b[106m', end: '\x1b[49m' }; | ||
export const bgWhiteBright = { start: '\x1b[107m', end: '\x1b[49m' }; | ||
export const reset = ['\x1b[0m', '\x1b[0m']; | ||
export const bold = ['\x1b[1m', '\x1b[22m']; | ||
export const dim = ['\x1b[2m', '\x1b[22m']; | ||
export const italic = ['\x1b[3m', '\x1b[23m']; | ||
export const underline = ['\x1b[4m', '\x1b[24m']; | ||
export const inverse = ['\x1b[7m', '\x1b[27m']; | ||
export const hidden = ['\x1b[8m', '\x1b[28m']; | ||
export const strikethrough = ['\x1b[9m', '\x1b[29m']; | ||
export const black = ['\x1b[30m', '\x1b[39m']; | ||
export const red = ['\x1b[31m', '\x1b[39m']; | ||
export const green = ['\x1b[32m', '\x1b[39m']; | ||
export const yellow = ['\x1b[33m', '\x1b[39m']; | ||
export const blue = ['\x1b[34m', '\x1b[39m']; | ||
export const magenta = ['\x1b[35m', '\x1b[39m']; | ||
export const cyan = ['\x1b[36m', '\x1b[39m']; | ||
export const white = ['\x1b[37m', '\x1b[39m']; | ||
export const gray = ['\x1b[90m', '\x1b[39m']; | ||
export const bgBlack = ['\x1b[40m', '\x1b[49m']; | ||
export const bgRed = ['\x1b[41m', '\x1b[49m']; | ||
export const bgGreen = ['\x1b[42m', '\x1b[49m']; | ||
export const bgYellow = ['\x1b[43m', '\x1b[49m']; | ||
export const bgBlue = ['\x1b[44m', '\x1b[49m']; | ||
export const bgMagenta = ['\x1b[45m', '\x1b[49m']; | ||
export const bgCyan = ['\x1b[46m', '\x1b[49m']; | ||
export const bgWhite = ['\x1b[47m', '\x1b[49m']; | ||
export const blackBright = ['\x1b[90m', '\x1b[39m']; | ||
export const redBright = ['\x1b[91m', '\x1b[39m']; | ||
export const greenBright = ['\x1b[92m', '\x1b[39m']; | ||
export const yellowBright = ['\x1b[93m', '\x1b[39m']; | ||
export const blueBright = ['\x1b[94m', '\x1b[39m']; | ||
export const magentaBright = ['\x1b[95m', '\x1b[39m']; | ||
export const cyanBright = ['\x1b[96m', '\x1b[39m']; | ||
export const whiteBright = ['\x1b[97m', '\x1b[39m']; | ||
export const bgBlackBright = ['\x1b[100m', '\x1b[49m']; | ||
export const bgRedBright = ['\x1b[101m', '\x1b[49m']; | ||
export const bgGreenBright = ['\x1b[102m', '\x1b[49m']; | ||
export const bgYellowBright = ['\x1b[103m', '\x1b[49m']; | ||
export const bgBlueBright = ['\x1b[104m', '\x1b[49m']; | ||
export const bgMagentaBright = ['\x1b[105m', '\x1b[49m']; | ||
export const bgCyanBright = ['\x1b[106m', '\x1b[49m']; | ||
export const bgWhiteBright = ['\x1b[107m', '\x1b[49m']; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "0.8.3-next.1", | ||
"version": "0.8.3-next.2", | ||
"license": "MIT", | ||
@@ -15,0 +15,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9643
101035
2488