postcss-normalize-url
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -0,1 +1,6 @@ | ||
# 2.1.0 | ||
* Adds `keepWWW` option. | ||
* Compatibility fixes for `is-absolute-url@2.0.0`. | ||
# 2.0.3 | ||
@@ -2,0 +7,0 @@ |
@@ -17,3 +17,3 @@ 'use strict'; | ||
function convert (url, options) { | ||
if (isAbsolute(url)) { | ||
if (isAbsolute(url) || !url.indexOf('//')) { | ||
return normalize(url, options); | ||
@@ -64,3 +64,4 @@ } | ||
normalizeProtocol: false, | ||
stripFragment: false | ||
stripFragment: false, | ||
stripWWW: true | ||
}, options); | ||
@@ -67,0 +68,0 @@ |
{ | ||
"name": "postcss-normalize-url", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "Normalize URLs with PostCSS", | ||
@@ -22,12 +22,12 @@ "main": "index.js", | ||
"css-list": "^0.1.0", | ||
"is-absolute-url": "^1.0.0", | ||
"normalize-url": "^1.2.0", | ||
"object-assign": "^2.0.0", | ||
"postcss": "^4.1.9" | ||
"is-absolute-url": "^2.0.0", | ||
"normalize-url": "^1.3.0", | ||
"object-assign": "^3.0.0", | ||
"postcss": "^4.1.14" | ||
}, | ||
"devDependencies": { | ||
"jshint": "^2.6.3", | ||
"jshint-stylish": "^1.0.1", | ||
"tap-spec": "^2.2.2", | ||
"tape": "^3.5.0" | ||
"jshint": "^2.8.0", | ||
"jshint-stylish": "^2.0.1", | ||
"tap-spec": "^4.0.2", | ||
"tape": "^4.0.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "homepage": "https://github.com/ben-eb/postcss-normalize-url", |
@@ -44,3 +44,3 @@ # [postcss][postcss]-normalize-url [![Build Status](https://travis-ci.org/ben-eb/postcss-normalize-url.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-normalize-url.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-normalize-url.svg)][deps] | ||
Please see the [normalize-url documentation][docs]. By default, | ||
`normalizeProtocol` and `stripFragment` are set to `false`. | ||
`normalizeProtocol` & `stripFragment` are set to `false`; `stripWWW` to `true`. | ||
@@ -47,0 +47,0 @@ ## Contributing |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7071
69
+ Addedis-absolute-url@2.1.0(transitive)
+ Addedobject-assign@3.0.0(transitive)
- Removedis-absolute-url@1.0.0(transitive)
- Removedobject-assign@2.1.1(transitive)
Updatedis-absolute-url@^2.0.0
Updatednormalize-url@^1.3.0
Updatedobject-assign@^3.0.0
Updatedpostcss@^4.1.14