You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't tested but while browsing the code I noticed wiring.appendToFile() and wiring.prependToFile() uses wiring.writeFileFromString() with the arguments in the wrong order.
// Insert specific content as the last child of each element matched// by the tagName selector. Writes to file.wiring.appendToFile=functionappendToFile(path,tagName,content){varhtml=this.readFileAsString(path);varupdatedContent=this.append(html,tagName,content);this.writeFileFromString(path,updatedContent);};// Insert specific content as the first child of each element matched// by the tagName selector. Writes to file.wiring.prependToFile=functionprependToFile(path,tagName,content){varhtml=this.readFileAsString(path);varupdatedContent=this.prepend(html,tagName,content);this.writeFileFromString(path,updatedContent);};wiring.writeFileFromString=functionwriteFileFromString(html,filePath){fs.writeFileSync(path.resolve(filePath),html,'utf8');};
I haven't tested but while browsing the code I noticed
wiring.appendToFile()
andwiring.prependToFile()
useswiring.writeFileFromString()
with the arguments in the wrong order.source
The text was updated successfully, but these errors were encountered: