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

aesthetic-adapter-typestyle

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aesthetic-adapter-typestyle - npm Package Compare versions

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

6

esm/TypeStyleAdapter.js

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

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