Change node.js 16.6.0 dependency that Array.prototype.at
This commit is contained in:
@ -9,7 +9,7 @@ function populateTemplate(strings: TemplateStringsArray, ...args: unknown[]) {
|
|||||||
if (strings[i]) {
|
if (strings[i]) {
|
||||||
chunks.push(strings[i]);
|
chunks.push(strings[i]);
|
||||||
// remember last indent of the string portion
|
// remember last indent of the string portion
|
||||||
lastStringLineLength = strings[i].split("\n").at(-1)?.length ?? 0;
|
lastStringLineLength = strings[i].split("\n").slice(-1)[0]?.length ?? 0;
|
||||||
}
|
}
|
||||||
if (args[i]) {
|
if (args[i]) {
|
||||||
// if the interpolation value has newlines, indent the interpolation values
|
// if the interpolation value has newlines, indent the interpolation values
|
||||||
|
Reference in New Issue
Block a user