ember-cli-htmlbars
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -8,3 +8,3 @@ 'use strict'; | ||
included: function (app) { | ||
var HTMLBars = app.project.config(app.env).EmberENV.FEATURES.HTMLBars | ||
var HTMLBars = app.project.config(app.env).EmberENV.FEATURES['ember-htmlbars']; | ||
@@ -11,0 +11,0 @@ this._super.included.apply(this, arguments); |
var Filter = require('broccoli-filter'); | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var compileSpec = require('./ext/htmlbars-compiler/compiler').compileSpec; | ||
var compileSpec = require('htmlbars').compileSpec; | ||
var handlbarsTemplateCompiler = require('ember-template-compiler'); | ||
@@ -24,3 +24,3 @@ | ||
if (this.HTMLBars) { | ||
return "var template = " + compileSpec(string) + "\nexport default template;"; | ||
return "var template = " + compileSpec(string) + "\nexport default Ember.HTMLBars.template(template);"; | ||
} else { | ||
@@ -27,0 +27,0 @@ var input = handlbarsTemplateCompiler.precompile(string, false); |
{ | ||
"name": "ember-cli-htmlbars", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A library for adding htmlbars to ember CLI", | ||
@@ -32,5 +32,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"broccoli-filter": "^0.1.6", | ||
"ember-template-compiler": "^1.9.0-alpha", | ||
"broccoli-filter": "^0.1.6" | ||
"htmlbars": "0.1.2" | ||
} | ||
} |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var templateCompilerFilter = require('../index'); | ||
var htmlbarsCompiler = require('../ext/htmlbars-compiler/compiler').compileSpec; | ||
var htmlbarsCompiler = require('htmlbars').compileSpec; | ||
var handlbarsTemplateCompiler = require('ember-template-compiler'); | ||
@@ -29,3 +29,3 @@ | ||
var source = fs.readFileSync(sourcePath + '/template.hbs', { encoding: 'utf8' }); | ||
var expected = "var template = " + htmlbarsCompiler(source) + "\nexport default template;"; | ||
var expected = "var template = " + htmlbarsCompiler(source) + "\nexport default Ember.HTMLBars.template(template);"; | ||
@@ -32,0 +32,0 @@ assert.equal(actual,expected,'They dont match!') |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1
4960
3
8
88
+ Addedhtmlbars@0.1.2
+ Addedbroccoli-funnel@0.1.7(transitive)
+ Addedcore-object@0.0.2(transitive)
+ Addedhandlebars@1.3.0(transitive)
+ Addedhtmlbars@0.1.2(transitive)
+ Addedlodash-node@2.4.1(transitive)
+ Addedminimatch@2.0.10(transitive)