ssh-tunneling
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -10,4 +10,5 @@ type Color = 'success' | 'error' | 'info' | 'warn' | 'white' | 'bgWhite' | 'cyan' | 'bgCyan' | 'black' | 'bgBlack' | 'red' | 'bgRed' | 'purple' | 'bgPurple' | 'blue' | 'bgBlue' | 'pink' | 'bgPink' | 'green' | 'bgGreen' | 'yellow' | 'bgYellow' | 'orange' | 'bgOrange' | 'gray' | 'bgGray'; | ||
}[]) => void; | ||
lineGradient: (content: string) => void; | ||
}; | ||
declare const logger: Logger; | ||
export default logger; |
@@ -100,5 +100,82 @@ "use strict"; | ||
}); | ||
}, | ||
lineGradient(content) { | ||
const lines = content.split('\n'); | ||
// const colors = [ | ||
// 40, 41, 42, 43, 44, 45, | ||
// 81, 117, 153, 189, 225 | ||
// ] | ||
// const colors1 = [ | ||
// 51, 87, 123, 159, 195, 231, | ||
// 230, 229, 228, 227, 226 | ||
// ] | ||
// const colors2 = [ | ||
// 45, 81, 117, 153, 189, 225, | ||
// 224, 223, 222, 221, 220 | ||
// ] | ||
const generateColors = (start) => { | ||
// start ไธบๅณไธ่ง็่ฒๅผ๏ผๆ็ ง้กบๆถ้ | ||
// ไธไธ็ธๅทฎ 36๏ผๅทฆๅณ็ธๅทฎ 1 | ||
const right = new Array(6).fill(0).map((_, i) => start + (36 * i)); | ||
const bottom = new Array(5).fill(0).map((_, i) => right[right.length - 1] - i - 1); | ||
const left = new Array(5).fill(0).map((_, i) => bottom[bottom.length - 1] - (36 * (i + 1))); | ||
const top = new Array(5).fill(0).map((_, i) => left[left.length - 1] + i + 1); | ||
// ่ฒๅกไธญๆ5ไธชๆนๅ | ||
const trbl = [ | ||
...top, | ||
...right, | ||
...bottom, | ||
...left, | ||
]; | ||
const rblt = [ | ||
...right, | ||
...bottom, | ||
...left, | ||
...top | ||
]; | ||
const bltr = [ | ||
...bottom, | ||
...left, | ||
...top, | ||
...right, | ||
]; | ||
const ltrb = [ | ||
...left, | ||
...top, | ||
...right, | ||
...bottom, | ||
]; | ||
return trbl; | ||
}; | ||
const colors = generateColors(51); | ||
lines.forEach((str, i) => { | ||
colorOutput({ | ||
content: str, | ||
fontColor: colors[i] | ||
}); | ||
}); | ||
} | ||
}; | ||
// logger.line(Object.keys(config).map((type: any) => ({ type, content: type }))); | ||
// const magic1 = | ||
// ` | ||
// โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโ โโ โโโโโโโโโ | ||
// โโโโโโโโโโโโโโโ โโโ โโโ โโโ โโโ โโโ โโโ โโโ | ||
// โโโ โโโ โโโ โโโ โโโ โโโ โโ โโโโ โโโ โโ | ||
// โโโ โโโ โโโ โโโ โโโ โโโโ โโโโ โโโ | ||
// โโโ โโโ โโโ โโโโโโโโโโโโ โโโโโ โโโโโ โโโโ โโโ | ||
// โโโ โโโ โโโ โโโ โโโ โโโ โโโ โโโ โโโ โโ | ||
// โโโ โโโ โโโ โโโ โโโ โโโ โโโ โโโ โโโ โโโ | ||
// โโ โโโ โโ โโโ โโ โโโโโโโโโ โโ โโโโโโโโโ | ||
// `; | ||
// const magic = ` | ||
// โโโโ โโโโ โโโโโโ โโโโโโโ โโโ โโโโโโโโโโ | ||
// โโโโโ โโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ | ||
// โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโ โโโ | ||
// โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโ โโโ | ||
// โโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ | ||
// โโโ โโโโโโ โโโ โโโโโโโ โโโ โโโโโโโโโโ | ||
// ` | ||
// logger.lineGradient(magic1); | ||
// logger.lineGradient(magic); | ||
exports.default = logger; |
{ | ||
"private": false, | ||
"name": "ssh-tunneling", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "a ssh-tunneling client for nodejs", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
40106
756
3