chalk-template 0.5.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
- import chalk from 'chalk';
1
+ // eslint-disable-next-line unicorn/import-style
2
+ import chalk, {chalkStderr} from 'chalk';
2
3
 
3
4
  // eslint-disable-next-line unicorn/better-regex
4
5
  const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi;
@@ -182,5 +183,5 @@ function makeChalkTemplate(template) {
182
183
  export const template = makeTemplate(chalk);
183
184
  export default makeChalkTemplate(template);
184
185
 
185
- export const templateStderr = makeTemplate(chalk.stderr);
186
+ export const templateStderr = makeTemplate(chalkStderr);
186
187
  export const chalkTemplateStderr = makeChalkTemplate(templateStderr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chalk-template",
3
- "version": "0.5.0",
3
+ "version": "1.0.0",
4
4
  "description": "Terminal string styling with tagged template literals",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/chalk-template",
@@ -46,12 +46,12 @@
46
46
  "text"
47
47
  ],
48
48
  "dependencies": {
49
- "chalk": "^4.1.2"
49
+ "chalk": "^5.2.0"
50
50
  },
51
51
  "devDependencies": {
52
- "ava": "^5.1.0",
52
+ "ava": "^5.2.0",
53
53
  "cross-env": "^7.0.3",
54
- "tsd": "^0.25.0",
54
+ "tsd": "^0.27.0",
55
55
  "xo": "^0.53.1"
56
56
  }
57
57
  }