@nextclaw/channel-extension-weixin 0.1.5 → 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.
|
@@ -21,6 +21,7 @@ function normalizeAccountConfig(value) {
|
|
|
21
21
|
return {
|
|
22
22
|
enabled: typeof record.enabled === "boolean" ? record.enabled : void 0,
|
|
23
23
|
baseUrl: readString(record.baseUrl),
|
|
24
|
+
userId: readString(record.userId),
|
|
24
25
|
allowFrom: readStringArray(record.allowFrom)
|
|
25
26
|
};
|
|
26
27
|
}
|
|
@@ -59,6 +60,7 @@ function buildLoggedInWeixinChannelConfig(params) {
|
|
|
59
60
|
...currentAccount,
|
|
60
61
|
enabled: true,
|
|
61
62
|
baseUrl,
|
|
63
|
+
...allowUserId ? { userId: allowUserId } : {},
|
|
62
64
|
allowFrom: allowFrom.size > 0 ? [...allowFrom] : void 0
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -84,6 +86,7 @@ const WEIXIN_CHANNEL_CONFIG_SCHEMA = {
|
|
|
84
86
|
properties: {
|
|
85
87
|
enabled: { type: "boolean" },
|
|
86
88
|
baseUrl: { type: "string" },
|
|
89
|
+
userId: { type: "string" },
|
|
87
90
|
allowFrom: {
|
|
88
91
|
type: "array",
|
|
89
92
|
items: { type: "string" }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/channel-extension-weixin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "NextClaw Weixin channel extension process.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@nextclaw/extension-sdk": "0.1.
|
|
22
|
-
"@nextclaw/ncp
|
|
23
|
-
"@nextclaw/ncp": "0.5.
|
|
21
|
+
"@nextclaw/extension-sdk": "0.1.6",
|
|
22
|
+
"@nextclaw/ncp": "0.5.12",
|
|
23
|
+
"@nextclaw/ncp-toolkit": "0.5.17"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^20.17.6",
|