unplugin-dingtalk 0.5.2 → 0.5.5

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/dist/astro.cjs CHANGED
@@ -6650,14 +6650,14 @@ var unpluginFactory = (options) => {
6650
6650
  config = _config;
6651
6651
  },
6652
6652
  transformIndexHtml(html) {
6653
- if (enableChii) {
6653
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6654
6654
  return html.replace(
6655
6655
  "</body>",
6656
6656
  `</body>
6657
6657
  <script>
6658
6658
  (() => {
6659
6659
  const script = document.createElement('script');
6660
- script.src="./__chii_proxy/target.js";
6660
+ script.src="/__chii_proxy/target.js";
6661
6661
  document.body.appendChild(script);
6662
6662
  })()
6663
6663
  </script>
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  index_default
3
- } from "./chunk-QU7HLXVD.js";
3
+ } from "./chunk-2MTCPWWF.js";
4
4
  import "./chunk-ZEHXGFFH.js";
5
5
 
6
6
  // src/astro.ts
@@ -1438,14 +1438,14 @@ var unpluginFactory = (options) => {
1438
1438
  config = _config;
1439
1439
  },
1440
1440
  transformIndexHtml(html) {
1441
- if (enableChii) {
1441
+ if ((options == null ? void 0 : options.enable) && enableChii) {
1442
1442
  return html.replace(
1443
1443
  "</body>",
1444
1444
  `</body>
1445
1445
  <script>
1446
1446
  (() => {
1447
1447
  const script = document.createElement('script');
1448
- script.src="./__chii_proxy/target.js";
1448
+ script.src="/__chii_proxy/target.js";
1449
1449
  document.body.appendChild(script);
1450
1450
  })()
1451
1451
  </script>
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-QU7HLXVD.js";
3
+ } from "./chunk-2MTCPWWF.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
package/dist/esbuild.cjs CHANGED
@@ -6651,14 +6651,14 @@ var unpluginFactory = (options) => {
6651
6651
  config = _config;
6652
6652
  },
6653
6653
  transformIndexHtml(html) {
6654
- if (enableChii) {
6654
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6655
6655
  return html.replace(
6656
6656
  "</body>",
6657
6657
  `</body>
6658
6658
  <script>
6659
6659
  (() => {
6660
6660
  const script = document.createElement('script');
6661
- script.src="./__chii_proxy/target.js";
6661
+ script.src="/__chii_proxy/target.js";
6662
6662
  document.body.appendChild(script);
6663
6663
  })()
6664
6664
  </script>
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-QU7HLXVD.js";
3
+ } from "./chunk-2MTCPWWF.js";
4
4
  import "./chunk-ZEHXGFFH.js";
5
5
 
6
6
  // src/esbuild.ts
package/dist/index.cjs CHANGED
@@ -6653,14 +6653,14 @@ var unpluginFactory = (options) => {
6653
6653
  config = _config;
6654
6654
  },
6655
6655
  transformIndexHtml(html) {
6656
- if (enableChii) {
6656
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6657
6657
  return html.replace(
6658
6658
  "</body>",
6659
6659
  `</body>
6660
6660
  <script>
6661
6661
  (() => {
6662
6662
  const script = document.createElement('script');
6663
- script.src="./__chii_proxy/target.js";
6663
+ script.src="/__chii_proxy/target.js";
6664
6664
  document.body.appendChild(script);
6665
6665
  })()
6666
6666
  </script>
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  startVueDevtools,
6
6
  unplugin,
7
7
  unpluginFactory
8
- } from "./chunk-QU7HLXVD.js";
8
+ } from "./chunk-2MTCPWWF.js";
9
9
  import "./chunk-ZEHXGFFH.js";
10
10
  export {
11
11
  index_default as default,
package/dist/nuxt.cjs CHANGED
@@ -6655,14 +6655,14 @@ var unpluginFactory = (options) => {
6655
6655
  config = _config;
6656
6656
  },
6657
6657
  transformIndexHtml(html) {
6658
- if (enableChii) {
6658
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6659
6659
  return html.replace(
6660
6660
  "</body>",
6661
6661
  `</body>
6662
6662
  <script>
6663
6663
  (() => {
6664
6664
  const script = document.createElement('script');
6665
- script.src="./__chii_proxy/target.js";
6665
+ script.src="/__chii_proxy/target.js";
6666
6666
  document.body.appendChild(script);
6667
6667
  })()
6668
6668
  </script>
package/dist/nuxt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-VQXY6FXR.js";
4
- import "./chunk-QU7HLXVD.js";
3
+ } from "./chunk-JXEH4EKT.js";
4
+ import "./chunk-2MTCPWWF.js";
5
5
  import "./chunk-ZEHXGFFH.js";
6
6
 
7
7
  // src/nuxt.ts
package/dist/rollup.cjs CHANGED
@@ -6651,14 +6651,14 @@ var unpluginFactory = (options) => {
6651
6651
  config = _config;
6652
6652
  },
6653
6653
  transformIndexHtml(html) {
6654
- if (enableChii) {
6654
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6655
6655
  return html.replace(
6656
6656
  "</body>",
6657
6657
  `</body>
6658
6658
  <script>
6659
6659
  (() => {
6660
6660
  const script = document.createElement('script');
6661
- script.src="./__chii_proxy/target.js";
6661
+ script.src="/__chii_proxy/target.js";
6662
6662
  document.body.appendChild(script);
6663
6663
  })()
6664
6664
  </script>
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-QU7HLXVD.js";
3
+ } from "./chunk-2MTCPWWF.js";
4
4
  import "./chunk-ZEHXGFFH.js";
5
5
 
6
6
  // src/rollup.ts
package/dist/rspack.cjs CHANGED
@@ -6651,14 +6651,14 @@ var unpluginFactory = (options) => {
6651
6651
  config = _config;
6652
6652
  },
6653
6653
  transformIndexHtml(html) {
6654
- if (enableChii) {
6654
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6655
6655
  return html.replace(
6656
6656
  "</body>",
6657
6657
  `</body>
6658
6658
  <script>
6659
6659
  (() => {
6660
6660
  const script = document.createElement('script');
6661
- script.src="./__chii_proxy/target.js";
6661
+ script.src="/__chii_proxy/target.js";
6662
6662
  document.body.appendChild(script);
6663
6663
  })()
6664
6664
  </script>
package/dist/rspack.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  resovedInfo,
4
4
  startVueDevtools,
5
5
  unpluginFactory
6
- } from "./chunk-QU7HLXVD.js";
6
+ } from "./chunk-2MTCPWWF.js";
7
7
  import "./chunk-ZEHXGFFH.js";
8
8
 
9
9
  // src/rspack.ts
package/dist/vite.cjs CHANGED
@@ -6652,14 +6652,14 @@ var unpluginFactory = (options) => {
6652
6652
  config = _config;
6653
6653
  },
6654
6654
  transformIndexHtml(html) {
6655
- if (enableChii) {
6655
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6656
6656
  return html.replace(
6657
6657
  "</body>",
6658
6658
  `</body>
6659
6659
  <script>
6660
6660
  (() => {
6661
6661
  const script = document.createElement('script');
6662
- script.src="./__chii_proxy/target.js";
6662
+ script.src="/__chii_proxy/target.js";
6663
6663
  document.body.appendChild(script);
6664
6664
  })()
6665
6665
  </script>
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-VQXY6FXR.js";
4
- import "./chunk-QU7HLXVD.js";
3
+ } from "./chunk-JXEH4EKT.js";
4
+ import "./chunk-2MTCPWWF.js";
5
5
  import "./chunk-ZEHXGFFH.js";
6
6
  export {
7
7
  vite_default as default
package/dist/webpack.cjs CHANGED
@@ -6651,14 +6651,14 @@ var unpluginFactory = (options) => {
6651
6651
  config = _config;
6652
6652
  },
6653
6653
  transformIndexHtml(html) {
6654
- if (enableChii) {
6654
+ if ((options == null ? void 0 : options.enable) && enableChii) {
6655
6655
  return html.replace(
6656
6656
  "</body>",
6657
6657
  `</body>
6658
6658
  <script>
6659
6659
  (() => {
6660
6660
  const script = document.createElement('script');
6661
- script.src="./__chii_proxy/target.js";
6661
+ script.src="/__chii_proxy/target.js";
6662
6662
  document.body.appendChild(script);
6663
6663
  })()
6664
6664
  </script>
package/dist/webpack.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  resovedInfo,
4
4
  startVueDevtools,
5
5
  unpluginFactory
6
- } from "./chunk-QU7HLXVD.js";
6
+ } from "./chunk-2MTCPWWF.js";
7
7
  import "./chunk-ZEHXGFFH.js";
8
8
 
9
9
  // src/webpack.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-dingtalk",
3
3
  "type": "module",
4
- "version": "0.5.2",
4
+ "version": "0.5.5",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/zcf0508/unplugin-dingtalk#readme",