Skip to content

Commit 95c5c34

Browse files
authored
fix: some of notice failed (#311)
1 parent 80e35c7 commit 95c5c34

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

docs/.vuepress/theme/layouts/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<!-- Twikoo -->
1515
<div id="twikoo"></div>
16-
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.16/dist/twikoo.all.min.js" ref="twikooJs"></script>
16+
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.17/dist/twikoo.all.min.js" ref="twikooJs"></script>
1717
</div>
1818
</template>
1919
</ParentLayout>

docs/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.main = require('twikoo-func').main
4444
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车
4545
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
4646
``` json
47-
{ "dependencies": { "twikoo-func": "1.4.16" } }
47+
{ "dependencies": { "twikoo-func": "1.4.17" } }
4848
```
4949

5050
### 命令行部署
@@ -174,7 +174,7 @@ twikoo:
174174

175175
``` html
176176
<div id="tcomment"></div>
177-
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.16/dist/twikoo.all.min.js"></script>
177+
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.17/dist/twikoo.all.min.js"></script>
178178
<script>
179179
twikoo.init({
180180
envId: '您的环境id',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo",
3-
"version": "1.4.16",
3+
"version": "1.4.17",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

src/function/twikoo/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Twikoo cloudbase function v1.4.16
2+
* Twikoo cloudbase function v1.4.17
33
* (c) 2020-present iMaeGoo
44
* Released under the MIT License.
55
*/
@@ -31,7 +31,7 @@ const window = new JSDOM('').window
3131
const DOMPurify = createDOMPurify(window)
3232

3333
// 常量 / constants
34-
const VERSION = '1.4.16'
34+
const VERSION = '1.4.17'
3535
const RES_CODE = {
3636
SUCCESS: 0,
3737
FAIL: 1000,
@@ -1088,7 +1088,7 @@ async function noticePushdeer (comment) {
10881088
}
10891089

10901090
// 即时消息推送内容获取
1091-
function getIMPushContent (comment, { withUrl = true, markdown = false }) {
1091+
function getIMPushContent (comment, { withUrl = true, markdown = false } = {}) {
10921092
const SITE_NAME = config.SITE_NAME
10931093
const NICK = comment.nick
10941094
const MAIL = comment.mail

src/function/twikoo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo-func",
3-
"version": "1.4.16",
3+
"version": "1.4.17",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

src/vercel-min/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "dependencies": { "twikoo-vercel": "1.4.16" } }
1+
{ "dependencies": { "twikoo-vercel": "1.4.17" } }

src/vercel/api/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Twikoo vercel function v1.4.16
2+
* Twikoo vercel function v1.4.17
33
* (c) 2020-present iMaeGoo
44
* Released under the MIT License.
55
*/
@@ -27,7 +27,7 @@ const window = new JSDOM('').window
2727
const DOMPurify = createDOMPurify(window)
2828

2929
// 常量 / constants
30-
const VERSION = '1.4.16'
30+
const VERSION = '1.4.17'
3131
const RES_CODE = {
3232
SUCCESS: 0,
3333
NO_PARAM: 100,
@@ -1099,7 +1099,7 @@ async function noticePushdeer (comment) {
10991099
}
11001100

11011101
// 即时消息推送内容获取
1102-
function getIMPushContent (comment, { withUrl = true, markdown = false }) {
1102+
function getIMPushContent (comment, { withUrl = true, markdown = false } = {}) {
11031103
const SITE_NAME = config.SITE_NAME
11041104
const NICK = comment.nick
11051105
const MAIL = comment.mail

src/vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo-vercel",
3-
"version": "1.4.16",
3+
"version": "1.4.17",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

0 commit comments

Comments
 (0)