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 +9 -2
- package/dist/astro.js +1 -1
- package/dist/{chunk-W3PXXTYA.js → chunk-IH5FP4BK.js} +2 -0
- package/dist/{chunk-552KT7KH.js → chunk-NVQKD2XR.js} +1 -1
- package/dist/esbuild.js +1 -1
- package/dist/index.js +1 -1
- package/dist/nuxt.js +2 -2
- package/dist/rollup.js +1 -1
- package/dist/rspack.js +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/vite.js +2 -2
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,8 +33,15 @@ interface Options {
|
|
|
33
33
|
vconsole?: viteVConsoleOptions
|
|
34
34
|
/** 需要调试的 cookies, 避免无法调试 HttpOnly 的 cookie */
|
|
35
35
|
debugCookies?: string[]
|
|
36
|
-
|
|
37
|
-
|
|
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
|
@@ -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>
|
package/dist/esbuild.js
CHANGED
package/dist/index.js
CHANGED
package/dist/nuxt.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/rspack.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -12,8 +12,11 @@ interface Options {
|
|
|
12
12
|
chii?: {
|
|
13
13
|
/** default true */
|
|
14
14
|
enable?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
|
|
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
package/dist/webpack.js
CHANGED