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

postcss-loader

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-loader - npm Package Compare versions

Comparing version 2.0.10 to 2.1.0

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="2.1.0"></a>
# [2.1.0](https://github.com/postcss/postcss-loader/compare/v2.0.10...v2.1.0) (2018-02-02)
### Bug Fixes
* **index:** continue watching after dependency `{Error}` ([#332](https://github.com/postcss/postcss-loader/issues/332)) ([a8921cc](https://github.com/postcss/postcss-loader/commit/a8921cc))
### Features
* **index:** pass AST (`result.root`) && Messages (`result.messages`) as metadata to other loaders ([#322](https://github.com/postcss/postcss-loader/issues/322)) ([56232e7](https://github.com/postcss/postcss-loader/commit/56232e7))
<a name="2.0.10"></a>

@@ -7,0 +22,0 @@ ## [2.0.10](https://github.com/postcss/postcss-loader/compare/v2.0.9...v2.0.10) (2018-01-03)

12

lib/index.js

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

*/
module.exports = function loader (css, map) {
module.exports = function loader (css, map, meta) {
const options = Object.assign({}, loaderUtils.getOptions(this))

@@ -164,2 +164,7 @@

if (!meta) meta = {}
meta.ast = { 'type': 'postcss', root: result.root }
meta.messages = result.messages
if (this.loaderIndex === 0) {

@@ -178,2 +183,3 @@ /**

}
/**

@@ -187,3 +193,3 @@ * @memberof loader

*/
cb(null, css, map)
cb(null, css, map, meta)

@@ -193,4 +199,6 @@ return null

}).catch((err) => {
if (err.file) this.addDependency(err.file)
return err.name === 'CssSyntaxError' ? cb(new SyntaxError(err)) : cb(err)
})
}

13

package.json
{
"name": "postcss-loader",
"version": "2.0.10",
"version": "2.1.0",
"description": "PostCSS loader for webpack",

@@ -16,9 +16,9 @@ "main": "lib/index.js",

"postcss-load-config": "^1.2.0",
"schema-utils": "^0.3.0"
"schema-utils": "^0.4.0"
},
"devDependencies": {
"coveralls": "^2.0.0",
"jest": "^21.0.0",
"jsdoc-to-markdown": "^3.0.0",
"jest": "^22.0.0",
"jsdoc-to-markdown": "^4.0.0",
"memory-fs": "^0.4.0",
"postcss-import": "^11.0.0",
"postcss-js": "^1.0.0",

@@ -28,6 +28,7 @@ "standard": "^10.0.0",

"sugarss": "^1.0.0",
"util.promisify": "^1.0.0",
"webpack": "^3.0.0"
},
"scripts": {
"clean": "rm -rf dmd jest* coverage jsdoc-api test/results",
"clean": "rm -rf coverage test/outputs",
"lint": "standard",

@@ -34,0 +35,0 @@ "docs": "jsdoc2md lib/index.js > LOADER.md",

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