hexo-component-inferno 2.0.4 → 3.1.0

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.
Files changed (64) hide show
  1. package/lib/hexo/filter/locals.js +2 -2
  2. package/lib/hexo/helper/cdn.test.js +7 -7
  3. package/lib/schema/comment/giscus.json +105 -0
  4. package/lib/schema/schema/comment/giscus.json +105 -0
  5. package/lib/view/comment/changyan.js +14 -16
  6. package/lib/view/comment/disqus.js +14 -16
  7. package/lib/view/comment/disqusjs.js +14 -16
  8. package/lib/view/comment/facebook.js +14 -16
  9. package/lib/view/comment/giscus.js +198 -0
  10. package/lib/view/comment/gitalk.js +14 -16
  11. package/lib/view/comment/gitment.js +14 -16
  12. package/lib/view/comment/isso.js +14 -16
  13. package/lib/view/comment/livere.js +14 -16
  14. package/lib/view/comment/twikoo.js +15 -17
  15. package/lib/view/comment/utterances.js +15 -17
  16. package/lib/view/comment/valine.js +14 -16
  17. package/lib/view/comment/waline.js +14 -16
  18. package/lib/view/common/article_media.js +14 -16
  19. package/lib/view/donate/afdian.js +14 -16
  20. package/lib/view/donate/alipay.js +14 -16
  21. package/lib/view/donate/buymeacoffee.js +14 -16
  22. package/lib/view/donate/patreon.js +14 -16
  23. package/lib/view/donate/paypal.js +14 -16
  24. package/lib/view/donate/wechat.js +14 -16
  25. package/lib/view/misc/article_licensing.js +14 -16
  26. package/lib/view/misc/meta.js +15 -17
  27. package/lib/view/misc/open_graph.js +14 -16
  28. package/lib/view/misc/paginator.js +14 -16
  29. package/lib/view/misc/structured_data.js +14 -16
  30. package/lib/view/misc/web_app.js +19 -21
  31. package/lib/view/plugin/baidu_analytics.js +14 -16
  32. package/lib/view/plugin/bing_webmaster.js +14 -16
  33. package/lib/view/plugin/busuanzi.js +14 -16
  34. package/lib/view/plugin/cnzz.js +14 -16
  35. package/lib/view/plugin/cookie_consent.js +14 -16
  36. package/lib/view/plugin/gallery.js +14 -16
  37. package/lib/view/plugin/google_analytics.js +14 -16
  38. package/lib/view/plugin/hotjar.js +14 -16
  39. package/lib/view/plugin/katex.js +14 -16
  40. package/lib/view/plugin/mathjax.js +14 -16
  41. package/lib/view/plugin/outdated_browser.js +14 -16
  42. package/lib/view/plugin/progressbar.js +14 -16
  43. package/lib/view/plugin/statcounter.js +14 -16
  44. package/lib/view/plugin/twitter_conversion_tracking.js +14 -16
  45. package/lib/view/search/algolia.js +14 -16
  46. package/lib/view/search/baidu.js +14 -16
  47. package/lib/view/search/google_cse.js +14 -16
  48. package/lib/view/search/insight.js +14 -16
  49. package/lib/view/share/addthis.js +14 -16
  50. package/lib/view/share/addtoany.js +14 -16
  51. package/lib/view/share/bdshare.js +14 -16
  52. package/lib/view/share/sharejs.js +14 -16
  53. package/lib/view/share/sharethis.js +14 -16
  54. package/lib/view/widget/adsense.js +14 -16
  55. package/lib/view/widget/archives.js +15 -17
  56. package/lib/view/widget/categories.js +14 -16
  57. package/lib/view/widget/followit.js +14 -16
  58. package/lib/view/widget/links.js +14 -16
  59. package/lib/view/widget/recent_posts.js +14 -16
  60. package/lib/view/widget/subscribe_email.js +14 -16
  61. package/lib/view/widget/tags.js +14 -16
  62. package/lib/view/widget/toc.js +17 -19
  63. package/lib/view/widget/toc.test.js +2 -2
  64. package/package.json +30 -28
@@ -4,8 +4,8 @@ var _inferno = require("inferno");
4
4
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
10
  var Toc = require('./toc');
11
11
  var _require = require('inferno-test-utils'),
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "hexo-component-inferno",
3
- "version": "2.0.4",
3
+ "version": "3.1.0",
4
4
  "description": "A collection of Inferno.js layout components and utility scripts for Hexo",
5
5
  "main": "lib/index.js",
6
6
  "repository": "https://github.com/ppoffice/hexo-component-inferno",
7
7
  "author": "ppoffice <ppoffice@users.noreply.github.com>",
8
8
  "license": "MIT",
9
9
  "engines": {
10
- "node": ">=12.4.0"
10
+ "node": ">=14"
11
11
  },
12
12
  "scripts": {
13
13
  "test": "jest",
@@ -29,38 +29,40 @@
29
29
  "asset/"
30
30
  ],
31
31
  "devDependencies": {
32
- "@babel/cli": "^7.8.3",
33
- "@babel/core": "^7.8.3",
34
- "@babel/preset-env": "^7.8.3",
35
- "@types/hexo": "^3.8.5",
36
- "@types/hexo-util": "^0.6.2",
37
- "babel-plugin-inferno": "^6.1.0",
38
- "cheerio": "^1.0.0-rc.10",
39
- "deepmerge": "^4.2.2",
40
- "eslint": "^8.6.0",
32
+ "@babel/cli": "^7.23.9",
33
+ "@babel/core": "^7.23.9",
34
+ "@babel/preset-env": "^7.23.9",
35
+ "@types/hexo": "^3.8.12",
36
+ "@types/hexo-util": "^0.6.8",
37
+ "babel-plugin-inferno": "^6.7.1",
38
+ "cheerio": "^1.0.0-rc.12",
39
+ "deepmerge": "^4.3.1",
40
+ "eslint": "^8.56.0",
41
41
  "eslint-config-hexo": "^5.0.0",
42
- "eslint-config-prettier": "^8.3.0",
43
- "eslint-plugin-jest": "^25.3.4",
42
+ "eslint-config-prettier": "^9.1.0",
43
+ "eslint-plugin-jest": "^27.6.3",
44
44
  "eslint-plugin-json": "^3.1.0",
45
- "eslint-plugin-react": "^7.18.0",
46
- "hexo-renderer-marked": "^5.0.0",
45
+ "eslint-plugin-react": "^7.33.2",
46
+ "hexo-renderer-marked": "^6.2.0",
47
47
  "html-minifier": "^4.0.0",
48
- "inferno-server": "^7.4.1",
49
- "inferno-test-utils": "^8.1.1",
50
- "jest": "^27.4.7",
51
- "jsdoc": "^3.6.3",
48
+ "inferno-server": "^8.2.3",
49
+ "inferno-test-utils": "^8.2.3",
50
+ "jest": "^29.7.0",
51
+ "jest-environment-jsdom": "^29.7.0",
52
+ "jsdoc": "^4.0.2",
52
53
  "minami": "^1.2.3",
53
- "prettier": "^2.0.5"
54
+ "prettier": "^3.2.4",
55
+ "taffydb": "^2.7.3"
54
56
  },
55
57
  "dependencies": {
56
- "ajv": "^8.8.2",
57
- "hexo": "^6.0.0",
58
- "hexo-pagination": "^2.0.0",
59
- "hexo-util": "^2.2.0",
60
- "inferno": "^7.3.3",
61
- "inferno-create-element": "^7.3.3",
58
+ "ajv": "^8.12.0",
59
+ "hexo": "^7.1.1",
60
+ "hexo-pagination": "^3.0.0",
61
+ "hexo-util": "^3.2.0",
62
+ "inferno": "^8.2.3",
63
+ "inferno-create-element": "^8.2.3",
62
64
  "js-yaml": "^4.1.0",
63
- "moment": "^2.24.0",
64
- "semver": "^7.1.1"
65
+ "moment": "^2.30.1",
66
+ "semver": "^7.5.4"
65
67
  }
66
68
  }