vue-runtime-helpers
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,11 @@ # Change Log | ||
<a name="1.0.1"></a> | ||
## <small>1.0.1 (2019-06-14)</small> | ||
* chore: fix type ([806a4a7](https://github.com/znck/vue-runtime-helpers/commit/806a4a7)) | ||
* chore: update changelog ([4517901](https://github.com/znck/vue-runtime-helpers/commit/4517901)) | ||
* fix: Lazily get document.head (#2) ([02d9dfa](https://github.com/znck/vue-runtime-helpers/commit/02d9dfa)), closes [#2](https://github.com/znck/vue-runtime-helpers/issues/2) | ||
<a name="1.0.0"></a> | ||
@@ -16,4 +25,3 @@ ## 1.0.0 (2019-01-17) | ||
* `normalize-component.js` moved to | ||
`dist/normalize-component.js` | ||
* `normalize-component.js` moved to `dist/normalize-component.js` | ||
@@ -20,0 +28,0 @@ |
@@ -94,3 +94,3 @@ 'use strict'; | ||
} | ||
var HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
var HEAD; | ||
var styles = {}; | ||
@@ -121,2 +121,7 @@ | ||
if (css.media) style.element.setAttribute('media', css.media); | ||
if (HEAD === undefined) { | ||
HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
} | ||
HEAD.appendChild(style.element); | ||
@@ -123,0 +128,0 @@ } |
@@ -9,3 +9,3 @@ 'use strict'; | ||
} | ||
var HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
var HEAD; | ||
var styles = {}; | ||
@@ -36,2 +36,7 @@ | ||
if (css.media) style.element.setAttribute('media', css.media); | ||
if (HEAD === undefined) { | ||
HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
} | ||
HEAD.appendChild(style.element); | ||
@@ -38,0 +43,0 @@ } |
{ | ||
"name": "vue-runtime-helpers", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Runtime helpers for Vue SFC.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/znck/vue-runtime-helpers", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34708
755
0