reshow
Advanced tools
Comparing version 0.16.5 to 0.16.6
@@ -38,2 +38,4 @@ "use strict"; | ||
var _withArray = require("with-array"); | ||
var _updateCanonicalUrl = _interopRequireWildcard(require("../../src/updateCanonicalUrl")); | ||
@@ -47,3 +49,2 @@ | ||
var isArray = Array.isArray; | ||
var isInit; | ||
@@ -62,7 +63,3 @@ | ||
if (htmlTitle) { | ||
if (isArray(htmlTitle)) { | ||
oDoc.title = (0, _getObjectValue["default"])(htmlTitle, [0]); | ||
} else { | ||
oDoc.title = htmlTitle; | ||
} | ||
oDoc.title = (0, _withArray.oneItemArrayToString)(htmlTitle); | ||
} | ||
@@ -69,0 +66,0 @@ |
@@ -14,2 +14,3 @@ import _classCallCheck from "reshow-runtime/es/helpers/classCallCheck"; | ||
import { toJS } from "reshow-flux"; | ||
import { oneItemArrayToString } from "with-array"; | ||
import updateCanonicalUrl, { initCanonicalUrl } from "../../src/updateCanonicalUrl"; | ||
@@ -19,3 +20,2 @@ import dispatch from "../../src/dispatch"; | ||
import pageStore from "../../src/stores/pageStore"; | ||
var isArray = Array.isArray; | ||
var isInit; | ||
@@ -34,7 +34,3 @@ | ||
if (htmlTitle) { | ||
if (isArray(htmlTitle)) { | ||
oDoc.title = get(htmlTitle, [0]); | ||
} else { | ||
oDoc.title = htmlTitle; | ||
} | ||
oDoc.title = oneItemArrayToString(htmlTitle); | ||
} | ||
@@ -41,0 +37,0 @@ |
{ | ||
"name": "reshow", | ||
"version": "0.16.5", | ||
"version": "0.16.6", | ||
"description": "A simplified React cross-component state management.", | ||
@@ -26,3 +26,4 @@ "main": "./build/cjs/src/index.js", | ||
"seturl": "*", | ||
"smooth-scroll-to": "*" | ||
"smooth-scroll-to": "*", | ||
"with-array": "*" | ||
}, | ||
@@ -29,0 +30,0 @@ "devDependencies": { |
Floating dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
100732
13
2803
14
+ Addedwith-array@*