Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

transformers

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transformers - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

4

history.md

@@ -0,1 +1,5 @@

## 1.8.3 - 2013-03-19
- Update promise dependency
## 1.8.2 - 2013-02-10

@@ -2,0 +6,0 @@

16

lib/shared.js

@@ -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"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc