You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

postcss

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss - npm Package Compare versions

Comparing version
8.5.6
to
8.5.7
+1
-1
lib/at-rule.d.ts

@@ -52,3 +52,3 @@ import Container, {

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { AtRule_ as default }

@@ -55,0 +55,0 @@ }

@@ -29,3 +29,3 @@ import Container from './container.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Comment_ as default }

@@ -32,0 +32,0 @@ }

@@ -46,3 +46,3 @@ import AtRule from './at-rule.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Container_ as default }

@@ -49,0 +49,0 @@ }

@@ -19,3 +19,3 @@ import { FilePosition } from './input.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { CssSyntaxError_ as default }

@@ -22,0 +22,0 @@ }

@@ -42,3 +42,3 @@ import { ContainerWithChildren } from './container.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Declaration_ as default }

@@ -45,0 +45,0 @@ }

@@ -19,3 +19,3 @@ import Container, { ContainerProps } from './container.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Document_ as default }

@@ -22,0 +22,0 @@ }

@@ -52,3 +52,3 @@ import { CssSyntaxError, ProcessOptions } from './postcss.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Input_ as default }

@@ -55,0 +55,0 @@ }

@@ -9,3 +9,3 @@ import Document from './document.js'

declare namespace LazyResult {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { LazyResult_ as default }

@@ -12,0 +12,0 @@ }

@@ -78,3 +78,11 @@ 'use strict'

} else if (this.css) {
this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '')
let startIndex
while ((startIndex = this.css.lastIndexOf('/*#')) !== -1) {
let endIndex = this.css.indexOf('*/', startIndex + 3)
if (endIndex === -1) break
while (startIndex > 0 && this.css[startIndex - 1] === '\n') {
startIndex--
}
this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2)
}
}

@@ -81,0 +89,0 @@ }

@@ -9,3 +9,3 @@ import LazyResult from './lazy-result.js'

declare namespace NoWorkResult {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { NoWorkResult_ as default }

@@ -12,0 +12,0 @@ }

@@ -68,6 +68,5 @@ 'use strict'

this._map = undefined
let root
let str = stringify
this.result = new Result(this._processor, root, this._opts)
this.result = new Result(this._processor, undefined, this._opts)
this.result.css = css

@@ -82,3 +81,3 @@

let map = new MapGenerator(str, root, this._opts, css)
let map = new MapGenerator(str, undefined, this._opts, css)
if (map.isMap()) {

@@ -85,0 +84,0 @@ let [generatedCSS, generatedMap] = map.generate()

@@ -129,3 +129,3 @@ import AtRule = require('./at-rule.js')

// eslint-disable-next-line @typescript-eslint/no-shadow
class Node extends Node_ {}

@@ -132,0 +132,0 @@ export { Node as default }

@@ -179,3 +179,3 @@ 'use strict'

let text = token[1].slice(2, -2)
if (/^\s*$/.test(text)) {
if (!text.trim()) {
node.text = ''

@@ -182,0 +182,0 @@ node.raws.left = text

@@ -6,3 +6,3 @@ import { SourceMapConsumer } from 'source-map-js'

declare namespace PreviousMap {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { PreviousMap_ as default }

@@ -9,0 +9,0 @@ }

@@ -15,3 +15,3 @@ import Document from './document.js'

declare namespace Processor {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Processor_ as default }

@@ -18,0 +18,0 @@ }

@@ -42,3 +42,3 @@ import {

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Result_ as default }

@@ -45,0 +45,0 @@ }

@@ -43,3 +43,3 @@ import Container, { ContainerProps } from './container.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Root_ as default }

@@ -46,0 +46,0 @@ }

@@ -59,3 +59,3 @@ import Container, {

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Rule_ as default }

@@ -62,0 +62,0 @@ }

@@ -14,3 +14,3 @@ import {

declare namespace Stringifier {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Stringifier_ as default }

@@ -17,0 +17,0 @@ }

@@ -43,3 +43,3 @@ import { RangePosition } from './css-syntax-error.js'

// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Warning_ as default }

@@ -46,0 +46,0 @@ }

{
"name": "postcss",
"version": "8.5.6",
"version": "8.5.7",
"description": "Tool for transforming styles with JS plugins",

@@ -5,0 +5,0 @@ "engines": {