metascraper-title
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="3.1.0"></a> | ||
# [3.1.0](https://github.com/microlinkhq/metascraper/tree/master/packages/metascraper-title/compare/v3.0.0...v3.1.0) (2017-12-17) | ||
**Note:** Version bump only for package metascraper-title | ||
<a name="3.0.0"></a> | ||
@@ -8,0 +16,0 @@ # [3.0.0](https://github.com/microlinkhq/metascraper/tree/master/packages/metascraper-title/compare/2.0.0...3.0.0) (2017-12-15) |
10
index.js
@@ -16,4 +16,4 @@ 'use strict' | ||
module.exports = () => { | ||
const rules = [ | ||
module.exports = () => ({ | ||
title: [ | ||
wrap($ => $('meta[property="og:title"]').attr('content')), | ||
@@ -31,6 +31,2 @@ wrap($ => $('meta[name="twitter:title"]').attr('content')), | ||
] | ||
rules.propName = 'title' | ||
return rules | ||
} | ||
}) |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://metascraper.js.org", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
2272
25