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 to 3.0.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

### 3.0.1 - 2019-09-15
#### 📦 Dependencies
- Updated all to latest.
#### ⚙️ Types
- Refine types and replace `any` with `unknown`.
# 3.0.0 - 2019-07-07

@@ -2,0 +12,0 @@

12

esm/TypeStyleAesthetic.js

@@ -8,3 +8,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, { GLOBAL_STYLE_NAME } from 'aesthetic';
import { purgeStyles as _purgeStyles } from 'aesthetic-utils';
import { purgeStyles as _purgeStyles, toArray } from 'aesthetic-utils';

@@ -32,9 +32,3 @@ var TypeStyleAesthetic = function (_Aesthetic) {

_defineProperty(_assertThisInitialized(_this), "handleFallback", function (ruleset, name, value) {
var fallbacks = ruleset.properties[name] || [];
if (!Array.isArray(fallbacks)) {
fallbacks = [fallbacks];
}
ruleset.addProperty(name, [].concat(value, fallbacks));
ruleset.addProperty(name, [].concat(value, toArray(ruleset.properties[name])));
});

@@ -68,3 +62,3 @@

if (name === 'animationName') {
ruleset.addProperty(name, _this.syntax.injectKeyframes(value, _this.keyframes).join(', '));
ruleset.addProperty(name, _this.syntax.injectKeyframes(String(value), _this.keyframes).join(', '));
} else {

@@ -71,0 +65,0 @@ ruleset.addProperty(name, value);

@@ -10,4 +10,6 @@ "use strict";

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; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

@@ -40,9 +42,3 @@

_defineProperty(_assertThisInitialized(_this), "handleFallback", function (ruleset, name, value) {
var fallbacks = ruleset.properties[name] || [];
if (!Array.isArray(fallbacks)) {
fallbacks = [fallbacks];
}
ruleset.addProperty(name, [].concat(value, fallbacks));
ruleset.addProperty(name, [].concat(value, (0, _aestheticUtils.toArray)(ruleset.properties[name])));
});

@@ -76,3 +72,3 @@

if (name === 'animationName') {
ruleset.addProperty(name, _this.syntax.injectKeyframes(value, _this.keyframes).join(', '));
ruleset.addProperty(name, _this.syntax.injectKeyframes(String(value), _this.keyframes).join(', '));
} else {

@@ -79,0 +75,0 @@ ruleset.addProperty(name, value);

{
"name": "aesthetic-adapter-typestyle",
"version": "3.0.0",
"version": "3.0.1",
"description": "TypeStyle support for Aesthetic.",

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

"dependencies": {
"aesthetic-utils": "^2.0.0"
"aesthetic-utils": "^2.0.1"
},

@@ -28,5 +28,5 @@ "peerDependencies": {

"devDependencies": {
"typestyle": "^2.0.3"
"typestyle": "^2.0.4"
},
"gitHead": "c38c6702c4479d6c7bbda13fd44d0e1e0bc09a4f"
"gitHead": "9e25a97050daf05f81b04815c301f93cdc1d3b56"
}

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