@jsenv/plugin-toolbar 1.2.12 → 1.2.14

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.
@@ -10,7 +10,7 @@ l$2 = {
10
10
  throw n;
11
11
  }
12
12
  }, t$2 = function (n) {
13
- return null != n && void 0 === n.constructor;
13
+ return null != n && null == n.constructor;
14
14
  }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout;
15
15
 
16
16
  var t$1,
@@ -1,4 +1,4 @@
1
- import { parseHtmlString, injectHtmlNodeAsEarlyAsPossible, createHtmlNode, stringifyHtmlAst } from "@jsenv/ast";
1
+ import { parseHtml, injectHtmlNodeAsEarlyAsPossible, createHtmlNode, stringifyHtmlAst } from "@jsenv/ast";
2
2
 
3
3
  const jsenvPluginToolbar = ({
4
4
  logLevel = "warn",
@@ -21,7 +21,10 @@ const jsenvPluginToolbar = ({
21
21
  if (urlInfo.url.startsWith(toolbarHtmlClientFileUrl)) {
22
22
  return null;
23
23
  }
24
- const htmlAst = parseHtmlString(urlInfo.content);
24
+ const htmlAst = parseHtml({
25
+ html: urlInfo.content,
26
+ url: urlInfo.url
27
+ });
25
28
  const toolbarInjectorReference = urlInfo.dependencies.inject({
26
29
  type: "js_import",
27
30
  expectedType: "js_module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-toolbar",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "/src/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/ast": "5.2.0",
29
+ "@jsenv/ast": "6.0.0",
30
30
  "@preact/signals": "1.2.1"
31
31
  },
32
32
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import {
2
- parseHtmlString,
2
+ parseHtml,
3
3
  stringifyHtmlAst,
4
4
  injectHtmlNodeAsEarlyAsPossible,
5
5
  createHtmlNode,
@@ -33,7 +33,7 @@ export const jsenvPluginToolbar = ({
33
33
  if (urlInfo.url.startsWith(toolbarHtmlClientFileUrl)) {
34
34
  return null;
35
35
  }
36
- const htmlAst = parseHtmlString(urlInfo.content);
36
+ const htmlAst = parseHtml({ html: urlInfo.content, url: urlInfo.url });
37
37
  const toolbarInjectorReference = urlInfo.dependencies.inject({
38
38
  type: "js_import",
39
39
  expectedType: "js_module",