Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xstyled/core

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstyled/core - npm Package Compare versions

Comparing version 1.12.7 to 1.12.8

11

CHANGELOG.md

@@ -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 @@

7

dist/xstyled-core.cjs.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc