@xstyled/core
Advanced tools
Comparing version 1.12.7 to 1.12.8
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.12.8](https://github.com/smooth-code/xstyled/compare/v1.12.7...v1.12.8) (2019-09-26) | ||
### Bug Fixes | ||
* **color-mode:** fix SSR compat ([bb0188a](https://github.com/smooth-code/xstyled/commit/bb0188a)) | ||
## [1.12.7](https://github.com/smooth-code/xstyled/compare/v1.12.6...v1.12.7) (2019-09-26) | ||
@@ -8,0 +19,0 @@ |
@@ -265,3 +265,3 @@ 'use strict'; | ||
get: function get() { | ||
return window.localStorage.getItem(STORAGE_KEY); | ||
return typeof window === 'undefined' ? null : window.localStorage.getItem(STORAGE_KEY); | ||
}, | ||
@@ -359,3 +359,6 @@ set: function set(value) { | ||
function getSystemModeMql(mode) { | ||
if (window.matchMedia === undefined) return null; | ||
if (typeof window === 'undefined' || window.matchMedia === undefined) { | ||
return null; | ||
} | ||
var query = getColorModeQuery(mode); | ||
@@ -362,0 +365,0 @@ return window.matchMedia(query); |
@@ -259,3 +259,3 @@ import { system, getColor, getBorderStyle, getShadow, getFont, getFontSize, getLineHeight, getFontWeight, getLetterSpacing, getTransition, getSpace, getBorder, getBorderWidth, getSize, getRadius, getZIndex } from '@xstyled/system'; | ||
get: function get() { | ||
return window.localStorage.getItem(STORAGE_KEY); | ||
return typeof window === 'undefined' ? null : window.localStorage.getItem(STORAGE_KEY); | ||
}, | ||
@@ -353,3 +353,6 @@ set: function set(value) { | ||
function getSystemModeMql(mode) { | ||
if (window.matchMedia === undefined) return null; | ||
if (typeof window === 'undefined' || window.matchMedia === undefined) { | ||
return null; | ||
} | ||
var query = getColorModeQuery(mode); | ||
@@ -356,0 +359,0 @@ return window.matchMedia(query); |
{ | ||
"name": "@xstyled/core", | ||
"description": "xstyled core utilities", | ||
"version": "1.12.7", | ||
"version": "1.12.8", | ||
"sideEffects": false, | ||
@@ -22,3 +22,3 @@ "main": "dist/xstyled-core.cjs.js", | ||
}, | ||
"gitHead": "c1dbb8fffe6add4846384654896cf8c2271bacd9" | ||
"gitHead": "140d76a07d70f1bc5cef302909dcafe55df271c2" | ||
} |
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
40358
983