@weapp-vite/miniprogram-automator 1.2.2 → 1.2.3
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/index.d.mts +2 -2
- package/dist/index.mjs +3 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -557,9 +557,9 @@ declare function decodeQrCode(qrCode: string): Promise<string>;
|
|
|
557
557
|
/** printQrCode 的方法封装。 */
|
|
558
558
|
declare function printQrCode(content: string): Promise<void>;
|
|
559
559
|
/** isPluginPath 的方法封装。 */
|
|
560
|
-
declare function isPluginPath(p:
|
|
560
|
+
declare function isPluginPath(p: unknown): boolean;
|
|
561
561
|
/** extractPluginId 的方法封装。 */
|
|
562
|
-
declare function extractPluginId(p:
|
|
562
|
+
declare function extractPluginId(p: unknown): string;
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region src/index.d.ts
|
|
565
565
|
declare const SmartappAutomator: {
|
package/dist/index.mjs
CHANGED
|
@@ -683,7 +683,7 @@ async function acquireAutomatorPortLease(preferredPort) {
|
|
|
683
683
|
}
|
|
684
684
|
//#endregion
|
|
685
685
|
//#region package.json
|
|
686
|
-
var version = "1.2.
|
|
686
|
+
var version = "1.2.3";
|
|
687
687
|
//#endregion
|
|
688
688
|
//#region src/Native.ts
|
|
689
689
|
/** Native 的实现。 */
|
|
@@ -864,10 +864,12 @@ function printQrCode(content) {
|
|
|
864
864
|
}
|
|
865
865
|
/** isPluginPath 的方法封装。 */
|
|
866
866
|
function isPluginPath(p) {
|
|
867
|
+
if (typeof p !== "string") return false;
|
|
867
868
|
return startWith(p, "plugin-private://");
|
|
868
869
|
}
|
|
869
870
|
/** extractPluginId 的方法封装。 */
|
|
870
871
|
function extractPluginId(p) {
|
|
872
|
+
if (typeof p !== "string") return "";
|
|
871
873
|
const match = p.match(regPluginId);
|
|
872
874
|
return match ? match[1] : "";
|
|
873
875
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/miniprogram-automator",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"description": "完全兼容微信 miniprogram-automator 的现代化替代实现",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"node": "^20.19.0 || >=22.12.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"obug": "^2.1.
|
|
44
|
+
"obug": "^2.1.3",
|
|
45
45
|
"ws": "^8.21.0",
|
|
46
|
-
"@weapp-vite/qr": "1.1.
|
|
46
|
+
"@weapp-vite/qr": "1.1.1"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/ws": "^8.18.1",
|
|
54
|
-
"sharp": "^0.
|
|
54
|
+
"sharp": "^0.35.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "tsdown -w --sourcemap",
|