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

meta-generator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meta-generator - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "meta-generator",
"version": "0.1.2",
"version": "0.1.3",
"description": "Utility for generating document metadata.",

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

@@ -35,3 +35,6 @@ const getTag = require('get-tag');

'viewport': 'width=device-width, initial-scale=1',
'title': data.title && getTag('title', data.title),
'title': data.title && [
getTag('title', data.title),
getTag('meta', null, {name: 'title', content: data.title})
].flat(),
'dns': handleDnsResolution(data.preconnect, data.dns_prefetch),

@@ -38,0 +41,0 @@ 'author': data.name,

@@ -194,4 +194,3 @@ const getTag = require('get-tag');

return value;
}
if (tag.includes('twitter')) {
} else if (tag.includes('twitter')) {
return getTag('meta', null, {

@@ -198,0 +197,0 @@ [data.twitter_attr_name || 'name']: tag,

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