helm-viewer 0.1.1 → 0.1.3
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,14 +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
|
-
(0, fs_1.
|
|
5842
|
-
let file = (0, fs_1.readFileSync)('src/index.html', 'utf-8');
|
|
5842
|
+
let file = (0, fs_1.readFileSync)('index.html', 'utf-8');
|
|
5843
5843
|
file = file
|
|
5844
5844
|
.replace('<script src="assets/global-data.js"></script>', `<script>const DATA = ${JSON};</script>`)
|
|
5845
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>');
|
|
5846
|
-
(0,
|
|
5847
|
-
(0, fs_1.writeFileSync)(
|
|
5848
|
-
(0, open_1.default)(
|
|
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`);
|
|
5849
5849
|
});
|
|
5850
5850
|
}
|
|
5851
5851
|
;
|
|
@@ -5878,6 +5878,14 @@ module.exports = require("child_process");
|
|
|
5878
5878
|
|
|
5879
5879
|
/***/ }),
|
|
5880
5880
|
|
|
5881
|
+
/***/ 6113:
|
|
5882
|
+
/***/ ((module) => {
|
|
5883
|
+
|
|
5884
|
+
"use strict";
|
|
5885
|
+
module.exports = require("crypto");
|
|
5886
|
+
|
|
5887
|
+
/***/ }),
|
|
5888
|
+
|
|
5881
5889
|
/***/ 2361:
|
|
5882
5890
|
/***/ ((module) => {
|
|
5883
5891
|
|
|
Binary file
|
package/package.json
CHANGED