Socket
Socket
Sign inDemoInstall

nuxt-seo

Package Overview
Dependencies
2
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.3.0

14

lib/module.js

@@ -23,3 +23,2 @@ const path = require('path')

name: {content: true},
title: {content: true},
subtitle: {content: true},

@@ -93,2 +92,3 @@ author: {content: true},

}
allMetas.openGraph.images = allMetas.openGraph.image

@@ -147,3 +147,3 @@ allMetas.openGraph.article.authors = allMetas.openGraph.article.author

const generate = (metas, opts, id = '', index = false) => {
const generate = (metas, optionsGenerate, id = '', index = false) => {
metas = {...metas}

@@ -161,11 +161,11 @@ Object.keys(metas).map(k => {

if (meta.value) {
if (!opts[k]) {
if (!optionsGenerate[k]) {
return
}
} else if (typeof opts === 'string' && k === 'id') {
meta.value = opts
} else if (typeof optionsGenerate === 'string' && k === 'id') {
meta.value = optionsGenerate
meta.id = id
meta.content = id
} else if (opts[k]) {
meta.value = opts[k]
} else if (optionsGenerate[k]) {
meta.value = optionsGenerate[k]
} else if (meta.default && options[meta.default]) {

@@ -172,0 +172,0 @@ meta.value = options[meta.default]

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

"preferGlobal": false,
"version": "1.2.2",
"version": "1.3.0",
"description": "SEO / HTML Meta Tags Module for Nuxt.js",

@@ -33,3 +33,3 @@ "author": {

"engines": {
"node": ">= 8"
"node": ">=12"
},

@@ -59,7 +59,7 @@ "private": false,

"devDependencies": {
"ava": "^2.3.0",
"got": "^9.6.0",
"nuxt": "^2.9.2",
"vue": "^2.6.10",
"xo": "^0.24.0"
"ava": "^3.8.2",
"got": "^11.1.4",
"nuxt": "^2.12.2",
"vue": "^2.6.11",
"xo": "^0.30.0"
},

@@ -85,3 +85,7 @@ "xo": {

]
},
"resolutions": {
"yargs-parser": "^18.1.2",
"kind-of": "^6.0.3"
}
}

@@ -124,11 +124,41 @@ # Nuxt SEO

- [debug](https://ghub.io/debug): small debugging utility
<details>
<summary><a href="https://ghub.io/debug">debug</a>: small debugging utility</summary>
<b>Author</b>: TJ Holowaychuk</br>
<b>License</b>: MIT</br>
<b>Version</b>: ^4.1.1
</details>
## Dev Dependencies
- [ava](https://ghub.io/ava): Testing can be a drag. AVA helps you get it done.
- [got](https://ghub.io/got): Simplified HTTP requests
- [nuxt](https://ghub.io/nuxt): A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)
- [vue](https://ghub.io/vue): Reactive, component-oriented view layer for modern web interfaces.
- [xo](https://ghub.io/xo): JavaScript happiness style linter ❤️
<details>
<summary><a href="https://ghub.io/ava">ava</a>: Testing can be a drag. AVA helps you get it done.</summary>
<b>Author</b>: novemberborn, sindresorhus, vdemedes</br>
<b>License</b>: MIT</br>
<b>Version</b>: ^2.3.0
</details>
<details>
<summary><a href="https://ghub.io/got">got</a>: Simplified HTTP requests</summary>
<b>Author</b>: sindresorhus, szmarczak</br>
<b>License</b>: MIT</br>
<b>Version</b>: ^9.6.0
</details>
<details>
<summary><a href="https://ghub.io/nuxt">nuxt</a>: A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)</summary>
<b>Author</b>: atinux</br>
<b>License</b>: MIT</br>
<b>Version</b>: ^2.9.2
</details>
<details>
<summary><a href="https://ghub.io/vue">vue</a>: Reactive, component-oriented view layer for modern web interfaces.</summary>
<b>Author</b>: Evan You</br>
<b>License</b>: MIT</br>
<b>Version</b>: ^2.6.10
</details>
<details>
<summary><a href="https://ghub.io/xo">xo</a>: JavaScript happiness style linter ❤️</summary>
<b>Author</b>: Sindre Sorhus</br>
<b>License</b>: MIT</br>
<b>Version</b>: ^0.24.0
</details>

@@ -135,0 +165,0 @@ ## Contributors

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