Socket
Socket
Sign inDemoInstall

postcss-modules-scope

Package Overview
Dependencies
6
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.2.0

3

CHANGELOG.md

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

## [2.2.0] - 2020-03-19
- added the `exportGlobals` option to export global classes and ids
## [2.1.1] - 2019-03-05

@@ -7,0 +10,0 @@ ### Fixed

2

package.json
{
"name": "postcss-modules-scope",
"version": "2.1.1",
"version": "2.2.0",
"description": "A CSS Modules transform to extract export statements from local-scope classes",

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

@@ -89,2 +89,3 @@ 'use strict';

(options && options.generateExportEntry) || processor.generateExportEntry;
const exportGlobals = options && options.exportGlobals;

@@ -177,2 +178,8 @@ const exports = Object.create(null);

}
case 'id':
case 'class':
if (exportGlobals) {
exports[node.value] = [node.value];
}
break;
}

@@ -179,0 +186,0 @@ return node;

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc