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

postcss-import-ext-glob

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-import-ext-glob - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

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

## 2.0.1 - 2021-01-31
### Fixed
- Fixed an issue with glob path when running on Windows.
## 2.0.0 - 2021-01-02

@@ -8,0 +12,0 @@ ### Breaking

4

index.js

@@ -32,3 +32,5 @@ const valueParser = require('postcss-value-parser');

if (param.type === 'string') {
globList.push(path.join(dirName, param.value));
globList.push(
path.join(dirName, param.value).replace(/\\/g, '/')
);
}

@@ -35,0 +37,0 @@ }

{
"name": "postcss-import-ext-glob",
"version": "2.0.0",
"version": "2.0.1",
"description": "A PostCSS plugin to extend postcss-import path resolver to allow glob usage as path",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -26,18 +26,2 @@ const test = require('ava');

test('postcss-import test', async (t) => {
const input = `
@import "/Users/dimitrinicolas/Developer/postcss-import-ext-glob/fixtures/css/style.css";
`;
const output = `
div {
margin: auto;
}
`;
await tester.test(input, output, t, {
pluginsAfter: [postcssImport],
});
});
test('simple test', async (t) => {

@@ -44,0 +28,0 @@ const input = `

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