Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-local-pagefooter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-local-pagefooter - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

22

index.js

@@ -10,8 +10,8 @@ var moment = require('moment');

hooks: {
'page:before': function(page) {
'page:before': function (page) {
var _label = 'File Modify: ',
_format = 'YYYY-MM-DD HH:mm:ss',
_copy = 'powered by Gitbook',
_islocal = true;
if(this.options.pluginsConfig['local-pagefooter']) {
_format = 'YYYY-MM-DD HH:mm:ss',
_copy = 'powered by Gitbook',
_islocal = true;
if (this.options.pluginsConfig['local-pagefooter']) {
_label = this.options.pluginsConfig['local-pagefooter']['modify_label'] || _label;

@@ -21,5 +21,5 @@ _format = this.options.pluginsConfig['local-pagefooter']['modify_format'] || _format;

var _c = this.options.pluginsConfig['local-pagefooter']['copyright'];
_copy = _c ? _c + ' all right reserved,' + _copy : _copy;
_copy = _c ? '@' + _c + ' ' + _copy : _copy;
}
var _copy = '<span class="copyright">'+_copy+'</span>'
var _copy = '<span class="copyright">' + _copy + '</span>'
var str = ' \n\n<footer class="page-footer">' + _copy +

@@ -35,8 +35,8 @@ '<span class="footer-modification">' +

filters: {
date: function(d, format) {
date: function (d, format) {
var _islocal = this.options.pluginsConfig['local-pagefooter']['islocal'] || _islocal;
var time = '';
if (_islocal){
if (_islocal) {
time = moment(d).local().format(format)
}else{
} else {
time = moment(d).format(format)

@@ -47,2 +47,2 @@ }

}
};
};

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "1.0.3",
"version": "1.0.4",
"author": {

@@ -8,0 +8,0 @@ "name": "webkong",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc