@hologit/lens-lib-k8s 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -78,7 +78,7 @@ async function patchNamespaces(yamlPath, {
78
78
  }
79
79
 
80
80
  // load objects
81
- const objects = yaml.safeLoadAll(fs.readFileSync(yamlPath, 'utf8'));
81
+ const objects = yaml.loadAll(fs.readFileSync(yamlPath, 'utf8'));
82
82
 
83
83
  // patch namespaces
84
84
  let patchedCount = 0;
@@ -115,7 +115,7 @@ async function patchNamespaces(yamlPath, {
115
115
  yamlPath,
116
116
  objects
117
117
  .filter(obj => obj !== null)
118
- .map(object => yaml.safeDump(object))
118
+ .map(object => yaml.dump(object))
119
119
  .join('\n---\n\n')
120
120
  );
121
121
  console.error(`patched ${patchedCount} namespaces in ${yamlPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hologit/lens-lib-k8s",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Shared kubernetes library for hologit lenses",
5
5
  "main": "index.js",
6
6
  "scripts": {