Comparing version 0.2.10 to 0.2.11
@@ -470,6 +470,7 @@ 'use strict'; | ||
function createError(input) { | ||
var _a; | ||
if (input instanceof H3Error) { | ||
return input; | ||
} | ||
const err = new H3Error(input.message); | ||
const err = new H3Error((_a = input.message) != null ? _a : input.statusMessage); | ||
if (input.statusCode) { | ||
@@ -476,0 +477,0 @@ err.statusCode = input.statusCode; |
{ | ||
"name": "h3", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Tiny JavaScript Server", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/h3", |
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
1284
45951
6