vite-plugin-utils
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -60,13 +60,1 @@ // https://github.com/vitejs/vite/blob/c3f6731bafeadd310efa4325cb8dcc639636fe48/packages/vite/src/node/constants.ts#L25-L33 | ||
export const singlelineCommentsRE = /\/\/.*/g; | ||
/** | ||
* @see https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color | ||
* @see https://en.wikipedia.org/wiki/ANSI_escape_code#Colors | ||
*/ | ||
export const COLOURS = { | ||
$: (c) => (str) => `\x1b[${c}m` + str + '\x1b[0m', | ||
gary: (str) => COLOURS.$(90)(str), | ||
cyan: (str) => COLOURS.$(36)(str), | ||
yellow: (str) => COLOURS.$(33)(str), | ||
green: (str) => COLOURS.$(32)(str), | ||
red: (str) => COLOURS.$(31)(str), | ||
}; |
@@ -67,14 +67,1 @@ | ||
export const singlelineCommentsRE = /\/\/.*/g | ||
/** | ||
* @see https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color | ||
* @see https://en.wikipedia.org/wiki/ANSI_escape_code#Colors | ||
*/ | ||
export const COLOURS = { | ||
$: (c: number) => (str: string) => `\x1b[${c}m` + str + '\x1b[0m', | ||
gary: (str: string) => COLOURS.$(90)(str), | ||
cyan: (str: string) => COLOURS.$(36)(str), | ||
yellow: (str: string) => COLOURS.$(33)(str), | ||
green: (str: string) => COLOURS.$(32)(str), | ||
red: (str: string) => COLOURS.$(31)(str), | ||
}; |
@@ -104,1 +104,13 @@ import path from 'node:path'; | ||
} | ||
/** | ||
* @see https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color | ||
* @see https://en.wikipedia.org/wiki/ANSI_escape_code#Colors | ||
*/ | ||
export const COLOURS = { | ||
$: (c) => (str) => `\x1b[${c}m` + str + '\x1b[0m', | ||
gary: (str) => COLOURS.$(90)(str), | ||
cyan: (str) => COLOURS.$(36)(str), | ||
yellow: (str) => COLOURS.$(33)(str), | ||
green: (str) => COLOURS.$(32)(str), | ||
red: (str) => COLOURS.$(31)(str), | ||
}; |
@@ -125,1 +125,14 @@ import path from 'node:path' | ||
} | ||
/** | ||
* @see https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color | ||
* @see https://en.wikipedia.org/wiki/ANSI_escape_code#Colors | ||
*/ | ||
export const COLOURS = { | ||
$: (c: number) => (str: string) => `\x1b[${c}m` + str + '\x1b[0m', | ||
gary: (str: string) => COLOURS.$(90)(str), | ||
cyan: (str: string) => COLOURS.$(36)(str), | ||
yellow: (str: string) => COLOURS.$(33)(str), | ||
green: (str: string) => COLOURS.$(32)(str), | ||
red: (str: string) => COLOURS.$(31)(str), | ||
}; |
{ | ||
"name": "vite-plugin-utils", | ||
"description": "A collection of opinionated Vite plugin utils", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "", |
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