@ombori/ga-settings
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -6,2 +6,13 @@ # Change Log | ||
## 4.0.4 (2024-08-25) | ||
### Bug Fixes | ||
* logging ([4934668](https://github.com/ombori/gridapp/commit/4934668dead37809297a0a4a78221711c8f4d982)) | ||
## 4.0.3 (2024-08-24) | ||
@@ -8,0 +19,0 @@ |
@@ -90,4 +90,5 @@ "use strict"; | ||
if (gridapp && !hasLoadedSettings.current) { | ||
log('Settings ready: ', gridapp); | ||
log('Settings ready2: ', gridapp, gridapp.getSettings()); | ||
var gridappSettings = gridapp.getSettings(); | ||
console.log({ gridappSettings: gridappSettings }); | ||
var settingsOverride = {}; | ||
@@ -127,5 +128,9 @@ var installationType = getInstallationTypeFromSettings(gridappSettings); | ||
} | ||
console.log('Setting settings:', { | ||
settings: __assign(__assign({}, gridappSettings), settingsOverride), | ||
}); | ||
setSettings(__assign(__assign({}, gridappSettings), settingsOverride)); | ||
hasLoadedSettings.current = true; | ||
} | ||
console.log('Handler done', { gridapp: window.gridapp, settings: settings }); | ||
}; | ||
@@ -132,0 +137,0 @@ if (utils_1.isDev) { |
{ | ||
"name": "@ombori/ga-settings", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"main": "dist/index.js", | ||
@@ -19,3 +19,3 @@ "license": "UNLICENSED", | ||
"test:coverage": "npm run test -- --coverage --watchAll=false", | ||
"gitHead": "f051fc1638263e05b674ae2dcf70a4bbaa5c3ae9" | ||
"gitHead": "9f74913aeef8f9011bcd00912c89aed4681764b5" | ||
} |
@@ -92,4 +92,5 @@ import { useEffect, useState, useRef } from 'react'; | ||
if (gridapp && !hasLoadedSettings.current) { | ||
log('Settings ready: ', gridapp); | ||
log('Settings ready2: ', gridapp, gridapp.getSettings()); | ||
const gridappSettings = gridapp.getSettings() as UseSettingsState<T>; | ||
console.log({ gridappSettings }); | ||
@@ -134,2 +135,8 @@ let settingsOverride: unknown = {}; | ||
console.log('Setting settings:', { | ||
settings: { | ||
...gridappSettings, | ||
...(settingsOverride as Object), | ||
}, | ||
}); | ||
setSettings({ | ||
@@ -141,2 +148,4 @@ ...gridappSettings, | ||
} | ||
console.log('Handler done', { gridapp: window.gridapp, settings }); | ||
}; | ||
@@ -143,0 +152,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70806
1121