transformers
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -0,1 +1,5 @@ | ||
## 1.8.3 - 2013-03-19 | ||
- Update promise dependency | ||
## 1.8.2 - 2013-02-10 | ||
@@ -2,0 +6,0 @@ |
@@ -83,11 +83,11 @@ var Promise = require('promise'); | ||
var self = this; | ||
return new Promise(function (res) { | ||
return new Promise(function (resolve, reject) { | ||
self.loadModule(); | ||
if (self._renderAsync) { | ||
self._renderAsync((self.isBinary ? str : fixString(str)), clone(options), function (err, val) { | ||
if (err) res.reject(err); | ||
else res.fulfill(val); | ||
if (err) reject(err); | ||
else resolve(val); | ||
}) | ||
} else { | ||
res.fulfill(self.renderSync(str, options)); | ||
resolve(self.renderSync(str, options)); | ||
} | ||
@@ -100,10 +100,10 @@ }) | ||
var self = this; | ||
return new Promise(function (res) { | ||
return new Promise(function (resolve, reject) { | ||
options.filename = (path = normalize(path)); | ||
if (self._cache[path]) | ||
res.fulfill(null); | ||
resolve(null); | ||
else | ||
fs.readFile(path, function (err, data) { | ||
if (err) res.reject(err); | ||
else res.fulfill(data); | ||
if (err) reject(err); | ||
else resolve(data); | ||
}) | ||
@@ -110,0 +110,0 @@ }) |
{ | ||
"name": "transformers", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "String/Data transformations for use in templating libraries, static site generators and web frameworks", | ||
"main": "lib/transformers.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
@@ -22,3 +19,4 @@ "pretest": "node test/update-package && npm install", | ||
"devDependencies": { | ||
"mocha": "~1.7.4", | ||
"mocha": "~1.8", | ||
"expect.js": "~0.2", | ||
"swig": "*", | ||
@@ -56,3 +54,2 @@ "atpl": "*", | ||
"coffee-script": "*", | ||
"expect.js": "~0.2.0", | ||
"uglify-js": "*", | ||
@@ -71,4 +68,4 @@ "cson": "*", | ||
"dependencies": { | ||
"promise": "~1.3.0" | ||
"promise": "~2.0" | ||
} | ||
} |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ |
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
90402
+ Addedpromise@2.0.0(transitive)
- Removedpromise@1.3.0(transitive)
Updatedpromise@~2.0