Skip to content

Commit

Permalink
chore: further upgrade dependencies & fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Feb 3, 2024
1 parent 6b18d31 commit 6f4ef15
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion include/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { Migrator } = require('hexo-component-inferno/lib/core/migrate');
const { SchemaLoader } = require('hexo-component-inferno/lib/core/schema');
const { yellow } = require('./util/console');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

function loadThemeConfig(hexo, cfgPaths) {
const configs = cfgPaths.map(cfgPath => fs.readFileSync(cfgPath))
Expand Down
2 changes: 1 addition & 1 deletion include/dependency.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const createLogger = require('hexo-log');
const packageInfo = require('../package.json');
const { yellow, red, green } = require('./util/console');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = hexo => {
function checkDependency(name, reqVer) {
Expand Down
2 changes: 1 addition & 1 deletion include/migration/v2_v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const createLogger = require('hexo-log');
const deepmerge = require('deepmerge');
const Migration = require('hexo-component-inferno/lib/core/migrate').Migration;

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = class extends Migration {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion include/register.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const createLogger = require('hexo-log');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = hexo => {
logger.info('=== Registering Hexo extensions ===');
Expand Down
2 changes: 1 addition & 1 deletion layout/common/comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const createLogger = require('hexo-log');
const { Component } = require('inferno');
const view = require('hexo-component-inferno/lib/core/view');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = class extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion layout/common/donates.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const createLogger = require('hexo-log');
const { Component } = require('inferno');
const view = require('hexo-component-inferno/lib/core/view');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = class extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion layout/common/plugins.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const createLogger = require('hexo-log');
const { Component, Fragment } = require('inferno');
const view = require('hexo-component-inferno/lib/core/view');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = class extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion layout/common/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const createLogger = require('hexo-log');
const { Component } = require('inferno');
const view = require('hexo-component-inferno/lib/core/view');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = class extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion layout/common/share.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const createLogger = require('hexo-log');
const { Component } = require('inferno');
const view = require('hexo-component-inferno/lib/core/view');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

module.exports = class extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion layout/common/widgets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Component } = require('inferno');
const view = require('hexo-component-inferno/lib/core/view');
const classname = require('hexo-component-inferno/lib/util/classname');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

function formatWidgets(widgets) {
const result = {};
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"lint": "eslint --ext .js --ext .jsx --ext .json ."
},
"devDependencies": {
"eslint": "^8.6.0",
"eslint": "^8.56.0",
"eslint-config-hexo": "^5.0.0",
"eslint-plugin-json": "^3.0.0",
"eslint-plugin-react": "^7.17.0"
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-react": "^7.33.2"
},
"dependencies": {
"bulma-stylus": "0.8.0",
"deepmerge": "^4.3.1",
"hexo": "^7.1.1",
"hexo-component-inferno": "^2.0.2",
"hexo-component-inferno": "^2.0.4",
"hexo-log": "^4.1.0",
"hexo-pagination": "^3.0.0",
"hexo-renderer-inferno": "^0.1.3",
"hexo-renderer-stylus": "^3.0.1",
"hexo-util": "^3.2.0",
"inferno": "^7.3.3",
"inferno-create-element": "^7.3.3",
"inferno": "^7.4.11",
"inferno-create-element": "^7.4.11",
"moment": "^2.30.1",
"semver": "^7.5.4"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global hexo */
const createLogger = require('hexo-log');

const logger = typeof createLogger === "function" ? createLogger() : createLogger.default();
const logger = typeof createLogger === 'function' ? createLogger() : createLogger.default();

/**
* Print welcome message
Expand Down

0 comments on commit 6f4ef15

Please sign in to comment.