ember-template-recast
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -0,1 +1,10 @@ | ||
## v3.2.1 (2019-10-10) | ||
#### :bug: Bug Fix | ||
* [#132](https://github.com/ember-template-lint/ember-template-recast/pull/132) Ensure chained inverses are properly printed. ([@rwjblue](https://github.com/rwjblue)) | ||
#### Committers: 2 | ||
- Robert Jackson ([@rwjblue](https://github.com/rwjblue)) | ||
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | ||
## v3.2.0 (2019-10-02) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "ember-template-recast", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Non-destructive template transformer.", | ||
@@ -33,3 +33,3 @@ "license": "MIT", | ||
"eslint": "^6.2.2", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint-config-prettier": "^6.4.0", | ||
"eslint-plugin-node": "^10.0.0", | ||
@@ -39,4 +39,4 @@ "eslint-plugin-prettier": "^3.1.1", | ||
"prettier": "^1.18.2", | ||
"qunit": "^2.9.2", | ||
"release-it": "^12.3.5", | ||
"qunit": "^2.9.3", | ||
"release-it": "^12.4.3", | ||
"release-it-lerna-changelog": "^1.0.3" | ||
@@ -43,0 +43,0 @@ }, |
@@ -728,4 +728,4 @@ const { preprocess, print: _print, traverse } = require('@glimmer/syntax'); | ||
let endSource; | ||
{ | ||
let endSource = ''; | ||
if (!ast.wasChained) { | ||
let firstOpenCurlyFromEndIndex = nodeInfo.source.lastIndexOf('{'); | ||
@@ -793,5 +793,6 @@ let secondOpenCurlyFromEndIndex = nodeInfo.source.lastIndexOf( | ||
if (ast.inverse.chained) { | ||
inverseSource = ast.inverse.body[0].program.body | ||
.map(child => this.print(child)) | ||
.join(''); | ||
inversePreamble = ''; | ||
let inverseBody = ast.inverse.body[0]; | ||
inverseBody.wasChained = true; | ||
inverseSource = this.print(inverseBody); | ||
} else { | ||
@@ -798,0 +799,0 @@ inverseSource = ast.inverse.body.map(child => this.print(child)).join(''); |
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
56237
1228