Comparing version 0.0.1 to 0.0.3
'use strict'; | ||
var prop = require('mincer/lib/mincer/common').prop; | ||
// Second param is not mandatory, used only to force specific | ||
@@ -15,3 +17,3 @@ // module version when nested dependencies cause conflict. | ||
JsxEngine.prototype.evaluate = function evaluate(context, locals) { | ||
return jsx.transform(this.data); | ||
this.data = jsx.transform(this.data); | ||
}; | ||
@@ -21,2 +23,3 @@ | ||
prop(Mincer.JsxEngine, 'defaultMimeType', 'application/javascript'); | ||
}; |
{ | ||
"name": "mincer-jsx", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"description": "JSX engine for Mincer", | ||
@@ -10,4 +10,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"mincer": "~0.5.6" | ||
"mincer": "~1.0" | ||
}, | ||
"peerDependencies": { | ||
"mincer": "~1.0" | ||
}, | ||
"dependencies": { | ||
@@ -14,0 +17,0 @@ "react-tools": "~0.10.0" |
@@ -17,3 +17,3 @@ # Mincer JSX | ||
"dependencies": { | ||
"mincer-jsx": "0.0.1" | ||
"mincer-jsx": "0.0.3" | ||
} | ||
@@ -31,3 +31,3 @@ ``` | ||
Now files with `.js.jsx` extension will be compiled to using `react-tools` to JavaScript. | ||
Now files with `.jsx` extension will be compiled to using `react-tools` to JavaScript. | ||
@@ -34,0 +34,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
3697
30
2