Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss

Package Overview
Dependencies
Maintainers
1
Versions
263
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.2.9 to 8.2.10

11

lib/input.js

@@ -133,3 +133,5 @@ 'use strict'

if (this.file) {
result.input.url = pathToFileURL(this.file).toString()
if (pathToFileURL) {
result.input.url = pathToFileURL(this.file).toString()
}
result.input.file = this.file

@@ -166,3 +168,8 @@ }

if (fromUrl.protocol === 'file:') {
result.file = fileURLToPath(fromUrl)
if (fileURLToPath) {
result.file = fileURLToPath(fromUrl)
} else {
// istanbul ignore next
throw new Error(`file: protocol is not available in this PostCSS build`);
}
}

@@ -169,0 +176,0 @@

9

lib/map-generator.js

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

let pathAvailable = Boolean(dirname, resolve, relative, sep)
let pathAvailable = Boolean(dirname && resolve && relative && sep)

@@ -206,3 +206,8 @@ class MapGenerator {

} else if (this.mapOpts.absolute) {
return pathToFileURL(node.source.input.from).toString()
if (pathToFileURL) {
return pathToFileURL(node.source.input.from).toString()
} else {
// istanbul ignore next
throw new Error('`map.absolute` option is not available in this PostCSS build')
}
} else {

@@ -209,0 +214,0 @@ return this.toUrl(this.path(node.source.input.from))

@@ -51,9 +51,7 @@ 'use strict'

getAnnotationURL(sourceMapString) {
return sourceMapString
.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1]
.trim()
return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim()
}
loadAnnotation(css) {
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm)
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\*\//gm)

@@ -60,0 +58,0 @@ if (annotations && annotations.length > 0) {

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

constructor(plugins = []) {
this.version = '8.2.9'
this.version = '8.2.10'
this.plugins = this.normalize(plugins)

@@ -11,0 +11,0 @@ }

{
"name": "postcss",
"version": "8.2.9",
"version": "8.2.10",
"description": "Tool for transforming styles with JS plugins",

@@ -46,4 +46,5 @@ "engines": {

"fs": false,
"path": false
"path": false,
"url": false
}
}

@@ -383,3 +383,3 @@ # PostCSS [![Gitter][chat-img]][chat]

import postcss from 'https://deno.land/x/postcss/mod.js'
import autoprefixer from 'https://dev.jspm.io/autoprefixer'
import autoprefixer from 'https://jspm.dev/autoprefixer'

@@ -386,0 +386,0 @@ const result = await postcss([autoprefixer]).process(css)

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