chalk-template 0.3.0 → 0.3.1

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -161,7 +161,7 @@ export default function chalkTemplate(firstString, ...arguments_) {
161
161
 
162
162
  const parts = [firstString.raw[0]];
163
163
 
164
- for (let index = 1; index < firstString.length; index++) {
164
+ for (let index = 1; index < firstString.raw.length; index++) {
165
165
  parts.push(
166
166
  String(arguments_[index - 1]).replace(/[{}\\]/g, '\\$&'),
167
167
  String(firstString.raw[index]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chalk-template",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Terminal string styling with tagged template literals",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/chalk-template",