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

cssserve

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssserve - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Change Log

## 1.1.3
_2020-09-16_
- fix: Prevent linking to CSS files containing only CSS comments
## 1.1.2

@@ -9,0 +15,0 @@

2

package.json
{
"name": "cssserve",
"version": "1.1.2",
"version": "1.1.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -280,3 +280,6 @@ #!/usr/bin/env node

.filter(function (x) { return x; });
deps.hasCSS = cssSource.replace(match[0], '').trim().length > 0;
deps.hasCSS =
cssSource
.replace(/\/\*.*?\*\//g, '') // Remove all comments, including @deps
.trim().length > 0;
return deps;

@@ -283,0 +286,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