unplugin-dingtalk 1003.0.0 → 1003.1.0

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/README.md CHANGED
@@ -33,8 +33,15 @@ interface Options {
33
33
  vconsole?: viteVConsoleOptions
34
34
  /** 需要调试的 cookies, 避免无法调试 HttpOnly 的 cookie */
35
35
  debugCookies?: string[]
36
- /** 默认值 `true` */
37
- chii?: boolean
36
+ chii?: {
37
+ /** 默认值 `true` */
38
+ enable?: boolean
39
+ /**
40
+ * 默认值 `false`
41
+ * @link https://chii.liriliri.io/docs/#usage
42
+ */
43
+ embedded?: boolean
44
+ }
38
45
  }
39
46
  ```
40
47
 
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  index_default
3
- } from "./chunk-W3PXXTYA.js";
3
+ } from "./chunk-IH5FP4BK.js";
4
4
  import "./chunk-A2RZ6ACY.js";
5
5
  import "./chunk-MCTMMV5B.js";
6
6
 
@@ -1605,6 +1605,7 @@ var unpluginFactory = (options) => {
1605
1605
  config = _config;
1606
1606
  },
1607
1607
  transformIndexHtml(html) {
1608
+ var _a;
1608
1609
  if ((options == null ? void 0 : options.enable) && enableChii) {
1609
1610
  return html.replace(
1610
1611
  "</body>",
@@ -1613,6 +1614,7 @@ var unpluginFactory = (options) => {
1613
1614
  (() => {
1614
1615
  const script = document.createElement('script');
1615
1616
  script.src="/__chii_proxy/target.js";
1617
+ ${((_a = options == null ? void 0 : options.chii) == null ? void 0 : _a.embedded) ? 'script.setAttribute("embedded", "true");' : ""}
1616
1618
  document.body.appendChild(script);
1617
1619
  })()
1618
1620
  </script>
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-W3PXXTYA.js";
3
+ } from "./chunk-IH5FP4BK.js";
4
4
  import {
5
5
  interopDefault
6
6
  } from "./chunk-KQOHODTC.js";
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-W3PXXTYA.js";
3
+ } from "./chunk-IH5FP4BK.js";
4
4
  import "./chunk-A2RZ6ACY.js";
5
5
  import "./chunk-MCTMMV5B.js";
6
6
 
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  resovedInfo,
4
4
  unplugin,
5
5
  unpluginFactory
6
- } from "./chunk-W3PXXTYA.js";
6
+ } from "./chunk-IH5FP4BK.js";
7
7
  import "./chunk-A2RZ6ACY.js";
8
8
  import "./chunk-MCTMMV5B.js";
9
9
  export {
package/dist/nuxt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-552KT7KH.js";
4
- import "./chunk-W3PXXTYA.js";
3
+ } from "./chunk-NVQKD2XR.js";
4
+ import "./chunk-IH5FP4BK.js";
5
5
  import "./chunk-A2RZ6ACY.js";
6
6
  import "./chunk-KQOHODTC.js";
7
7
  import "./chunk-MCTMMV5B.js";
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-W3PXXTYA.js";
3
+ } from "./chunk-IH5FP4BK.js";
4
4
  import "./chunk-A2RZ6ACY.js";
5
5
  import "./chunk-MCTMMV5B.js";
6
6
 
package/dist/rspack.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  fetch,
3
3
  resovedInfo,
4
4
  unpluginFactory
5
- } from "./chunk-W3PXXTYA.js";
5
+ } from "./chunk-IH5FP4BK.js";
6
6
  import "./chunk-A2RZ6ACY.js";
7
7
  import "./chunk-MCTMMV5B.js";
8
8
 
package/dist/types.d.ts CHANGED
@@ -12,8 +12,11 @@ interface Options {
12
12
  chii?: {
13
13
  /** default true */
14
14
  enable?: boolean;
15
- /** default 127.0.0.1 */
16
- host: string;
15
+ /**
16
+ * default false
17
+ * @link [chii embedded](https://chii.liriliri.io/docs/#usage)
18
+ */
19
+ embedded?: boolean;
17
20
  };
18
21
  debugCookies?: string[];
19
22
  }
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-552KT7KH.js";
4
- import "./chunk-W3PXXTYA.js";
3
+ } from "./chunk-NVQKD2XR.js";
4
+ import "./chunk-IH5FP4BK.js";
5
5
  import "./chunk-A2RZ6ACY.js";
6
6
  import "./chunk-KQOHODTC.js";
7
7
  import "./chunk-MCTMMV5B.js";
package/dist/webpack.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  fetch,
3
3
  resovedInfo,
4
4
  unpluginFactory
5
- } from "./chunk-W3PXXTYA.js";
5
+ } from "./chunk-IH5FP4BK.js";
6
6
  import "./chunk-A2RZ6ACY.js";
7
7
  import "./chunk-MCTMMV5B.js";
8
8
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-dingtalk",
3
3
  "type": "module",
4
- "version": "1003.0.0",
4
+ "version": "1003.1.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/zcf0508/unplugin-dingtalk#readme",