aesthetic-adapter-typestyle
Advanced tools
Comparing version 3.0.0-alpha.6 to 3.0.0-rc.0
@@ -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 Aesthetic from 'aesthetic'; | ||
import Aesthetic, { GLOBAL_STYLE_NAME } from 'aesthetic'; | ||
import { purgeStyles as _purgeStyles } from 'aesthetic-utils'; | ||
@@ -98,7 +98,7 @@ | ||
_proto.purgeStyles = function purgeStyles() { | ||
_proto.purgeStyles = function purgeStyles(styleName) { | ||
var element = this.typeStyle._tag; | ||
if (element) { | ||
_purgeStyles(element); | ||
_purgeStyles(element, styleName === GLOBAL_STYLE_NAME); | ||
} | ||
@@ -105,0 +105,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import Aesthetic, { AestheticOptions, ClassName, SheetMap } from 'aesthetic'; | ||
import Aesthetic, { AestheticOptions, ClassName, SheetMap, StyleName } from 'aesthetic'; | ||
import { TypeStyle } from 'typestyle'; | ||
@@ -13,3 +13,3 @@ import { NativeBlock, ParsedBlock } from './types'; | ||
parseStyleSheet(styleSheet: SheetMap<NativeBlock>): SheetMap<ParsedBlock>; | ||
purgeStyles(): void; | ||
purgeStyles(styleName?: StyleName): void; | ||
transformToClassName(styles: ParsedBlock[]): ClassName; | ||
@@ -16,0 +16,0 @@ private handleCss; |
@@ -6,7 +6,7 @@ "use strict"; | ||
var _aesthetic = _interopRequireDefault(require("aesthetic")); | ||
var _aesthetic = _interopRequireWildcard(require("aesthetic")); | ||
var _aestheticUtils = require("aesthetic-utils"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
@@ -106,7 +106,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
_proto.purgeStyles = function purgeStyles() { | ||
_proto.purgeStyles = function purgeStyles(styleName) { | ||
var element = this.typeStyle._tag; | ||
if (element) { | ||
(0, _aestheticUtils.purgeStyles)(element); | ||
(0, _aestheticUtils.purgeStyles)(element, styleName === _aesthetic.GLOBAL_STYLE_NAME); | ||
} | ||
@@ -113,0 +113,0 @@ }; |
{ | ||
"name": "aesthetic-adapter-typestyle", | ||
"version": "3.0.0-alpha.6", | ||
"version": "3.0.0-rc.0", | ||
"description": "TypeStyle support for Aesthetic.", | ||
@@ -20,6 +20,6 @@ "keywords": [ | ||
"dependencies": { | ||
"aesthetic-utils": "^2.0.0-alpha.6" | ||
"aesthetic-utils": "^2.0.0-rc.0" | ||
}, | ||
"peerDependencies": { | ||
"aesthetic": "^3.0.0", | ||
"aesthetic": "^4.0.0-alpha.0", | ||
"typestyle": "^2.0.0" | ||
@@ -30,3 +30,3 @@ }, | ||
}, | ||
"gitHead": "8a8e92b75a056555209a0690098d0fa855fd1cf3" | ||
"gitHead": "fffc4bd0af4e34bc4efceb1d39f2a3dbf3b58545" | ||
} |
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
24542
17
222
1
+ Added@babel/runtime@7.26.0(transitive)
+ Addedaesthetic@4.1.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedrtl-css-js@1.16.1(transitive)
- Removed@types/extend@3.0.4(transitive)
- Removed@types/hoist-non-react-statics@3.3.6(transitive)
- Removed@types/prop-types@15.7.14(transitive)
- Removed@types/react@16.14.62(transitive)
- Removed@types/scheduler@0.16.8(transitive)
- Removed@types/uuid@3.4.13(transitive)
- Removedaesthetic@3.5.1(transitive)
- Removedcsstype@3.1.3(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updatedaesthetic-utils@^2.0.0-rc.0