mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Upgrade js-yaml to 4.X (#3623)
This commit is contained in:
1 parent
fcb3010033
commit
5998b4ca84
17 files changed
+90
-57
No files matched your search
@@ -133,7 +133,7 @@ export class ResourceStack {
|
||||
|
||||
if (!resourceData.trim()) continue;
|
||||
|
||||
const resourceArray = yaml.safeLoadAll(resourceData.toString());
|
||||
const resourceArray = yaml.loadAll(resourceData.toString());
|
||||
|
||||
resourceArray.forEach((resource) => {
|
||||
if (resource?.metadata) {
|
||||
@@ -143,7 +143,7 @@ export class ResourceStack {
|
||||
resource.metadata.labels["app.kubernetes.io/created-by"] = "resource-stack";
|
||||
}
|
||||
|
||||
resources.push(yaml.safeDump(resource));
|
||||
resources.push(yaml.dump(resource));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user