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

@compiled/css

Package Overview
Dependencies
Maintainers
4
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compiled/css - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

7

dist/sort.js

@@ -8,2 +8,3 @@ "use strict";

const postcss_1 = __importDefault(require("postcss"));
const postcss_discard_duplicates_1 = __importDefault(require("postcss-discard-duplicates"));
const merge_duplicate_at_rules_1 = require("./plugins/merge-duplicate-at-rules");

@@ -18,3 +19,7 @@ const sort_atomic_style_sheet_1 = require("./plugins/sort-atomic-style-sheet");

function sort(stylesheet) {
const result = (0, postcss_1.default)([(0, merge_duplicate_at_rules_1.mergeDuplicateAtRules)(), (0, sort_atomic_style_sheet_1.sortAtomicStyleSheet)()]).process(stylesheet, {
const result = (0, postcss_1.default)([
(0, postcss_discard_duplicates_1.default)(),
(0, merge_duplicate_at_rules_1.mergeDuplicateAtRules)(),
(0, sort_atomic_style_sheet_1.sortAtomicStyleSheet)(),
]).process(stylesheet, {
from: undefined,

@@ -21,0 +26,0 @@ });

9

package.json
{
"name": "@compiled/css",
"version": "0.12.0",
"version": "0.12.1",
"description": "A familiar and performant compile time CSS-in-JS library for React.",

@@ -26,9 +26,10 @@ "homepage": "https://compiledcssinjs.com/docs/pkg-css",

"dependencies": {
"@compiled/utils": "^0.8.0",
"@compiled/utils": "^0.9.0",
"autoprefixer": "^10.4.14",
"cssnano-preset-default": "^5.2.14",
"postcss": "^8.4.21",
"postcss": "^8.4.31",
"postcss-discard-duplicates": "^6.0.0",
"postcss-nested": "^5.0.6",
"postcss-normalize-whitespace": "^5.1.1",
"postcss-selector-parser": "^6.0.11",
"postcss-selector-parser": "^6.0.13",
"postcss-values-parser": "^6.0.2"

@@ -35,0 +36,0 @@ },

import postcss from 'postcss';
import discardDuplicates from 'postcss-discard-duplicates';

@@ -13,3 +14,7 @@ import { mergeDuplicateAtRules } from './plugins/merge-duplicate-at-rules';

export function sort(stylesheet: string): string {
const result = postcss([mergeDuplicateAtRules(), sortAtomicStyleSheet()]).process(stylesheet, {
const result = postcss([
discardDuplicates(),
mergeDuplicateAtRules(),
sortAtomicStyleSheet(),
]).process(stylesheet, {
from: undefined,

@@ -16,0 +21,0 @@ });

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