@jsenv/ast 6.0.0 → 6.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/ast",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Parse and transform HTML,CSS and JS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  "test": "node --conditions=development ./scripts/test.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@babel/parser": "7.23.0",
36
+ "@babel/parser": "7.23.3",
37
37
  "@jsenv/urls": "2.2.1",
38
38
  "acorn": "8.11.2",
39
39
  "acorn-import-assertions": "1.9.0",
@@ -100,8 +100,8 @@ export const getHtmlNodeAttributePosition = (node, attributeName) => {
100
100
  attributeName === "inlined-from-src"
101
101
  ? "original-src-position"
102
102
  : attributeName === "inlined-from-href"
103
- ? "original-href-position"
104
- : `original-${attributeName}-position`;
103
+ ? "original-href-position"
104
+ : `original-${attributeName}-position`;
105
105
  const originalPosition = getHtmlNodeAttribute(
106
106
  node,
107
107
  originalPositionAttributeName,
@@ -44,8 +44,8 @@ export const generateValueAst = (value) => {
44
44
  value === undefined
45
45
  ? "undefined"
46
46
  : value === null
47
- ? "null"
48
- : JSON.stringify(value),
47
+ ? "null"
48
+ : JSON.stringify(value),
49
49
  );
50
50
  return valueAst;
51
51
  };