Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@litert/core

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@litert/core - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

dist/class.TimeoutPromise.d.ts

5

CHANGES.md
# Changes Logs
## v0.6.0
- Added new utility class `TimeoutPromise`.
- Improved the judegement of `Exception.is`.
## v0.5.0

@@ -4,0 +9,0 @@

5

dist/class.Exception.js

@@ -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 @@ }

1

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc