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

srcset

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srcset - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

index.js
'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",

12

readme.md

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