ember-cli-htmlbars
Advanced tools
Comparing version 5.6.3 to 5.6.4
# Changelog | ||
## v5.6.4 (2021-03-07) | ||
#### :bug: Bug Fix | ||
* [#678](https://github.com/ember-cli/ember-cli-htmlbars/pull/678) Make `setTimeout`/`clearTimeout` available to the template compiler sandbox ([@rwjblue](https://github.com/rwjblue)) | ||
* [#677](https://github.com/ember-cli/ember-cli-htmlbars/pull/677) Support TypeScript merging of export default declarations in template colocation ([@dfreeman](https://github.com/dfreeman)) | ||
#### Committers: 2 | ||
- Dan Freeman ([@dfreeman](https://github.com/dfreeman)) | ||
- Robert Jackson ([@rwjblue](https://github.com/rwjblue)) | ||
## v5.6.3 (2021-03-04) | ||
@@ -4,0 +15,0 @@ |
@@ -25,3 +25,13 @@ // For ease of debuggin / tweaking: | ||
ExportDefaultDeclaration(path, state) { | ||
if (state.colocatedTemplateFound !== true || state.setComponentTemplateInjected === true) { | ||
let defaultExportDeclarationPath = path.get('declaration'); | ||
let defaultExportIsExpressionOrClass = | ||
defaultExportDeclarationPath.isClass() || | ||
defaultExportDeclarationPath.isExpression() || | ||
defaultExportDeclarationPath.isFunction(); | ||
if ( | ||
state.colocatedTemplateFound !== true || | ||
state.setComponentTemplateInjected === true || | ||
!defaultExportIsExpressionOrClass | ||
) { | ||
return; | ||
@@ -28,0 +38,0 @@ } |
@@ -148,2 +148,9 @@ 'use strict'; | ||
EmberENV: clonedEmberENV, | ||
// Older versions of ember-template-compiler (up until ember-source@3.1.0) | ||
// eagerly access `setTimeout` without checking via `typeof` first | ||
setTimeout, | ||
clearTimeout, | ||
// fake the module into thinking we are running inside a Node context | ||
module: { require, exports: {} }, | ||
@@ -150,0 +157,0 @@ require, |
{ | ||
"name": "ember-cli-htmlbars", | ||
"version": "5.6.3", | ||
"version": "5.6.4", | ||
"description": "A library for adding htmlbars to ember CLI", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
67028
1052