@kitql/helper
Advanced tools
Comparing version 0.8.0-exp.1 to 0.8.0-exp.2
# @kitql/helper | ||
## 0.8.0-exp.2 | ||
### Patch Changes | ||
- [#386](https://github.com/jycouet/kitql/pull/386) | ||
[`2cd7b4d`](https://github.com/jycouet/kitql/commit/2cd7b4d97694035974cfdb838138339fccc1daf3) | ||
Thanks [@jycouet](https://github.com/jycouet)! - Remove colors from browser in production | ||
## 0.8.0-exp.1 | ||
@@ -4,0 +12,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { BROWSER } from 'esm-env'; | ||
import { BROWSER, DEV } from 'esm-env'; | ||
import * as stylesBrowser from './stylesBrowser.js'; | ||
@@ -22,2 +22,5 @@ import * as stylesNode from './stylesNode.js'; | ||
const colorBrowser = (style, str) => { | ||
if (BROWSER && !DEV) { | ||
return str; | ||
} | ||
return `${START1}${style}${START2}${str}${END}`; | ||
@@ -50,2 +53,5 @@ }; | ||
} | ||
if (BROWSER && !DEV) { | ||
return [str]; | ||
} | ||
const originalStr = str; | ||
@@ -52,0 +58,0 @@ const posToReplace = []; |
{ | ||
"name": "@kitql/helper", | ||
"description": "Some useful helpers", | ||
"version": "0.8.0-exp.1", | ||
"version": "0.8.0-exp.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "type": "module", |
55807
1256