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

dac

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dac - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

27

engines/less.js
var helper = require("../lib/util");
var less = require("less");
var path = require("path");

@@ -7,12 +8,26 @@ module.exports = function (pxcssfile, reqOpt, param, cb) {

var isMap = false;
if (/\.map$/.test(pxcssfile)) {
isMap = true;
pxcssfile = pxcssfile.replace(/\.map$/, '');
}
var xcssfile = pxcssfile.replace(/(\.less)\.css$/, "$1");
var renderOpt = {
paths: [],
compress: false,
filename: xcssfile
};
if (isMap || param.sourcemap) {
renderOpt.sourceMap = {
sourceMapBasepath: path.dirname(pxcssfile),
sourceMapURL: path.basename(pxcssfile) + ".map"
};
}
var lesstext = helper.getUnicode(xcssfile);
if (lesstext !== null) {
less.render(lesstext, {
paths: [],
compress: false,
filename: xcssfile
}, function (e, result) {
less.render(lesstext, renderOpt, function (e, result) {
if (!e) {
cb(e, result.css, xcssfile, MIME);
cb(e, (isMap ? result.map : result.css), xcssfile, (isMap ? "application/json" : MIME));
}

@@ -19,0 +34,0 @@ else {

{
"name": "dac",
"version": "0.6.0",
"version": "0.6.1",
"description": "Dynamic Assets Compiler",

@@ -5,0 +5,0 @@ "main": "index.js",

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