@axium/server 0.4.4 → 0.4.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/io.js +4 -2
- package/package.json +1 -1
package/dist/io.js
CHANGED
|
@@ -176,8 +176,10 @@ export function someWarnings(output, ...allowList) {
|
|
|
176
176
|
return (error) => {
|
|
177
177
|
error = typeof error == 'object' && 'message' in error ? error.message : error;
|
|
178
178
|
for (const [pattern, message = error] of allowList) {
|
|
179
|
-
if (pattern.test(error))
|
|
180
|
-
|
|
179
|
+
if (!pattern.test(error))
|
|
180
|
+
continue;
|
|
181
|
+
output('warn', message);
|
|
182
|
+
return;
|
|
181
183
|
}
|
|
182
184
|
throw error;
|
|
183
185
|
};
|