Skip to content

Commit

Permalink
ZETA-6955: Move back over to sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieGreenman committed Oct 25, 2023
1 parent 4104bb6 commit 257c89a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
17 changes: 6 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"dependencies": {
"@ctrl/tinycolor": "^3.4.1",
"@types/ejs": "^3.1.2",
"angular-html-parser": "1.8.0",
"angular-html-parser": "^4.0.1",
"ejs": "^3.1.9",
"fast-glob": "3.2.7",
"glob": "^8.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import visit from 'unist-util-visit';
import { EditHtmlFile } from '../interfaces/edit-html.interface';

// will insert code into an html block
export async function addPropertyToHtmlTag(editFile: EditHtmlFile, astNode: any): any {
export function addPropertyToHtmlTag(editFile: EditHtmlFile, astNode: any): any {
const codeBlock = typeof editFile.codeBlock === 'string' ? JSON.parse(editFile.codeBlock) : editFile.codeBlock;
let firstMatchFound = false;
const codeBlockKey = Object.keys(codeBlock)[0];
Expand Down
4 changes: 2 additions & 2 deletions src/rz/angular/morph-angular-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export function morphHtml(editHtmlInput: EditHtmlInput): string {
fileToBeAddedToTree = insertCodeAfterElement(edit, fileToBeAddedToTree);
break;
case 'insertIntoHtmlTag':
fileToBeAddedToTree = await insertIntoHtmlTag(edit, fileToBeAddedToTree);
fileToBeAddedToTree = insertIntoHtmlTag(edit, fileToBeAddedToTree);
break;
case 'addPropertyToHtmlTag':
fileToBeAddedToTree = await addPropertyToHtmlTag(edit, fileToBeAddedToTree);
fileToBeAddedToTree = addPropertyToHtmlTag(edit, fileToBeAddedToTree);
break;
case 'deleteHtmlElement':
fileToBeAddedToTree = deleteHtmlElement(edit, fileToBeAddedToTree);
Expand Down

0 comments on commit 257c89a

Please sign in to comment.