Comparing version 0.10.0 to 0.11.0
// Generated by CoffeeScript 1.7.0 | ||
(function() { | ||
var Adapter, W, fs, _; | ||
var Adapter, File, W, _; | ||
fs = require('fs'); | ||
File = require('fobject'); | ||
@@ -28,5 +28,7 @@ W = require('when'); | ||
} | ||
return this.render(fs.readFileSync(file, 'utf8'), _.extend(opts, { | ||
return (new File(file)).read({ | ||
encoding: 'utf8' | ||
}).then(_.partialRight(this.render, _.extend(opts, { | ||
filename: file | ||
})); | ||
})).bind(this)); | ||
}; | ||
@@ -48,5 +50,7 @@ | ||
} | ||
return this.compile(fs.readFileSync(file, 'utf8'), _.extend(opts, { | ||
return (new File(file)).read({ | ||
encoding: 'utf8' | ||
}).then(_.partialRight(this.compile, _.extend(opts, { | ||
filename: file | ||
})); | ||
})).bind(this)); | ||
}; | ||
@@ -68,5 +72,7 @@ | ||
} | ||
return this.compileClient(fs.readFileSync(file, 'utf8'), _.extend(opts, { | ||
return (new File(file)).read({ | ||
encoding: 'utf8' | ||
}).then(_.partialRight(this.compileClient, _.extend(opts, { | ||
filename: file | ||
})); | ||
})).bind(this)); | ||
}; | ||
@@ -73,0 +79,0 @@ |
@@ -29,3 +29,8 @@ // Generated by CoffeeScript 1.7.0 | ||
} | ||
return deferred.resolve(tree.toCSS()); | ||
try { | ||
return deferred.resolve(tree.toCSS()); | ||
} catch (_error) { | ||
err = _error; | ||
return deferred.reject(err); | ||
} | ||
}); | ||
@@ -32,0 +37,0 @@ return deferred.promise; |
// Generated by CoffeeScript 1.7.0 | ||
(function() { | ||
var abstract_mapper, adapter_to_name, glob, indx, name_to_adapter, path, resolve_path, supports, _; | ||
var abstract_mapper, adapter_to_name, glob, indx, name_to_adapter, path, resolve, resolve_path, supports, _; | ||
@@ -13,2 +13,4 @@ path = require('path'); | ||
resolve = require('resolve'); | ||
exports.supports = supports = function(name) { | ||
@@ -27,3 +29,5 @@ name = adapter_to_name(name); | ||
if (custom_path) { | ||
compiler = require(custom_path); | ||
compiler = require(resolve.sync(path.basename(custom_path), { | ||
basedir: custom_path | ||
})); | ||
compiler.__accord_path = custom_path; | ||
@@ -30,0 +34,0 @@ } else { |
{ | ||
"name": "accord", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"author": "Jeff Escalante <hello@jenius.me>", | ||
@@ -13,8 +13,9 @@ "description": "A unified interface for compiled languages and templates in JavaScript", | ||
"dependencies": { | ||
"colors": "0.6.x", | ||
"when": "3.x", | ||
"fobject": "0.0.0", | ||
"glob": "4.x", | ||
"indx": "0.1.x", | ||
"lodash": "2.x", | ||
"glob": "3.x", | ||
"resolve": "0.7.x", | ||
"uglify-js": "2.x", | ||
"indx": "0.1.x" | ||
"when": "3.x" | ||
}, | ||
@@ -21,0 +22,0 @@ "devDependencies": { |
@@ -6,6 +6,6 @@ accord | ||
[![npm](https://badge.fury.io/js/accord.svg)](http://badge.fury.io/js/accord) | ||
[![tests](https://travis-ci.org/jenius/accord.svg?branch=master)](https://travis-ci.org/jenius/accord) | ||
[![coverage](http://img.shields.io/coveralls/jenius/accord.svg)](https://coveralls.io/r/jenius/accord?branch=master) | ||
[![dependencies](https://david-dm.org/jenius/accord.svg)](https://david-dm.org/jenius/accord) | ||
[![npm](http://img.shields.io/npm/v/accord.svg?style=flat)](http://badge.fury.io/js/accord) | ||
[![tests](http://img.shields.io/travis/jenius/accord/master.svg?style=flat)](https://travis-ci.org/jenius/accord) | ||
[![coverage](http://img.shields.io/coveralls/jenius/accord/master.svg?style=flat)](https://coveralls.io/r/jenius/accord?branch=master) | ||
[![dependencies](http://img.shields.io/gemnasium/jenius/accord.svg?style=flat)](https://david-dm.org/jenius/accord) | ||
@@ -12,0 +12,0 @@ ### Why should you care? |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
10
47217
7
28
1077
+ Addedfobject@0.0.0
+ Addedresolve@0.7.x
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfobject@0.0.0(transitive)
+ Addedglob@4.5.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedminimatch@2.0.10(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedresolve@0.7.4(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedcolors@0.6.x
- Removedglob@3.2.11(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.3.0(transitive)
- Removedsigmund@1.0.1(transitive)
Updatedglob@4.x