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

postcss-normalize-url

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-normalize-url - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

5

CHANGELOG.md

@@ -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 @@

5

index.js

@@ -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 @@

18

package.json
{
"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

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