flex-combo-plus
Advanced tools
Comparing version 2.5.1 to 2.5.2
{ | ||
"name": "flex-combo-plus", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "process engine for aproxy", | ||
@@ -15,2 +15,3 @@ "main": "instance.js", | ||
"date-utils": "~1.2.16", | ||
"find-up": "~1.1.2", | ||
"less": "~2.7.1", | ||
@@ -17,0 +18,0 @@ "less-plugin-npm-import": "~2.1.0", |
var fs = require('fs'); | ||
var path = require('path'); | ||
var less = require('less'); | ||
var findup = require('find-up'); | ||
var npmimport = new (require('less-plugin-npm-import'))(); | ||
@@ -20,11 +21,21 @@ | ||
fs.readFile(pathTar, {}, function(err, data){ | ||
less.render(data.toString(), { | ||
sourceMap: { | ||
sourceMapFileInline: false | ||
}, | ||
plugins: [ npmimport ] | ||
findup('package.json') | ||
.then(function(pathDir){ | ||
pathDir = path.resolve(pathDir, '..'); | ||
less.render(data.toString(), { | ||
paths: [ pathDir, path.resolve(pathTar, '..') ], | ||
sourceMap: { | ||
sourceMapFileInline: false | ||
}, | ||
plugins: [ npmimport ] | ||
}) | ||
.then(function(o){ | ||
deferred.resolve([new Buffer(o.css), pathTar]); | ||
}) | ||
.catch(function(err){ | ||
deferred.reject(err); | ||
}); | ||
}) | ||
.then(function(o){ | ||
deferred.resolve([new Buffer(o.css), pathTar]); | ||
}) | ||
.catch(function(err){ | ||
@@ -31,0 +42,0 @@ deferred.reject(err); |
@@ -31,3 +31,3 @@ /** | ||
remote: { | ||
'g.alicdn.com' : '110.75.114.8', | ||
'g.alicdn.com' : '140.205.77.240', | ||
'g-assets.daily.taobao.net' : '10.101.73.189', | ||
@@ -34,0 +34,0 @@ 'g.tbcdn.cn' : '140.205.132.240', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31298
781
7
+ Addedfind-up@~1.1.2
+ Addedfind-up@1.1.2(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)