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.4.6 to 0.5.0

23

esm/index.js

@@ -204,7 +204,14 @@ import { objectLoop, arrayLoop, isObject, toArray, hyphenate } from '@aesthetic/utils';

function parseProperty(parent, name, value, options) {
function parseProperty(parent, name, value, options, emit) {
if (emit === void 0) {
emit = true;
}
var addHandler = function addHandler(p, v) {
if (v !== undefined) {
parent.addProperty(p, v);
options.onProperty == null ? void 0 : options.onProperty(parent, p, v);
if (emit) {
options.onProperty == null ? void 0 : options.onProperty(parent, p, v);
}
}

@@ -378,3 +385,7 @@ };

function parseBlock(parent, object, options) {
function parseBlock(parent, object, options, emit) {
if (emit === void 0) {
emit = true;
}
if ("production" !== process.env.NODE_ENV) {

@@ -392,3 +403,3 @@ validateDeclarationBlock(object, parent.selector);

} else {
parseProperty(parent, key, value, options);
parseProperty(parent, key, value, options, emit);
}

@@ -410,3 +421,3 @@ });

}));
var block = parseBlock(new Block('@font-face'), fontFace, options);
var block = parseBlock(new Block('@font-face'), fontFace, options, false);
return (options.onFontFace == null ? void 0 : options.onFontFace(block, name, object.srcPaths)) || name;

@@ -424,3 +435,3 @@ }

if (value !== undefined) {
parseBlock(keyframes.addNested(new Block(key)), value, options);
parseBlock(keyframes.addNested(new Block(key)), value, options, false);
}

@@ -427,0 +438,0 @@ });

@@ -208,7 +208,14 @@ 'use strict';

function parseProperty(parent, name, value, options) {
function parseProperty(parent, name, value, options, emit) {
if (emit === void 0) {
emit = true;
}
var addHandler = function addHandler(p, v) {
if (v !== undefined) {
parent.addProperty(p, v);
options.onProperty == null ? void 0 : options.onProperty(parent, p, v);
if (emit) {
options.onProperty == null ? void 0 : options.onProperty(parent, p, v);
}
}

@@ -382,3 +389,7 @@ };

function parseBlock(parent, object, options) {
function parseBlock(parent, object, options, emit) {
if (emit === void 0) {
emit = true;
}
if ("production" !== process.env.NODE_ENV) {

@@ -396,3 +407,3 @@ validateDeclarationBlock(object, parent.selector);

} else {
parseProperty(parent, key, value, options);
parseProperty(parent, key, value, options, emit);
}

@@ -414,3 +425,3 @@ });

}));
var block = parseBlock(new Block('@font-face'), fontFace, options);
var block = parseBlock(new Block('@font-face'), fontFace, options, false);
return (options.onFontFace == null ? void 0 : options.onFontFace(block, name, object.srcPaths)) || name;

@@ -428,3 +439,3 @@ }

if (value !== undefined) {
parseBlock(keyframes.addNested(new Block(key)), value, options);
parseBlock(keyframes.addNested(new Block(key)), value, options, false);
}

@@ -431,0 +442,0 @@ });

import Block from '../Block';
import { ParserOptions, Rule } from '../types';
export default function parseBlock<T extends object>(parent: Block<T>, object: Rule, options: ParserOptions<T>): Block<T>;
export default function parseBlock<T extends object>(parent: Block<T>, object: Rule, options: ParserOptions<T>, emit?: boolean): Block<T>;
//# sourceMappingURL=parseBlock.d.ts.map
import Block from '../Block';
import { ParserOptions } from '../types';
export default function parseProperty<T extends object>(parent: Block<T>, name: string, value: unknown, options: ParserOptions<T>): void;
export default function parseProperty<T extends object>(parent: Block<T>, name: string, value: unknown, options: ParserOptions<T>, emit?: boolean): void;
//# sourceMappingURL=parseProperty.d.ts.map
{
"name": "@aesthetic/sss",
"version": "0.4.6",
"version": "0.5.0",
"description": "A strict, type-safe, and structure-safe component style sheet format.",

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

"dependencies": {
"@aesthetic/types": "^0.2.1",
"@aesthetic/utils": "^0.4.5"
"@aesthetic/types": "^0.3.0",
"@aesthetic/utils": "^0.5.0"
},
"gitHead": "ae0de0b1a4e87ec62e8c519ac5aea0261317994e"
"gitHead": "c22a30d836aca002a071cd61e8d4f7d66fb3cd4b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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