unplugin-dingtalk 0.1.1 → 0.1.6

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
@@ -238,7 +238,7 @@ var unpluginFactory = (options) => {
238
238
  },
239
239
  transform(_source) {
240
240
  var _a2, _b, _c;
241
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
241
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
242
242
  const code = `/* eslint-disable */;
243
243
  import { devtools } from '@vue/devtools'
244
244
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  src_default
3
- } from "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-QTZOG6NL.js";
4
4
 
5
5
  // src/astro.ts
6
6
  var astro_default = (options) => ({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-QTZOG6NL.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  import { createWebpackPlugin } from "unplugin";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-QTZOG6NL.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
@@ -232,7 +232,7 @@ var unpluginFactory = (options) => {
232
232
  },
233
233
  transform(_source) {
234
234
  var _a2, _b, _c;
235
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
235
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
236
236
  const code = `/* eslint-disable */;
237
237
  import { devtools } from '@vue/devtools'
238
238
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/esbuild.cjs CHANGED
@@ -239,7 +239,7 @@ var unpluginFactory = (options) => {
239
239
  },
240
240
  transform(_source) {
241
241
  var _a2, _b, _c;
242
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
242
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
243
243
  const code = `/* eslint-disable */;
244
244
  import { devtools } from '@vue/devtools'
245
245
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-QTZOG6NL.js";
4
4
 
5
5
  // src/esbuild.ts
6
6
  import { createEsbuildPlugin } from "unplugin";
package/dist/index.cjs CHANGED
@@ -238,7 +238,7 @@ var unpluginFactory = (options) => {
238
238
  },
239
239
  transform(_source) {
240
240
  var _a2, _b, _c;
241
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
241
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
242
242
  const code = `/* eslint-disable */;
243
243
  import { devtools } from '@vue/devtools'
244
244
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  src_default,
3
3
  unplugin,
4
4
  unpluginFactory
5
- } from "./chunk-I4UPMGWK.js";
5
+ } from "./chunk-QTZOG6NL.js";
6
6
  export {
7
7
  src_default as default,
8
8
  unplugin,
package/dist/nuxt.cjs CHANGED
@@ -242,7 +242,7 @@ var unpluginFactory = (options) => {
242
242
  },
243
243
  transform(_source) {
244
244
  var _a2, _b, _c;
245
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
245
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
246
246
  const code = `/* eslint-disable */;
247
247
  import { devtools } from '@vue/devtools'
248
248
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/nuxt.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-KYZ5HD2N.js";
3
+ } from "./chunk-BNQALGGL.js";
4
4
  import {
5
5
  vite_default
6
- } from "./chunk-NRP2YPPZ.js";
7
- import "./chunk-I4UPMGWK.js";
6
+ } from "./chunk-KEG2NDRE.js";
7
+ import "./chunk-QTZOG6NL.js";
8
8
 
9
9
  // src/nuxt.ts
10
10
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
package/dist/rollup.cjs CHANGED
@@ -239,7 +239,7 @@ var unpluginFactory = (options) => {
239
239
  },
240
240
  transform(_source) {
241
241
  var _a2, _b, _c;
242
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
242
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
243
243
  const code = `/* eslint-disable */;
244
244
  import { devtools } from '@vue/devtools'
245
245
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-QTZOG6NL.js";
4
4
 
5
5
  // src/rollup.ts
6
6
  import { createRollupPlugin } from "unplugin";
package/dist/rspack.cjs CHANGED
@@ -239,7 +239,7 @@ var unpluginFactory = (options) => {
239
239
  },
240
240
  transform(_source) {
241
241
  var _a2, _b, _c;
242
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
242
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
243
243
  const code = `/* eslint-disable */;
244
244
  import { devtools } from '@vue/devtools'
245
245
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/rspack.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-QTZOG6NL.js";
4
4
 
5
5
  // src/rspack.ts
6
6
  import { createRspackPlugin } from "unplugin";
package/dist/vite.cjs CHANGED
@@ -239,7 +239,7 @@ var unpluginFactory = (options) => {
239
239
  },
240
240
  transform(_source) {
241
241
  var _a2, _b, _c;
242
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
242
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
243
243
  const code = `/* eslint-disable */;
244
244
  import { devtools } from '@vue/devtools'
245
245
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-NRP2YPPZ.js";
4
- import "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-KEG2NDRE.js";
4
+ import "./chunk-QTZOG6NL.js";
5
5
  export {
6
6
  vite_default as default
7
7
  };
package/dist/webpack.cjs CHANGED
@@ -239,7 +239,7 @@ var unpluginFactory = (options) => {
239
239
  },
240
240
  transform(_source) {
241
241
  var _a2, _b, _c;
242
- if ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable) {
242
+ if ((options == null ? void 0 : options.enable) && ((_a2 = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _a2.enable)) {
243
243
  const code = `/* eslint-disable */;
244
244
  import { devtools } from '@vue/devtools'
245
245
  devtools.connect(${(_b = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _b.host}, ${(_c = options == null ? void 0 : options.vueDevtools) == null ? void 0 : _c.port})
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-KYZ5HD2N.js";
4
- import "./chunk-I4UPMGWK.js";
3
+ } from "./chunk-BNQALGGL.js";
4
+ import "./chunk-QTZOG6NL.js";
5
5
  export {
6
6
  webpack_default as default
7
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-dingtalk",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.6",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/zcf0508/unplugin-dingtalk#readme",
@@ -81,17 +81,6 @@
81
81
  "files": [
82
82
  "dist"
83
83
  ],
84
- "scripts": {
85
- "build": "tsup",
86
- "dev": "tsup --watch src",
87
- "build:fix": "esno scripts/postbuild.ts",
88
- "lint": "eslint .",
89
- "play": "npm -C playground run dev",
90
- "prepublishOnly": "npm run build",
91
- "release": "bumpp && npm publish",
92
- "start": "esno src/index.ts",
93
- "test": "vitest"
94
- },
95
84
  "peerDependencies": {
96
85
  "@nuxt/kit": "^3",
97
86
  "@nuxt/schema": "^3",
@@ -151,5 +140,15 @@
151
140
  "vite-plugin-vconsole": "^2.1.1",
152
141
  "vitest": "^0.34.6",
153
142
  "webpack": "^5.89.0"
143
+ },
144
+ "scripts": {
145
+ "build": "tsup",
146
+ "dev": "tsup --watch src",
147
+ "build:fix": "esno scripts/postbuild.ts",
148
+ "lint": "eslint .",
149
+ "play": "npm -C playground run dev",
150
+ "release": "bumpp",
151
+ "start": "esno src/index.ts",
152
+ "test": "vitest"
154
153
  }
155
- }
154
+ }