mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 06:40:33 +03:00
Merge branch 'master' into greenkeeper/rollup-plugin-buble-0.19.4
This commit is contained in:
Generated
+53
-1018
File diff suppressed because it is too large
Load Diff
+2
-3
@@ -39,7 +39,7 @@
|
|||||||
"chai": "^4.1.1",
|
"chai": "^4.1.1",
|
||||||
"codecov": "^3.0.0",
|
"codecov": "^3.0.0",
|
||||||
"cross-env": "^5.0.5",
|
"cross-env": "^5.0.5",
|
||||||
"css-loader": "^0.28.4",
|
"css-loader": "^1.0.1",
|
||||||
"doctoc": "^1.3.0",
|
"doctoc": "^1.3.0",
|
||||||
"es6-promise": "^4.1.1",
|
"es6-promise": "^4.1.1",
|
||||||
"express": "^4.15.4",
|
"express": "^4.15.4",
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
"mocha": "^5.0.0",
|
"mocha": "^5.0.0",
|
||||||
"phantomjs-prebuilt": "^2.1.15",
|
"phantomjs-prebuilt": "^2.1.15",
|
||||||
"rimraf": "^2.6.1",
|
"rimraf": "^2.6.1",
|
||||||
"rollup": "^0.66.0",
|
"rollup": "^0.67.0",
|
||||||
"rollup-plugin-buble": "^0.19.4",
|
"rollup-plugin-buble": "^0.19.4",
|
||||||
"rollup-plugin-commonjs": "^9.1.4",
|
"rollup-plugin-commonjs": "^9.1.4",
|
||||||
"rollup-plugin-json": "^2.3.0",
|
"rollup-plugin-json": "^2.3.0",
|
||||||
@@ -77,7 +77,6 @@
|
|||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"lib",
|
"lib",
|
||||||
"yarn.lock",
|
|
||||||
"types/index.d.ts",
|
"types/index.d.ts",
|
||||||
"types/vue.d.ts"
|
"types/vue.d.ts"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export default function _tagGenerator (options = {}) {
|
|||||||
text ({ body = false } = {}) {
|
text ({ body = false } = {}) {
|
||||||
// build a string containing all tags of this type
|
// build a string containing all tags of this type
|
||||||
return tags.reduce((tagsStr, tag) => {
|
return tags.reduce((tagsStr, tag) => {
|
||||||
|
if (Object.keys(tag).length === 0) return tagsStr // Bail on empty tag object
|
||||||
if (!!tag.body !== body) return tagsStr
|
if (!!tag.body !== body) return tagsStr
|
||||||
// build a string containing all attributes of this tag
|
// build a string containing all attributes of this tag
|
||||||
const attrs = Object.keys(tag).reduce((attrsStr, attr) => {
|
const attrs = Object.keys(tag).reduce((attrsStr, attr) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user