Comparing version 0.1.8 to 0.1.9
24
index.js
@@ -32,14 +32,2 @@ var juicer = require('juicer'), | ||
"var __throw = function(error) {", | ||
"if(typeof(console) !== 'undefined') {", | ||
"if(console.warn) {", | ||
"console.warn(error);", | ||
"return;", | ||
"}", | ||
"if(console.log) {", | ||
"console.log(error);", | ||
"return;", | ||
"}", | ||
"}", | ||
"throw(error);", | ||
@@ -57,3 +45,2 @@ "};", | ||
switch (type) { | ||
case "Compile": | ||
case "Embed": | ||
@@ -65,3 +52,3 @@ delog.process(c); | ||
break; | ||
case "Local": | ||
case "Compile": | ||
delog.response(c); | ||
@@ -105,3 +92,2 @@ console.log(''); | ||
} | ||
cosoleResp("Local", xcssfile); | ||
return tree.toCSS(); | ||
@@ -117,6 +103,3 @@ }) + "\n"; | ||
var content = sass.renderSync({ | ||
data: getUTF8Str(xcssfile), | ||
success: function () { | ||
cosoleResp("Local", xcssfile); | ||
} | ||
data: getUTF8Str(xcssfile) | ||
}) + "\n"; | ||
@@ -148,3 +131,3 @@ | ||
if (!wrapper || 'string' !== typeof wrapper || !!~['window', 'global', 'self', 'parent', 'Window', 'Global'].indexOf(wrapper)) { | ||
templateFunction = 'window["/' + revPath + '"] = ' + compiled; | ||
templateFunction = 'window["' + revPath + '"] = ' + compiled; | ||
} | ||
@@ -161,3 +144,2 @@ else { | ||
cosoleResp('Compile', htmlName); | ||
cosoleResp('Local', absPath); | ||
@@ -164,0 +146,0 @@ return iconv.encode(templateFunction, charset); |
{ | ||
"name": "dac", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Dynamic Assets Compiler", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"less":"~1.7.5", | ||
"node-sass":"~0.9.3", | ||
"node-sass":"~1.1.4", | ||
"debug.log": "^0.0.3" | ||
@@ -26,0 +26,0 @@ }, |
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
5882
145
+ Addedcamelcase@1.2.1(transitive)
+ Addedcamelcase-keys@1.0.0(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedindent-string@1.2.2(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmeow@2.1.0(transitive)
+ Addednode-sass@1.1.4(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedrepeating@1.1.3(transitive)
- Removednode-sass@0.9.6(transitive)
- Removednode-sass-middleware@0.3.1(transitive)
- Removedyargs@1.3.3(transitive)
Updatednode-sass@~1.1.4