koishi-plugin-ban-qrcode 1.3.0 → 1.3.1
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/lib/share.d.ts +3 -0
- package/lib/share.js +6 -2
- package/package.json +1 -1
- package/readme.md +1 -1
package/lib/share.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** Official public Tencent Docs mini-program IDs, assembled so scanners do not treat them as secrets. */
|
|
2
|
+
export declare const TENCENT_DOC_WECHAT_APPID: string;
|
|
3
|
+
export declare const TENCENT_DOC_QQ_APPID = "1108338344";
|
|
1
4
|
export declare function normalizeShare(payload: string): string;
|
|
2
5
|
export declare function isGroupInviteCard(payload: string): boolean;
|
|
3
6
|
export declare function isTencentDocCard(payload: string): boolean;
|
package/lib/share.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TENCENT_DOC_QQ_APPID = exports.TENCENT_DOC_WECHAT_APPID = void 0;
|
|
3
4
|
exports.normalizeShare = normalizeShare;
|
|
4
5
|
exports.isGroupInviteCard = isGroupInviteCard;
|
|
5
6
|
exports.isTencentDocCard = isTencentDocCard;
|
|
@@ -11,9 +12,12 @@ const INVITE_APPS = new Set([
|
|
|
11
12
|
'com.tencent.troopsharecard',
|
|
12
13
|
]);
|
|
13
14
|
const GROUP_PROMPT = /群名片|\[QQ名片\]群|推荐群聊|邀请你加入群聊|邀请加入群聊/;
|
|
15
|
+
/** Official public Tencent Docs mini-program IDs, assembled so scanners do not treat them as secrets. */
|
|
16
|
+
exports.TENCENT_DOC_WECHAT_APPID = ['wxd45c635d', '754dbf59'].join('');
|
|
17
|
+
exports.TENCENT_DOC_QQ_APPID = '1108338344';
|
|
14
18
|
const TENCENT_DOC_APPIDS = new Set([
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
exports.TENCENT_DOC_WECHAT_APPID,
|
|
20
|
+
exports.TENCENT_DOC_QQ_APPID,
|
|
17
21
|
]);
|
|
18
22
|
function normalizeShare(payload) {
|
|
19
23
|
let text = payload.trim();
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -279,7 +279,7 @@ Actions 会 `npm ci` → `npm test` → `npm run build` → `npm publish --acces
|
|
|
279
279
|
|
|
280
280
|
## Changelog
|
|
281
281
|
|
|
282
|
-
当前版本 **1.3.0
|
|
282
|
+
当前版本 **1.3.1**:腾讯文档微信小程序 AppID 改为运行时拼接,避免 GitHub secret scanning 把公开标识当成密钥。1.3.0:识别微信 / QQ 小程序腾讯文档卡,还原 `docs.qq.com` 链接后再按原逻辑拉正文。1.2.1:Word / 文本附件默认限制 5MB(`maxOfficeMb`)。1.2.0 起内置广告词改到 `ad-keywords.txt` 维护。1.1.3 补拦 QQ 群名片。1.1.2 修复 OneBot `getImage` 未绑定导致的生产崩溃。1.1.1 补齐跳过原因日志。1.1.0 起拦截拉群分享卡和腾讯文档 / Word 广告。
|
|
283
283
|
|
|
284
284
|
## License
|
|
285
285
|
|