aesthetic-adapter-typestyle
Advanced tools
Comparing version 4.0.0-alpha.0 to 4.0.0-alpha.1
@@ -7,3 +7,3 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
import { Adapter, GLOBAL_STYLE_NAME } from 'aesthetic'; | ||
import { Adapter } from 'aesthetic'; | ||
import { purgeStyles as _purgeStyles, toArray } from 'aesthetic-utils'; | ||
@@ -88,7 +88,7 @@ | ||
_proto.purgeStyles = function purgeStyles(styleName) { | ||
_proto.purgeStyles = function purgeStyles() { | ||
var element = this.typeStyle._tag; | ||
if (element) { | ||
_purgeStyles(element, styleName === GLOBAL_STYLE_NAME); | ||
_purgeStyles(element, true); | ||
} | ||
@@ -95,0 +95,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { Adapter, ClassName, SheetMap, StyleName } from 'aesthetic'; | ||
import { Adapter, ClassName, SheetMap } from 'aesthetic'; | ||
import { TypeStyle } from 'typestyle'; | ||
@@ -13,3 +13,3 @@ import { NativeBlock, ParsedBlock } from './types'; | ||
parseStyleSheet(styleSheet: SheetMap<NativeBlock>): SheetMap<ParsedBlock>; | ||
purgeStyles(styleName?: StyleName): void; | ||
purgeStyles(): void; | ||
transformToClassName(styles: ParsedBlock[]): ClassName; | ||
@@ -16,0 +16,0 @@ private handleCss; |
@@ -93,7 +93,7 @@ "use strict"; | ||
_proto.purgeStyles = function purgeStyles(styleName) { | ||
_proto.purgeStyles = function purgeStyles() { | ||
var element = this.typeStyle._tag; | ||
if (element) { | ||
(0, _aestheticUtils.purgeStyles)(element, styleName === _aesthetic.GLOBAL_STYLE_NAME); | ||
(0, _aestheticUtils.purgeStyles)(element, true); | ||
} | ||
@@ -100,0 +100,0 @@ }; |
{ | ||
"name": "aesthetic-adapter-typestyle", | ||
"version": "4.0.0-alpha.0", | ||
"version": "4.0.0-alpha.1", | ||
"description": "TypeStyle support for Aesthetic.", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"dependencies": { | ||
"aesthetic-utils": "^3.0.0-alpha.0" | ||
"aesthetic-utils": "^3.0.0-alpha.1" | ||
}, | ||
@@ -34,3 +34,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1909ec6f57b2ddcc63355122e38d74c9d06d2a23" | ||
"gitHead": "730d6524d48cc9526c1fd42200cbbdc758f67579" | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
17678