@hoddy-ui/next 2.0.21 → 2.0.22
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -141,24 +141,24 @@ function colors(theme) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// ../src/config/KeyManager.ts
|
|
144
|
-
var
|
|
144
|
+
var config = {
|
|
145
145
|
GOOGLE_MAP_API_KEY: ""
|
|
146
146
|
};
|
|
147
147
|
function setApiKey(key) {
|
|
148
|
-
|
|
148
|
+
config = key;
|
|
149
149
|
}
|
|
150
150
|
function getApiKey() {
|
|
151
|
-
return
|
|
151
|
+
return config;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// ../src/config/index.ts
|
|
155
|
-
function initialize(
|
|
155
|
+
function initialize(config2) {
|
|
156
156
|
try {
|
|
157
157
|
setApiKey({
|
|
158
|
-
GOOGLE_MAP_API_KEY:
|
|
158
|
+
GOOGLE_MAP_API_KEY: config2.googleMapApiKey
|
|
159
159
|
});
|
|
160
|
-
if (
|
|
161
|
-
setExtraColors(
|
|
160
|
+
if (config2.colors)
|
|
161
|
+
setExtraColors(config2.colors);
|
|
162
162
|
} catch (error) {
|
|
163
163
|
console.error("Error reading the config file:", error);
|
|
164
164
|
}
|