Socket
Socket
Sign inDemoInstall

postcss-url

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-url - npm Package Compare versions

Comparing version 7.3.1 to 7.3.2

4

CHANGELOG.md

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

# 7.3.2 - 2018-04-03
Fixed: ignore urls which starts with `~` ([PR##119](https://github.com/postcss/postcss-url/pull/#119))
# 7.3.1 - 2018-02-25

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

2

package.json
{
"name": "postcss-url",
"version": "7.3.1",
"version": "7.3.2",
"description": "PostCSS plugin to rebase or inline on url().",

@@ -5,0 +5,0 @@ "keywords": [

@@ -38,3 +38,6 @@ 'use strict';

const isUrlShouldBeIgnored = (assetUrl, options) => {
return isUrlWithoutPathname(assetUrl) || (assetUrl[0] === '/' && !options.basePath);
const isAbsolutePath = assetUrl[0] === '/';
const isStartsWithTilde = assetUrl[0] === '~';
return isUrlWithoutPathname(assetUrl) || ((isAbsolutePath || isStartsWithTilde) && !options.basePath);
};

@@ -41,0 +44,0 @@

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