Socket
Socket
Sign inDemoInstall

css-sniper

Package Overview
Dependencies
185
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.5.0

test/plain.css

12

importer.js

@@ -14,6 +14,14 @@ const fs = require('fs');

const file = `${baseUrl}/${fileUrl}`;
let contents;
if (definitions.length === 0) return { file: file.substring(0, file.indexOf('.css')) };
if (definitions.length === 0) {
// Importing .css files has been deprecated in libsass:
// https://github.com/sass/libsass/pull/2613
// (rationale in https://github.com/sass/libsass/issues/2611)
contents = fs.readFileSync(file, 'utf-8');
}
else {
contents = parseFile(file, definitions);
}
let contents = parseFile(file, definitions);
return { contents: contents };

@@ -20,0 +28,0 @@ }

6

package.json
{
"name": "css-sniper",
"version": "0.4.0",
"version": "0.5.0",
"description": "A node module and sass compiler, which lets you remove styles and selectors, while importing external CSS files.",

@@ -23,6 +23,6 @@ "main": "index.js",

"dependencies": {
"commander": "^2.14.1",
"commander": "^2.15.1",
"css-tree": "^1.0.0-alpha.28",
"node-sass": "^4.7.2"
"node-sass": "^4.9.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc