@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.
Files changed (2) hide show
  1. package/dist/io.js +4 -2
  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
- output('warn', message);
179
+ if (!pattern.test(error))
180
+ continue;
181
+ output('warn', message);
182
+ return;
181
183
  }
182
184
  throw error;
183
185
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",