Socket
Socket
Sign inDemoInstall

hexo-deployer-git

Package Overview
Dependencies
47
Maintainers
8
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 4.0.0

12

lib/deployer.js

@@ -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`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc