abnerwei / hexo-url-submission

Quickly submit new post URLs to Google, Bing, and Baidu search engines to improve the quality and speed of website inclusion
MIT License
37 stars 6 forks source link

该插件报出[DEP0128]警告 #2

Closed zhang-stephen closed 2 years ago

zhang-stephen commented 2 years ago

Information 信息

Version/版本:

Platform/操作系统: Windows 10 20H2 Enterprise

npm版本: 8.5.0

hexo版本: 6.1.0

科学上网方式:

Expected behaviour 预期行为

答: 不要报出兼容性的警告

Actual behaviour 实际行为

答: image 运行中警告如图

Steps to reproduce the behaviour 重现步骤

答:

"dependencies": {
    "@babel/core": "^7.17.8",
    "@babel/preset-env": "^7.14.8",
    "@traptitech/markdown-it-katex": "^3.5.0",
    "chalk": "^5.0.1",
    "hexo": "^6.1.0",
    "hexo-abbrlink": "^2.2.1",
    "hexo-deployer-git": "^3.0.0",
    "hexo-filter-link-post": "^1.0.1",
    "hexo-filter-nofollow": "^2.0.2",
    "hexo-filter-plantuml": "^2.1.1",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-feed": "^3.0.0",
    "hexo-generator-index": "^2.0.0",
    "hexo-generator-searchdb": "^1.3.4",
    "hexo-generator-seo-friendly-sitemap": "^0.2.1",
    "hexo-generator-tag": "^1.0.0",
    "hexo-renderer-markdown-it": "^6.0.0",
    "hexo-renderer-pug": "^3.0.0",
    "hexo-renderer-stylus": "^2.0.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-butterfly": "^4.1.0",
    "hexo-url-submission": "^1.0.6",
    "katex": "^0.15.3",
    "markdown-it-footnote": "^3.0.3",
    "markdown-it-graphviz": "^1.1.2",
    "markdown-it-ins": "^3.0.1",
    "markdown-it-mark": "^3.0.1",
    "markdown-it-sub": "^1.0.0",
    "markdown-it-sup": "^1.0.0",
    "markdown-it-task-checkbox": "^1.0.6",
    "pkg.json": "^2.0.1"
  }

我的博客依赖如上,可以复现该问题

Feature Request 功能方面的建议

答:


appotry commented 2 years ago

"main": "index",

package.json 文件改为这样可以消除报错

zhang-stephen commented 2 years ago

这个我觉得如果可以的话还是更新一下好了,手动修改依赖不是特别好的解决方法。:)

abnerwei commented 2 years ago

ok, 首先感谢各位的反馈,稍后我会检查错误并更新插件。

abnerwei commented 2 years ago

fix in #3

zhang-stephen commented 2 years ago

哈哈哈,我把@appotry误认为是作者本人了~

感谢作者的更新:)