New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aesthetic/sss

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/sss - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

46

esm/index.js
import { objectLoop, hyphenate, isObject, toArray, arrayLoop } from '@aesthetic/utils';
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function _extends() {

@@ -44,10 +29,6 @@ _extends = Object.assign || function (target) {

function Block(selector) {
_defineProperty(this, "nested", {});
_defineProperty(this, "properties", {});
_defineProperty(this, "selector", void 0);
_defineProperty(this, "variables", {});
this.nested = {};
this.properties = {};
this.selector = void 0;
this.variables = {};
this.selector = selector;

@@ -370,9 +351,8 @@ }

_defineProperty(this, "handlers", {});
_defineProperty(this, "options", {
this.handlers = {};
this.options = {
unit: 'px'
});
};
_defineProperty(this, "parseFontFace", function (fontFamily, object) {
this.parseFontFace = function (fontFamily, object) {
var name = object.fontFamily || fontFamily;

@@ -395,5 +375,5 @@

return name;
});
};
_defineProperty(this, "parseKeyframes", function (object, animationName) {
this.parseKeyframes = function (object, animationName) {
var keyframes = new Block("@keyframes");

@@ -409,5 +389,5 @@

return _this.emit('keyframes', keyframes, animationName) || animationName;
});
};
_defineProperty(this, "wrapValueWithUnit", function (property, value) {
this.wrapValueWithUnit = function (property, value) {
if (value === undefined) {

@@ -426,3 +406,3 @@ return '';

return value + _this.options.unit;
});
};

@@ -429,0 +409,0 @@ if (handlers) {

@@ -7,17 +7,2 @@ 'use strict';

function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function _extends() {

@@ -49,10 +34,6 @@ _extends = Object.assign || function (target) {

function Block(selector) {
_defineProperty(this, "nested", {});
_defineProperty(this, "properties", {});
_defineProperty(this, "selector", void 0);
_defineProperty(this, "variables", {});
this.nested = {};
this.properties = {};
this.selector = void 0;
this.variables = {};
this.selector = selector;

@@ -375,9 +356,8 @@ }

_defineProperty(this, "handlers", {});
_defineProperty(this, "options", {
this.handlers = {};
this.options = {
unit: 'px'
});
};
_defineProperty(this, "parseFontFace", function (fontFamily, object) {
this.parseFontFace = function (fontFamily, object) {
var name = object.fontFamily || fontFamily;

@@ -400,5 +380,5 @@

return name;
});
};
_defineProperty(this, "parseKeyframes", function (object, animationName) {
this.parseKeyframes = function (object, animationName) {
var keyframes = new Block("@keyframes");

@@ -414,5 +394,5 @@

return _this.emit('keyframes', keyframes, animationName) || animationName;
});
};
_defineProperty(this, "wrapValueWithUnit", function (property, value) {
this.wrapValueWithUnit = function (property, value) {
if (value === undefined) {

@@ -431,3 +411,3 @@ return '';

return value + _this.options.unit;
});
};

@@ -434,0 +414,0 @@ if (handlers) {

{
"name": "@aesthetic/sss",
"version": "0.0.5",
"version": "0.0.6",
"description": "A strict, type-safe, and structure-safe component style sheet format.",

@@ -28,6 +28,6 @@ "keywords": [

"dependencies": {
"@aesthetic/utils": "^0.0.3",
"csstype": "^2.6.9"
"@aesthetic/utils": "^0.0.4",
"csstype": "^2.6.10"
},
"gitHead": "505088db575561a047e038760ba665b30eefb4ba"
"gitHead": "a393b3217528ac5abddaf812927aebb5d14de426"
}

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