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.5 to 1.12.6

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.12.6](https://github.com/smooth-code/xstyled/compare/v1.12.5...v1.12.6) (2019-09-26)
### Bug Fixes
* **color-mode:** fix document undefined on SSR ([606ecac](https://github.com/smooth-code/xstyled/commit/606ecac))
## [1.12.5](https://github.com/smooth-code/xstyled/compare/v1.12.4...v1.12.5) (2019-09-23)

@@ -8,0 +19,0 @@

8

dist/xstyled-core.cjs.js

@@ -421,4 +421,3 @@ 'use strict';

var _ref5 = _temp2 === void 0 ? {} : _temp2,
_ref5$target = _ref5.target,
target = _ref5$target === void 0 ? document.body : _ref5$target;
target = _ref5.target;

@@ -465,5 +464,6 @@ var systemMode = useSystemMode(theme);

var className = getColorModeClassName(mode);
target.classList.add(className);
var usedTarget = target || document.body;
usedTarget.classList.add(className);
return function () {
target.classList.remove(className);
usedTarget.classList.remove(className);
};

@@ -470,0 +470,0 @@ }, [customPropertiesEnabled, target, mode, initialColorMode]);

@@ -415,4 +415,3 @@ import { system, getColor, getBorderStyle, getShadow, getFont, getFontSize, getLineHeight, getFontWeight, getLetterSpacing, getTransition, getSpace, getBorder, getBorderWidth, getSize, getRadius, getZIndex } from '@xstyled/system';

var _ref5 = _temp2 === void 0 ? {} : _temp2,
_ref5$target = _ref5.target,
target = _ref5$target === void 0 ? document.body : _ref5$target;
target = _ref5.target;

@@ -459,5 +458,6 @@ var systemMode = useSystemMode(theme);

var className = getColorModeClassName(mode);
target.classList.add(className);
var usedTarget = target || document.body;
usedTarget.classList.add(className);
return function () {
target.classList.remove(className);
usedTarget.classList.remove(className);
};

@@ -464,0 +464,0 @@ }, [customPropertiesEnabled, target, mode, initialColorMode]);

{
"name": "@xstyled/core",
"description": "xstyled core utilities",
"version": "1.12.5",
"version": "1.12.6",
"sideEffects": false,

@@ -22,3 +22,3 @@ "main": "dist/xstyled-core.cjs.js",

},
"gitHead": "c95d7d1db324be409cc1e3c179a93b2d359818b7"
"gitHead": "3b79478b1653f44b90b37f72e0e9b8de75eaa0cc"
}
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