unplugin-dingtalk 1004.0.0 → 1006.0.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/dist/__chrome_devtools.cjs +115 -0
- package/dist/__chrome_devtools.d.cts +3 -0
- package/dist/__chrome_devtools.js +1 -1
- package/dist/astro.cjs +679 -0
- package/dist/astro.d.cts +13 -0
- package/dist/astro.js +2 -2
- package/dist/{chunk-DZEMXGMI.js → chunk-2YQKM4BX.js} +2 -2
- package/dist/{chunk-5U7LETMH.js → chunk-EG2ZYJ3S.js} +112 -75
- package/dist/{chunk-7VYUT3GL.js → chunk-LMNMIIAV.js} +2 -2
- package/dist/esbuild.cjs +669 -0
- package/dist/esbuild.d.cts +9 -0
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +676 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -2
- package/dist/main-Q4R5NCQC.js +129 -0
- package/dist/nuxt.cjs +844 -0
- package/dist/nuxt.d.cts +11 -0
- package/dist/nuxt.js +3 -3
- package/dist/rollup.cjs +669 -0
- package/dist/rollup.d.cts +9 -0
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +729 -0
- package/dist/rspack.d.cts +9 -0
- package/dist/rspack.d.ts +2 -1
- package/dist/rspack.js +8 -2
- package/dist/types.cjs +19 -0
- package/dist/types.d.cts +38 -0
- package/dist/utils.cjs +34 -0
- package/dist/utils.d.cts +6 -0
- package/dist/vite.cjs +825 -0
- package/dist/vite.d.cts +9 -0
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +723 -0
- package/dist/webpack.d.cts +9 -0
- package/dist/webpack.js +8 -2
- package/package.json +55 -14
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as webpack from 'webpack';
|
|
2
|
+
import { Options, SetupMiddlewares } from './types.cjs';
|
|
3
|
+
import 'webpack-dev-server';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'vite-plugin-vconsole';
|
|
6
|
+
|
|
7
|
+
declare const _default: (options: Options) => readonly [SetupMiddlewares, webpack.WebpackPluginInstance];
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
package/dist/webpack.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
createProxyMiddleware,
|
|
2
3
|
resovedInfo,
|
|
3
4
|
unpluginFactory
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EG2ZYJ3S.js";
|
|
5
6
|
import {
|
|
6
7
|
getChromeDevtoolsHtml
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2YQKM4BX.js";
|
|
8
9
|
import "./chunk-5JBD5THX.js";
|
|
9
10
|
|
|
10
11
|
// src/webpack.ts
|
|
@@ -22,6 +23,9 @@ var webpack_default = (options) => {
|
|
|
22
23
|
} = options || {};
|
|
23
24
|
const enableChii = (chii == null ? void 0 : chii.enable) !== false;
|
|
24
25
|
const injectSetupMiddlewares = (middlewares, devServer) => {
|
|
26
|
+
if (!(options == null ? void 0 : options.enable)) {
|
|
27
|
+
return middlewares;
|
|
28
|
+
}
|
|
25
29
|
if (options.debugCookies && options.debugCookies.length > 0) {
|
|
26
30
|
devServer.app.use((req, res, next) => {
|
|
27
31
|
const cookies = cookie.parse(req.headers.cookie || "");
|
|
@@ -48,6 +52,8 @@ var webpack_default = (options) => {
|
|
|
48
52
|
res.end();
|
|
49
53
|
}
|
|
50
54
|
});
|
|
55
|
+
const proxyMiddleware = createProxyMiddleware(debug);
|
|
56
|
+
devServer.app.use(proxyMiddleware(resovedInfo));
|
|
51
57
|
}
|
|
52
58
|
devServer.app.get("/open-dingtalk", (req, res) => {
|
|
53
59
|
const targetURL = resovedInfo.targetURL;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-dingtalk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1006.0.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/zcf0508/unplugin-dingtalk#readme",
|
|
@@ -20,18 +20,54 @@
|
|
|
20
20
|
"transform"
|
|
21
21
|
],
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"./
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./astro": {
|
|
29
|
+
"types": "./dist/astro.d.ts",
|
|
30
|
+
"import": "./dist/astro.js",
|
|
31
|
+
"require": "./dist/astro.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./rspack": {
|
|
34
|
+
"types": "./dist/rspack.d.ts",
|
|
35
|
+
"import": "./dist/rspack.js",
|
|
36
|
+
"require": "./dist/rspack.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./vite": {
|
|
39
|
+
"types": "./dist/vite.d.ts",
|
|
40
|
+
"import": "./dist/vite.js",
|
|
41
|
+
"require": "./dist/vite.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./webpack": {
|
|
44
|
+
"types": "./dist/webpack.d.ts",
|
|
45
|
+
"import": "./dist/webpack.js",
|
|
46
|
+
"require": "./dist/webpack.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./rollup": {
|
|
49
|
+
"types": "./dist/rollup.d.ts",
|
|
50
|
+
"import": "./dist/rollup.js",
|
|
51
|
+
"require": "./dist/rollup.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./esbuild": {
|
|
54
|
+
"types": "./dist/esbuild.d.ts",
|
|
55
|
+
"import": "./dist/esbuild.js",
|
|
56
|
+
"require": "./dist/esbuild.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./nuxt": {
|
|
59
|
+
"types": "./dist/nuxt.d.ts",
|
|
60
|
+
"import": "./dist/nuxt.js",
|
|
61
|
+
"require": "./dist/nuxt.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./types": {
|
|
64
|
+
"types": "./dist/types.d.ts",
|
|
65
|
+
"import": "./dist/types.js",
|
|
66
|
+
"require": "./dist/types.cjs"
|
|
67
|
+
},
|
|
32
68
|
"./*": "./*"
|
|
33
69
|
},
|
|
34
|
-
"main": "dist/index.
|
|
70
|
+
"main": "dist/index.cjs",
|
|
35
71
|
"module": "dist/index.js",
|
|
36
72
|
"types": "dist/index.d.ts",
|
|
37
73
|
"typesVersions": {
|
|
@@ -48,11 +84,12 @@
|
|
|
48
84
|
"peerDependencies": {
|
|
49
85
|
"@nuxt/kit": "^3",
|
|
50
86
|
"@nuxt/schema": "^3",
|
|
51
|
-
"@rsbuild/core": "^0.
|
|
87
|
+
"@rsbuild/core": "^0.4.3",
|
|
88
|
+
"@rspack/core": "^0.5.4",
|
|
52
89
|
"esbuild": "*",
|
|
90
|
+
"proper-lockfile": "^4.1.2",
|
|
53
91
|
"rollup": "^3",
|
|
54
92
|
"vite": ">=3",
|
|
55
|
-
"vite-plugin-vconsole": "^2.1.1",
|
|
56
93
|
"webpack": "^4 || ^5"
|
|
57
94
|
},
|
|
58
95
|
"peerDependenciesMeta": {
|
|
@@ -85,7 +122,7 @@
|
|
|
85
122
|
"cookie": "^1.0.2",
|
|
86
123
|
"http-proxy": "^1.18.1",
|
|
87
124
|
"picocolors": "^1.0.1",
|
|
88
|
-
"unplugin": "
|
|
125
|
+
"unplugin": "2.2.0",
|
|
89
126
|
"z-chii": "1.15.5-beta.1"
|
|
90
127
|
},
|
|
91
128
|
"devDependencies": {
|
|
@@ -93,13 +130,16 @@
|
|
|
93
130
|
"@nuxt/kit": "^3.8.2",
|
|
94
131
|
"@nuxt/schema": "^3.8.2",
|
|
95
132
|
"@types/node": "^20.10.3",
|
|
133
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
96
134
|
"bumpp": "^9.2.0",
|
|
97
135
|
"chalk": "^5.3.0",
|
|
98
136
|
"eslint": "^8.55.0",
|
|
99
137
|
"eslint-plugin-security": "^3.0.0",
|
|
138
|
+
"esno": "^4.0.0",
|
|
100
139
|
"fast-glob": "^3.3.2",
|
|
101
140
|
"get-port-please": "^3.1.2",
|
|
102
141
|
"nodemon": "^3.0.2",
|
|
142
|
+
"proper-lockfile": "^4.1.2",
|
|
103
143
|
"rimraf": "^5.0.5",
|
|
104
144
|
"rollup": "^4.6.1",
|
|
105
145
|
"tsup": "^8.0.1",
|
|
@@ -112,6 +152,7 @@
|
|
|
112
152
|
"scripts": {
|
|
113
153
|
"build": "tsup",
|
|
114
154
|
"dev": "tsup --watch src",
|
|
155
|
+
"build:fix": "esno scripts/postbuild.ts",
|
|
115
156
|
"lint": "eslint .",
|
|
116
157
|
"play": "npm -C playground run dev",
|
|
117
158
|
"release": "bumpp",
|