@litert/core
Advanced tools
Comparing version 0.5.0 to 0.6.0
# Changes Logs | ||
## v0.6.0 | ||
- Added new utility class `TimeoutPromise`. | ||
- Improved the judegement of `Exception.is`. | ||
## v0.5.0 | ||
@@ -4,0 +9,0 @@ |
@@ -95,3 +95,6 @@ "use strict"; | ||
static is(e, type) { | ||
return e instanceof Exception && (type === void 0 || type === e.type); | ||
return e && (e instanceof Exception || (typeof e._type === "string" && | ||
typeof e._error === "number" && | ||
typeof e._message === "string" && | ||
typeof e._trace === "object")) && (type === void 0 || type === e.type); | ||
} | ||
@@ -98,0 +101,0 @@ } |
@@ -31,4 +31,5 @@ /** | ||
export * from "./class.RawPromise"; | ||
export * from "./class.TimeoutPromise"; | ||
import * as Async from "./utilities.async"; | ||
import * as Validators from "./utilities.validators"; | ||
export { Async, Validators }; |
@@ -22,2 +22,3 @@ "use strict"; | ||
__export(require("./class.RawPromise")); | ||
__export(require("./class.TimeoutPromise")); | ||
const Async = require("./utilities.async"); | ||
@@ -24,0 +25,0 @@ exports.Async = Async; |
{ | ||
"name": "@litert/core", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "The core of LiteRT.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -123,4 +123,11 @@ /* | ||
return e instanceof Exception && (type === void 0 || type === e.type); | ||
return e && ( | ||
e instanceof Exception || ( | ||
typeof e._type === "string" && | ||
typeof e._error === "number" && | ||
typeof e._message === "string" && | ||
typeof e._trace === "object" | ||
) | ||
) && (type === void 0 || type === e.type); | ||
} | ||
} |
@@ -57,2 +57,4 @@ /* | ||
export * from "./class.TimeoutPromise"; | ||
import * as Async from "./utilities.async"; | ||
@@ -59,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
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
46831
28
807