Comparing version 3.5.0-beta.5 to 3.5.0-beta.6
@@ -67,3 +67,4 @@ var functionRegistry = require('../functions/function-registry'), | ||
loader(localModule, this.require(filename), registerPlugin, registry, this.less.tree, this.less, fileInfo); | ||
} catch (e) { | ||
} | ||
catch (e) { | ||
return new LessError(e, imports, filename); | ||
@@ -82,8 +83,12 @@ } | ||
if (pluginObj) { | ||
// For 2.x back-compatibility - setOptions() before install() | ||
pluginObj.imports = imports; | ||
pluginObj.filename = filename; | ||
result = this.trySetOptions(pluginObj, filename, shortname, pluginOptions); | ||
if (result) { | ||
return result; | ||
// For < 3.x (or unspecified minVersion) - setOptions() before install() | ||
if (!pluginObj.minVersion || this.compareVersion('3.0.0', pluginObj.minVersion) < 0) { | ||
result = this.trySetOptions(pluginObj, filename, shortname, pluginOptions); | ||
if (result) { | ||
return result; | ||
} | ||
} | ||
@@ -90,0 +95,0 @@ |
{ | ||
"name": "less", | ||
"version": "3.5.0-beta.5", | ||
"version": "3.5.0-beta.6", | ||
"description": "Leaner CSS", | ||
@@ -5,0 +5,0 @@ "homepage": "http://lesscss.org", |
@@ -25,3 +25,4 @@ module.exports = { | ||
// console.log(manager); | ||
} | ||
}, | ||
minVersion: [2,0,0] | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
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
978
26
6
1808798
31766