hexo-deployer-git
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -5,7 +5,7 @@ 'use strict'; | ||
const fs = require('hexo-fs'); | ||
const chalk = require('chalk'); | ||
const { underline } = require('picocolors'); | ||
const nunjucks = require('nunjucks'); | ||
const moment = require('moment'); | ||
const { DateTime } = require('luxon'); | ||
const Promise = require('bluebird'); | ||
const spawn = require('hexo-util/lib/spawn'); | ||
const { spawn } = require('hexo-util'); | ||
const parseConfig = require('./parse_config'); | ||
@@ -15,3 +15,3 @@ | ||
now: function(format) { | ||
return moment().format(format); | ||
return DateTime.now().toFormat(format); | ||
} | ||
@@ -46,3 +46,3 @@ }; | ||
help += ' extend_dirs: [extend directory]\n\n'; | ||
help += 'For more help, you can check the docs: ' + chalk.underline('http://hexo.io/docs/deployment.html'); | ||
help += 'For more help, you can check the docs: ' + underline('https://hexo.io/docs/deployment.html'); | ||
@@ -155,4 +155,4 @@ console.log(help); | ||
function commitMessage(args) { | ||
const message = args.m || args.msg || args.message || 'Site updated: {{ now(\'YYYY-MM-DD HH:mm:ss\') }}'; | ||
const message = args.m || args.msg || args.message || 'Site updated: {{ now("yyyy-MM-dd HH:mm:ss") }}'; | ||
return nunjucks.renderString(message, swigHelpers); | ||
} |
{ | ||
"name": "hexo-deployer-git", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Git deployer plugin of Hexo.", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"test": "mocha test/index.js", | ||
"test-cov": "nyc npm run test" | ||
"test-cov": "c8 --reporter=lcovonly npm run test" | ||
}, | ||
@@ -27,25 +27,25 @@ "directories": { | ||
], | ||
"author": "Tommy Chen <tommy351@gmail.com> (http://zespia.tw)", | ||
"author": "Tommy Chen <tommy351@gmail.com> (https://zespia.tw)", | ||
"maintainers": [ | ||
"Abner Chou <hi@abnerchou.me> (http://abnerchou.me)" | ||
"Abner Chou <hi@abnerchou.me> (https://abnerchou.me)" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"eslint": "^7.1.0", | ||
"eslint-config-hexo": "^4.1.0", | ||
"mocha": "^8.0.1", | ||
"nyc": "^15.0.0" | ||
"c8": "^7.12.0", | ||
"chai": "^4.3.6", | ||
"eslint": "^8.24.0", | ||
"eslint-config-hexo": "^5.0.0", | ||
"mocha": "^10.0.0" | ||
}, | ||
"dependencies": { | ||
"bluebird": "^3.5.0", | ||
"chalk": "^4.0.0", | ||
"hexo-fs": "^3.0.1", | ||
"hexo-util": "^2.1.0", | ||
"moment": "^2.18.0", | ||
"nunjucks": "^3.2.1" | ||
"bluebird": "^3.7.2", | ||
"hexo-fs": "^4.0.0", | ||
"hexo-util": "^2.7.0", | ||
"luxon": "^3.0.4", | ||
"nunjucks": "^3.2.3", | ||
"picocolors": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8.6.0" | ||
"node": ">=14" | ||
} | ||
} |
# hexo-deployer-git | ||
[![Build Status](https://travis-ci.org/hexojs/hexo-deployer-git.svg?branch=master)](https://travis-ci.org/hexojs/hexo-deployer-git) | ||
[![Build Status](https://github.com/hexojs/hexo-deployer-git/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-deployer-git/actions?query=workflow%3ATester) | ||
[![NPM version](https://badge.fury.io/js/hexo-deployer-git.svg)](https://www.npmjs.com/package/hexo-deployer-git) | ||
[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-deployer-git.svg)](https://coveralls.io/r/hexojs/hexo-deployer-git?branch=master) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/liqy4nib33ht70so/branch/master?svg=true)](https://ci.appveyor.com/project/tommy351/hexo-deployer-git/branch/master) | ||
@@ -81,3 +80,3 @@ Git deployer plugin for [Hexo]. | ||
- **branch**: Git branch to deploy the static site to. Branch name specified in `repo:` takes priority. | ||
- **message**: Commit message. Defaults to `Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }}`. | ||
- **message**: Commit message. Defaults to `Site updated: {{ now("yyyy-MM-dd HH:mm:ss") }}`. | ||
- **name** and **email**: User info for committing the change, overrides global config. This info is independent of git login. | ||
@@ -84,0 +83,0 @@ - **extend_dirs**: Additional directories to publish. e.g `demo`, `examples` |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
14258
139
+ Addedluxon@^3.0.4
+ Addedpicocolors@^1.0.0
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedhexo-fs@4.1.3(transitive)
+ Addedhexo-util@3.3.0(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addedluxon@3.4.4(transitive)
+ Addedpicocolors@1.0.1(transitive)
- Removedchalk@^4.0.0
- Removedmoment@^2.18.0
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhexo-fs@3.1.0(transitive)
- Removedmoment@2.30.1(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedbluebird@^3.7.2
Updatedhexo-fs@^4.0.0
Updatedhexo-util@^2.7.0
Updatednunjucks@^3.2.3