Skip to content
Snippets Groups Projects
Unverified Commit c9777bcf authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(kustomize): ensure string before extractResource (#20338)

parent 15365b5f
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ export function extractPackageFile(content: string): PackageFile | null {
}
// grab the remote bases
for (const base of coerceArray(pkg.bases)) {
for (const base of coerceArray(pkg.bases).filter(is.string)) {
const dep = extractResource(base);
if (dep) {
deps.push({
......@@ -188,7 +188,7 @@ export function extractPackageFile(content: string): PackageFile | null {
}
// grab the remote resources
for (const resource of coerceArray(pkg.resources)) {
for (const resource of coerceArray(pkg.resources).filter(is.string)) {
const dep = extractResource(resource);
if (dep) {
deps.push({
......@@ -199,7 +199,7 @@ export function extractPackageFile(content: string): PackageFile | null {
}
// grab the remote components
for (const component of coerceArray(pkg.components)) {
for (const component of coerceArray(pkg.components).filter(is.string)) {
const dep = extractResource(component);
if (dep) {
deps.push({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment