vue-inbrowser-compiler-utils
Advanced tools
Comparing version 4.16.0 to 4.23.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.23.3](https://github.com/vue-styleguidist/vue-styleguidist/compare/v4.23.2...v4.23.3) (2020-05-20) | ||
### Bug Fixes | ||
* **utils:** protect docgen-cli when in SSG ([af269f6](https://github.com/vue-styleguidist/vue-styleguidist/commit/af269f6fe071d9adb67b5e11fd61e1bbc3de0963)), closes [#876](https://github.com/vue-styleguidist/vue-styleguidist/issues/876) | ||
# [4.16.0](https://github.com/vue-styleguidist/vue-styleguidist/compare/v4.15.2...v4.16.0) (2020-04-09) | ||
@@ -8,0 +19,0 @@ |
@@ -54,2 +54,6 @@ (function (global, factory) { | ||
function addScopedStyle(css, suffix) { | ||
// protect server side rendering | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
var head = document.head || document.getElementsByTagName('head')[0]; | ||
@@ -56,0 +60,0 @@ var newstyle = document.createElement('style'); |
@@ -48,2 +48,6 @@ /* eslint-disable no-control-regex */ | ||
function addScopedStyle(css, suffix) { | ||
// protect server side rendering | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
var head = document.head || document.getElementsByTagName('head')[0]; | ||
@@ -50,0 +54,0 @@ var newstyle = document.createElement('style'); |
{ | ||
"name": "vue-inbrowser-compiler-utils", | ||
"version": "4.16.0", | ||
"version": "4.23.3", | ||
"description": "use this with vue-inbrowser-compiler to allow jsx compilation", | ||
@@ -33,3 +33,3 @@ "module": "lib/vue-inbrowser-compiler-utils.esm.js", | ||
"license": "MIT", | ||
"gitHead": "1f850d14f2d4625ffea1c792dcce0c44d46def6b" | ||
"gitHead": "4e15cb68b0fb1eff86c9abde6daa9b0e89db824c" | ||
} |
@@ -10,2 +10,6 @@ import scoper from './styleScoper' | ||
export default function addScopedStyle(css: string, suffix: string) { | ||
// protect server side rendering | ||
if (typeof document === 'undefined') { | ||
return | ||
} | ||
const head = document.head || document.getElementsByTagName('head')[0] | ||
@@ -12,0 +16,0 @@ const newstyle = document.createElement('style') |
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
44640
1094