ember-template-recast
Advanced tools
Comparing version 6.1.4 to 6.1.5
@@ -410,3 +410,5 @@ "use strict"; | ||
blockParamsSource = nodeInfo.source.substring(blockParamStartIndex, blockParamsEndIndex + 1); | ||
const closeOpenIndex = nodeInfo.source.indexOf(selfClosing ? '/>' : '>'); | ||
// Match closing index after start of block params to avoid closing tag if /> or > encountered in string | ||
const closeOpenIndex = nodeInfo.source.substring(blockParamStartIndex).indexOf(selfClosing ? '/>' : '>') + | ||
blockParamStartIndex; | ||
postBlockParamsWhitespace = nodeInfo.source.substring(blockParamsEndIndex + 1, closeOpenIndex); | ||
@@ -413,0 +415,0 @@ } |
{ | ||
"name": "ember-template-recast", | ||
"version": "6.1.4", | ||
"version": "6.1.5", | ||
"description": "Non-destructive template transformer.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# ember-template-recast | ||
[![NPM version](https://img.shields.io/npm/v/ember-template-recast.svg?style=flat)](https://npmjs.org/package/ember-template-recast) | ||
@@ -9,2 +10,3 @@ With ember-template-recast, transform a template's AST and reprint it. Its | ||
its formatting: | ||
```js | ||
@@ -36,2 +38,3 @@ const recast = require('ember-template-recast'); | ||
``` | ||
## Command Line Usage | ||
@@ -42,3 +45,3 @@ | ||
``` | ||
```sh | ||
npx ember-template-recast directory/of/templates -t transform.js | ||
@@ -136,2 +139,3 @@ ``` | ||
Example: | ||
```js | ||
@@ -138,0 +142,0 @@ const { transform } = require('ember-template-recast'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
131936
1622
194
2