mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
use uuid v4 for randomness
This commit is contained in:
4115
probe/package-lock.json
generated
4115
probe/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -33,6 +33,7 @@
|
||||
"node-fetch": "^2.6.1",
|
||||
"node-ssh": "^11.1.1",
|
||||
"ping": "^0.4.0",
|
||||
"uuid": "^8.3.2",
|
||||
"vm2": "^3.9.2",
|
||||
"winston": "^2.4.0",
|
||||
"winston-slack-transport": "^2.0.0"
|
||||
|
||||
@@ -2,7 +2,7 @@ const { spawn } = require('child_process');
|
||||
const fs = require('fs');
|
||||
const Path = require('path');
|
||||
const fetch = require('node-fetch');
|
||||
const uuidv1 = require('uuid/v1');
|
||||
const { v4: uuidv4 } = require('uuid');
|
||||
const ApiService = require('../utils/apiService');
|
||||
const ErrorService = require('../utils/errorService');
|
||||
const { serverUrl } = require('../utils/config');
|
||||
@@ -18,7 +18,7 @@ module.exports = {
|
||||
monitor.kubernetesConfig
|
||||
) {
|
||||
const configurationFile = monitor.kubernetesConfig;
|
||||
const updatedConfigName = `${uuidv1()}${configurationFile}`;
|
||||
const updatedConfigName = `${uuidv4()}${configurationFile}`;
|
||||
const configPath = Path.resolve(
|
||||
process.cwd(),
|
||||
updatedConfigName
|
||||
|
||||
Reference in New Issue
Block a user