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 3.0.0-alpha.6 to 3.0.0-rc.0

.DS_Store

6

esm/TypeStyleAesthetic.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 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

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