Socket
Socket
Sign inDemoInstall

ember-cli-htmlbars

Package Overview
Dependencies
Maintainers
5
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 5.6.3 to 5.6.4

11

CHANGELOG.md
# 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 @@

12

lib/colocated-babel-plugin.js

@@ -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,

2

package.json
{
"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": [

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