helm-viewer 0.1.2 → 0.1.4

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.
package/binary/index.js CHANGED
@@ -5822,6 +5822,7 @@ const execa_1 = __nccwpck_require__(2168);
5822
5822
  const save_yaml_1 = __nccwpck_require__(8895);
5823
5823
  const fs_1 = __nccwpck_require__(7147);
5824
5824
  const open_1 = __importDefault(__nccwpck_require__(5768));
5825
+ const crypto_1 = __nccwpck_require__(6113);
5825
5826
  function run() {
5826
5827
  var _a, _b;
5827
5828
  return __awaiter(this, void 0, void 0, function* () {
@@ -5838,13 +5839,13 @@ function run() {
5838
5839
  (0, save_yaml_1.saveTemplatedYamlToFiles)(stdout);
5839
5840
  (0, save_yaml_1.saveSourcesYamlToFiles)(currentPath);
5840
5841
  const JSON = (0, fs_1.readFileSync)('tmp/global-data.json', 'utf-8');
5841
- let file = (0, fs_1.readFileSync)('src/index.html', 'utf-8');
5842
+ let file = (0, fs_1.readFileSync)(__nccwpck_require__.ab + "index.html", 'utf-8');
5842
5843
  file = file
5843
5844
  .replace('<script src="assets/global-data.js"></script>', `<script>const DATA = ${JSON};</script>`)
5844
5845
  .replace('<!--<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>-->', '<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>');
5845
- (0, fs_1.mkdirSync)('dist', { recursive: true });
5846
- (0, fs_1.writeFileSync)('dist/index.html', file);
5847
- (0, open_1.default)('dist/index.html');
5846
+ const id = (0, crypto_1.randomUUID)();
5847
+ (0, fs_1.writeFileSync)(`tmp/index-${id}.html`, file);
5848
+ (0, open_1.default)(`tmp/index-${id}.html`);
5848
5849
  });
5849
5850
  }
5850
5851
  ;
@@ -5877,6 +5878,14 @@ module.exports = require("child_process");
5877
5878
 
5878
5879
  /***/ }),
5879
5880
 
5881
+ /***/ 6113:
5882
+ /***/ ((module) => {
5883
+
5884
+ "use strict";
5885
+ module.exports = require("crypto");
5886
+
5887
+ /***/ }),
5888
+
5880
5889
  /***/ 2361:
5881
5890
  /***/ ((module) => {
5882
5891
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "helm-viewer",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Quick tool to easily view your helm charts.",
5
5
  "author": "Tchoupinax <corentinfiloche@hotmail.fr> (https://corentinfiloche.xyz)",
6
6
  "license": "MIT",