@echoteam/signoz-react 1.0.7-beta.1 → 1.0.8
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/README.md +8 -6
- package/dist/index.esm.js +1 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15283,17 +15283,13 @@ function getConfigValue(key) {
|
|
|
15283
15283
|
}
|
|
15284
15284
|
// Fungsi untuk memvalidasi konfigurasi
|
|
15285
15285
|
function validateConfig(config) {
|
|
15286
|
-
const requiredFields = ['serviceName', 'serviceVersion', 'environment', 'serviceNamespace', 'url'
|
|
15286
|
+
const requiredFields = ['serviceName', 'serviceVersion', 'environment', 'serviceNamespace', 'url'];
|
|
15287
15287
|
const missingFields = [];
|
|
15288
15288
|
for (const field of requiredFields) {
|
|
15289
15289
|
if (!config[field]) {
|
|
15290
15290
|
missingFields.push(field);
|
|
15291
15291
|
}
|
|
15292
15292
|
}
|
|
15293
|
-
// Khusus validasi allowedOrigins: pastikan array tidak kosong
|
|
15294
|
-
if (config.allowedOrigins && config.allowedOrigins.length === 0) {
|
|
15295
|
-
missingFields.push('allowedOrigins tidak boleh kosong demi keamanan CORS');
|
|
15296
|
-
}
|
|
15297
15293
|
return {
|
|
15298
15294
|
isValid: missingFields.length === 0,
|
|
15299
15295
|
missingFields
|