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

aesthetic

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aesthetic - npm Package Compare versions

Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1

4

esm/Adapter.js

@@ -91,9 +91,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

_proto.purgeStyles = function purgeStyles(styleName) {};
_proto.purgeStyles = function purgeStyles() {};
_proto.resetGlobalStyles = function resetGlobalStyles(prevTheme) {
this.purgeStyles(GLOBAL_STYLE_NAME);
this.cacheManager.clear(function (unit) {
return unit.global === true && unit.theme === prevTheme;
});
this.purgeStyles();
return this;

@@ -100,0 +100,0 @@ };

@@ -42,6 +42,5 @@ import Aesthetic from './Aesthetic';

/**
* Purge and remove all styles from the DOM for the target component.
* If no target defined, will purge all possible styles.
* Purge and remove all global styles from the DOM.
*/
purgeStyles(styleName?: StyleName): void;
purgeStyles(): void;
/**

@@ -48,0 +47,0 @@ * Reset and clear global styles for the defined theme.

@@ -104,9 +104,9 @@ "use strict";

_proto.purgeStyles = function purgeStyles(styleName) {};
_proto.purgeStyles = function purgeStyles() {};
_proto.resetGlobalStyles = function resetGlobalStyles(prevTheme) {
this.purgeStyles(_constants.GLOBAL_STYLE_NAME);
this.cacheManager.clear(function (unit) {
return unit.global === true && unit.theme === prevTheme;
});
this.purgeStyles();
return this;

@@ -113,0 +113,0 @@ };

{
"name": "aesthetic",
"version": "5.0.0-alpha.0",
"version": "5.0.0-alpha.1",
"description": "Aesthetic is a powerful type-safe, framework agnostic, CSS-in-JS library for styling components through the use of adapters.",

@@ -30,3 +30,3 @@ "keywords": [

"dependencies": {
"aesthetic-utils": "^3.0.0-alpha.0",
"aesthetic-utils": "^3.0.0-alpha.1",
"csstype": "^2.6.7",

@@ -42,3 +42,3 @@ "extend": "^3.0.2",

},
"gitHead": "1909ec6f57b2ddcc63355122e38d74c9d06d2a23"
"gitHead": "730d6524d48cc9526c1fd42200cbbdc758f67579"
}

Sorry, the diff of this file is not supported yet

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