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.4.1 to 0.5.0

dist/utilities.validators.d.ts

8

CHANGES.md
# Changes Logs
## v0.5.0
- Added new semantic types `Nullable` and `Optional`, `Dict`.
- Now the `IDictionary` is the alias of `Dict`, and has been mark as
`deprecated`. It will be removed in v1.0.0.
- Added valitators utility function **isEMailAddress**.
- Added valitators utility function **isDomain**.
## v0.4.1

@@ -4,0 +12,0 @@

25

dist/index.d.ts
/**
* The template type of dictionary.
*/
export interface IDictionary<T> {
export interface Dict<T> {
[key: string]: T;
}
/**
* The template type of dictionary.
*
* @deprecated Use `Dict` instead. This will be removed in v1.0.0.
*/
export declare type IDictionary<T> = Dict<T>;
/**
* Semantically stressing an nullable type.
*/
export declare type Nullable<T> = T | null;
/**
* Semantically stressing an optional type.
*/
export declare type Optional<T> = T | undefined;
/**
* The signature of decorator for classes.
*/
export declare type ClassDecorator = (target: Function) => void;
/**
* The signature of decorator for methods.
*/
export declare type MethodDecorator = (target: Object, property: string | symbol) => void;

@@ -12,2 +32,3 @@ export * from "./class.Exception";

import * as Async from "./utilities.async";
export { Async };
import * as Validators from "./utilities.validators";
export { Async, Validators };

@@ -24,2 +24,4 @@ "use strict";

exports.Async = Async;
const Validators = require("./utilities.validators");
exports.Validators = Validators;
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@litert/core",
"version": "0.4.1",
"version": "0.5.0",
"description": "The core of LiteRT.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -19,3 +19,3 @@ /*

*/
export interface IDictionary<T> {
export interface Dict<T> {

@@ -25,4 +25,27 @@ [key: string]: T;

/**
* The template type of dictionary.
*
* @deprecated Use `Dict` instead. This will be removed in v1.0.0.
*/
export type IDictionary<T> = Dict<T>;
/**
* Semantically stressing an nullable type.
*/
export type Nullable<T> = T | null;
/**
* Semantically stressing an optional type.
*/
export type Optional<T> = T | undefined;
/**
* The signature of decorator for classes.
*/
export type ClassDecorator = (target: Function) => void;
/**
* The signature of decorator for methods.
*/
export type MethodDecorator = (

@@ -38,2 +61,4 @@ target: Object, property: string | symbol

export { Async };
import * as Validators from "./utilities.validators";
export { Async, Validators };

Sorry, the diff of this file is not supported yet

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