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

css-asset-rebaser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-asset-rebaser - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

11

lib/index.js

@@ -1,6 +0,5 @@

var PluginError = require('gulp-util').PluginError;
var Transform = require('stream').Transform;
var css = require('css');
var fse = require('fs-extra');
var logger = require('gulplog');
var gutil = require('gulp-util');
var path = require('path');

@@ -18,3 +17,3 @@ var util = require('util');

if (!stylesheet) {
logger.warn('Parsed CSS has no stylesheet: %s', filePath);
gutil.log('Parsed CSS has no stylesheet:', filePath);
return declarations;

@@ -25,3 +24,3 @@ }

if (!rules || !rules.length) {
logger.warn('Parsed CSS has no rules: %s', filePath);
gutil.log('Parsed CSS has no rules:', filePath);
return declarations;

@@ -47,3 +46,3 @@ }

var message = util.format.apply(util, arguments);
return new PluginError(PLUGIN_NAME, message);
return new gutil.PluginError(PLUGIN_NAME, message);
}

@@ -105,3 +104,3 @@

if (!originalUrl) {
logger.warn('Expected url() in CSS value: %s', str);
gutil.log('Expected url() in CSS value:', str);
return;

@@ -108,0 +107,0 @@ }

{
"name": "css-asset-rebaser",
"version": "0.3.0",
"version": "0.4.0",
"description": "Copy assets from node_modules and rewrite URLs in CSS",

@@ -25,5 +25,4 @@ "main": "lib/index.js",

"fs-extra": "^0.26.2",
"gulp-util": "^3.0.7",
"gulplog": "^1.0.0"
"gulp-util": "^3.0.7"
}
}
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