Comparing version 6.2.0 to 6.2.1
@@ -48,4 +48,5 @@ "use strict"; | ||
const todo = [this]; | ||
while (todo.length > 0) { | ||
const placeholder = todo.shift(); | ||
let i = 0; | ||
while (i < todo.length) { | ||
const placeholder = todo[i++]; | ||
if (placeholder instanceof Node_1.Node) { | ||
@@ -87,15 +88,16 @@ todo.push(...placeholder.childNodes); | ||
const todo = [this]; | ||
while (todo.length > 0) { | ||
const placeholder = todo.shift(); | ||
let i = 0; | ||
while (i < todo.length) { | ||
const placeholder = todo[i++]; | ||
if (placeholder instanceof Node_1.Node) { | ||
const array = placeholder.childNodes; | ||
for (let i = 0; i < array.length; i++) { | ||
const maybeImp = array[i]; | ||
for (let j = 0; j < array.length; j++) { | ||
const maybeImp = array[j]; | ||
if (maybeImp instanceof Import_1.ImportsName && forceDefaultImport.includes(maybeImp.source)) { | ||
const name = getName(maybeImp.source); | ||
array[i] = (0, index_1.code) `${new Import_1.ImportsDefault(name, maybeImp.source)}.${maybeImp.sourceSymbol || maybeImp.symbol}`; | ||
array[j] = (0, index_1.code) `${new Import_1.ImportsDefault(name, maybeImp.source)}.${maybeImp.sourceSymbol || maybeImp.symbol}`; | ||
} | ||
else if (maybeImp instanceof Import_1.ImportsName && forceModuleImport.includes(maybeImp.source)) { | ||
const name = getName(maybeImp.source); | ||
array[i] = (0, index_1.code) `${new Import_1.ImportsAll(name, maybeImp.source)}.${maybeImp.sourceSymbol || maybeImp.symbol}`; | ||
array[j] = (0, index_1.code) `${new Import_1.ImportsAll(name, maybeImp.source)}.${maybeImp.sourceSymbol || maybeImp.symbol}`; | ||
} | ||
@@ -146,4 +148,5 @@ } | ||
let todo = [object]; | ||
while (todo.length > 0) { | ||
const current = todo.shift(); | ||
let i = 0; | ||
while (i < todo.length) { | ||
const current = todo[i++]; | ||
if (Array.isArray(current)) { | ||
@@ -150,0 +153,0 @@ todo.push(...current); |
{ | ||
"name": "ts-poet", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"description": "code generation DSL for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
34708410
2127