@aiready/core 0.2.4 → 0.2.5
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.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -188,7 +188,10 @@ function mergeConfigWithDefaults(userConfig, defaults) {
|
|
|
188
188
|
}
|
|
189
189
|
if (userConfig.tools) {
|
|
190
190
|
for (const [toolName, toolConfig] of Object.entries(userConfig.tools)) {
|
|
191
|
-
if (
|
|
191
|
+
if (typeof toolConfig === "object" && toolConfig !== null) {
|
|
192
|
+
if (toolName === "pattern-detect") {
|
|
193
|
+
Object.assign(result, toolConfig);
|
|
194
|
+
}
|
|
192
195
|
result[toolName] = { ...result[toolName], ...toolConfig };
|
|
193
196
|
}
|
|
194
197
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -158,7 +158,10 @@ function mergeConfigWithDefaults(userConfig, defaults) {
|
|
|
158
158
|
}
|
|
159
159
|
if (userConfig.tools) {
|
|
160
160
|
for (const [toolName, toolConfig] of Object.entries(userConfig.tools)) {
|
|
161
|
-
if (
|
|
161
|
+
if (typeof toolConfig === "object" && toolConfig !== null) {
|
|
162
|
+
if (toolName === "pattern-detect") {
|
|
163
|
+
Object.assign(result, toolConfig);
|
|
164
|
+
}
|
|
162
165
|
result[toolName] = { ...result[toolName], ...toolConfig };
|
|
163
166
|
}
|
|
164
167
|
}
|