Socket
Socket
Sign inDemoInstall

postcss-cli

Package Overview
Dependencies
Maintainers
4
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-cli - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 7.1.0 / 2020-01-09
- Respect `map.annotation` option when set to a string ([#307](https://github.com/postcss/postcss-cli/pull/307))
# 7.0.0 / 2020-01-07

@@ -2,0 +6,0 @@

2

index.js

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

if (result.map) {
const mapfile = getMapfile(options.to)
const mapfile = getMapfile(options)
tasks.push(fs.outputFile(mapfile, result.map))

@@ -228,0 +228,0 @@ }

'use strict'
module.exports = function getMapfile(p) {
return `${p}.map`
const path = require('path')
module.exports = function getMapfile(options) {
if (options.map && typeof options.map.annotation === 'string') {
return `${path.dirname(options.to)}/${options.map.annotation}`
}
return `${options.to}.map`
}
{
"name": "postcss-cli",
"version": "7.0.0",
"version": "7.1.0",
"description": "CLI for PostCSS",

@@ -5,0 +5,0 @@ "main": "index.js",

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