@idomatic/parser-html 1.0.39 → 1.0.41

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.
package/helpers/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { randomUUID } from "crypto";
2
+
1
3
  /**
2
4
  * Adds unique attributes to all elements that don't have the specified attribute.
3
5
  * It skips elements whose tag names appear in the config's excludeTags array.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
- import { processVueTemplate, processHtmlContent } from "./utils.js";
4
3
  import { templateRegex } from "./consts/index.js";
4
+ import { processHtmlContent, processVueTemplate } from "./utils/index.js";
5
5
 
6
6
  /**
7
7
  * Parses an HTML/Vue file and updates its content with unique IDs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idomatic/parser-html",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "HTML/Vue/Angular parser for idomatic CLI",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/utils/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as cheerio from "cheerio";
2
- import { addIds } from "./helpers/index.js";
2
+ import { addIds } from "../helpers/index.js";
3
3
 
4
4
  /**
5
5
  * Processes a Vue template content.