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

hexo-abbrlink

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-abbrlink - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

License

16

lib/logic.js

@@ -75,17 +75,7 @@ 'use strict';

//File: hexo-auto-category\lib\logic.js
var opt_AutoCategoryEnable =
this.config.abbrlink &&
this.config.abbrlink.auto_category &&
this.config.abbrlink.auto_category.enable
? this.config.abbrlink.auto_category.enable
: true;
var opt_AutoCategoryDepth =
this.config.abbrlink &&
this.config.abbrlink.auto_category &&
this.config.abbrlink.auto_category.depth
? this.config.abbrlink.auto_category.depth
: 3;
var overwrite = true;
var opt_AutoCategoryEnable = config.auto_category && config.auto_category.enable;
var overwrite = config.auto_category && config.auto_category.over_write;
if (opt_AutoCategoryEnable && overwrite) {
var categories = data.source.split('/');
var opt_AutoCategoryDepth = config.auto_category.depth || 3;
var depth = opt_AutoCategoryDepth || categories.length - 2;

@@ -92,0 +82,0 @@ if (categories.length - 2 == 0 || depth == 0) {

{
"name": "hexo-abbrlink",
"version": "2.2.0",
"version": "2.2.1",
"description": "create one and only link for every post for hexo",

@@ -5,0 +5,0 @@ "main": "index.js",

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