Socket
Socket
Sign inDemoInstall

postcss

Package Overview
Dependencies
3
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.4.16 to 8.4.17

20

lib/container.js

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

insertBefore(exist, add) {
exist = this.index(exist)
let existIndex = this.index(exist)
let type = exist === 0 ? 'prepend' : false
let nodes = this.normalize(add, this.proxyOf.nodes[exist], type).reverse()
for (let node of nodes) this.proxyOf.nodes.splice(exist, 0, node)
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse()
existIndex = this.index(exist)
for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)

@@ -189,3 +189,3 @@ let index

index = this.indexes[id]
if (exist <= index) {
if (existIndex <= index) {
this.indexes[id] = index + nodes.length

@@ -201,11 +201,11 @@ }

insertAfter(exist, add) {
exist = this.index(exist)
let existIndex = this.index(exist)
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse()
existIndex = this.index(exist)
for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node)
let nodes = this.normalize(add, this.proxyOf.nodes[exist]).reverse()
for (let node of nodes) this.proxyOf.nodes.splice(exist + 1, 0, node)
let index
for (let id in this.indexes) {
index = this.indexes[id]
if (exist < index) {
if (existIndex < index) {
this.indexes[id] = index + nodes.length

@@ -212,0 +212,0 @@ }

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

constructor(plugins = []) {
this.version = '8.4.16'
this.version = '8.4.17'
this.plugins = this.normalize(plugins)

@@ -13,0 +13,0 @@ }

{
"name": "postcss",
"version": "8.4.16",
"version": "8.4.17",
"description": "Tool for transforming styles with JS plugins",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc