diff --git a/package-lock.json b/package-lock.json index 0339646..874f59b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,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", @@ -5614,21 +5614,16 @@ } }, "node_modules/angular-html-parser": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/angular-html-parser/-/angular-html-parser-1.8.0.tgz", - "integrity": "sha512-n5ZowjJJs1OPG3DHDSyUXZvscQzy7uQG227ncL1NzbJEPzfb2XtBZ9qT0PW7cbD7MViho3ijawXoRLCM0ih1rw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/angular-html-parser/-/angular-html-parser-4.0.1.tgz", + "integrity": "sha512-x9SLf2jNNh3nG+haVIwKX/GVW8PcvSRmkeT9WqTDYSAVuwT9IzwEyVm09FCZpOo/dtFRxE9vaNXqcAf/MIxphg==", "dependencies": { - "tslib": "^1.9.3" + "tslib": "^2.5.0" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, - "node_modules/angular-html-parser/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", diff --git a/package.json b/package.json index 62f510f..47e8331 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/rz/angular/add-property-to-html-tag/add-property-to-html-tag.ts b/src/rz/angular/add-property-to-html-tag/add-property-to-html-tag.ts index 206f911..d562c0b 100644 --- a/src/rz/angular/add-property-to-html-tag/add-property-to-html-tag.ts +++ b/src/rz/angular/add-property-to-html-tag/add-property-to-html-tag.ts @@ -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]; diff --git a/src/rz/angular/morph-angular-html.ts b/src/rz/angular/morph-angular-html.ts index 73a1f1d..eda13ec 100644 --- a/src/rz/angular/morph-angular-html.ts +++ b/src/rz/angular/morph-angular-html.ts @@ -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);