Socket
Socket
Sign inDemoInstall

vuepress-plugin-autometa

Package Overview
Dependencies
7
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.12 to 0.1.13

14

index.js
'use strict';
const URL = require('url');
const _ = {

@@ -8,2 +7,4 @@ defaultsDeep: require('lodash.defaultsdeep'),

isEmpty : require('lodash.isempty'),
trimStart: require('lodash.trimstart'),
trimEnd: require('lodash.trimend')
};

@@ -28,2 +29,5 @@

const resolveURL = ( base, path ) =>
`${_.trimEnd( base, '/' )}/${_.trimStart( path, '/' )}`
/**

@@ -58,3 +62,3 @@ * @return {object}

// so far, i couldn't figure out a proper way to extend config head
// and add <link rel="canonical" href="URL.resolve( canonical_base, $page.path )">
// and add <link rel="canonical" href="resolveURL( canonical_base, $page.path )">

@@ -246,4 +250,2 @@ // -------------------------------------------------------------------------

/**

@@ -257,3 +259,3 @@ * @return {string}

{
return URL.resolve( options.canonical_base, $page.path );
return resolveURL( options.canonical_base, $page.path );
}

@@ -504,3 +506,3 @@

{
out = URL.resolve( options.canonical_base, out );
out = resolveURL( options.canonical_base, out );

@@ -507,0 +509,0 @@ return out;

{
"name": "vuepress-plugin-autometa",
"version": "0.1.12",
"version": "0.1.13",
"description": "Auto meta tags plugin for VuePress",

@@ -44,2 +44,4 @@ "main": "index.js",

"lodash.isempty": "4.4.0",
"lodash.trimend": "^4.5.1",
"lodash.trimstart": "^4.5.1",
"remove-markdown": "0.3.0",

@@ -46,0 +48,0 @@ "striptags": "3.1.1"

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