Socket
Socket
Sign inDemoInstall

ember-cli-htmlbars

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-htmlbars - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

ember-addon-main.js

@@ -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!')

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc