Comparing version 2.0.0 to 2.0.1
'use strict'; | ||
const arrayUniq = require('array-uniq'); | ||
@@ -48,3 +47,3 @@ const integerRegex = /^\d+$/; | ||
exports.stringify = array => { | ||
return arrayUniq( | ||
return [...new Set( | ||
array.map(element => { | ||
@@ -71,3 +70,3 @@ if (!element.url) { | ||
}) | ||
).join(', '); | ||
)].join(', '); | ||
}; |
{ | ||
"name": "srcset", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Parse and stringify the HTML <img> srcset attribute", | ||
@@ -35,5 +35,2 @@ "license": "MIT", | ||
], | ||
"dependencies": { | ||
"array-uniq": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
@@ -40,0 +37,0 @@ "ava": "^1.4.1", |
@@ -70,4 +70,12 @@ # srcset [![Build Status](https://travis-ci.org/sindresorhus/srcset.svg?branch=master)](https://travis-ci.org/sindresorhus/srcset) | ||
## License | ||
--- | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-srcset?utm_source=npm-srcset&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
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
6264
0
81
114
- Removedarray-uniq@^2.1.0
- Removedarray-uniq@2.1.0(transitive)