@ne1410s/codl
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,0 +0,0 @@ import { Ctor, FunctionDecorator, TypedPropertyDecorator } from '../types'; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ export * from './types'; |
@@ -0,0 +0,0 @@ /** Metadata keys. */ |
@@ -366,3 +366,5 @@ 'use strict'; | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
@@ -379,2 +381,7 @@ __assign = Object.assign || function __assign(t) { | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
/** Validates required items. 0, 0n and false are allowed */ | ||
@@ -381,0 +388,0 @@ var RequiredValidator = function (trg, key, proto) { |
@@ -364,3 +364,5 @@ import 'reflect-metadata'; | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
@@ -377,2 +379,7 @@ __assign = Object.assign || function __assign(t) { | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
/** Validates required items. 0, 0n and false are allowed */ | ||
@@ -379,0 +386,0 @@ var RequiredValidator = function (trg, key, proto) { |
@@ -368,3 +368,5 @@ (function (global, factory) { | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
@@ -381,2 +383,7 @@ __assign = Object.assign || function __assign(t) { | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
/** Validates required items. 0, 0n and false are allowed */ | ||
@@ -383,0 +390,0 @@ var RequiredValidator = function (trg, key, proto) { |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
export declare type Parser<T> = (obj: any) => T; |
import { Parser } from '../models'; | ||
export declare const BooleanParser: Parser<boolean>; |
import { Parser } from '../models'; | ||
export declare const DateParser: Parser<Date>; |
import { Parser } from '../models'; | ||
export declare const IntegerParser: Parser<number>; |
import { Parser } from '../models'; | ||
export declare const NumberParser: Parser<number>; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ import { ValidationKey } from '../../mdkeys'; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
import { Validator } from '../models'; | ||
/** Validates with a custom function. */ | ||
export declare const CustValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates forbidden items. Only null, undefined and empty strings are ok. */ | ||
export declare const ForbiddenValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates string / array length are within specified range. */ | ||
export declare const LengthRangeValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates the member value is contained within predefined options. */ | ||
export declare const OptionsValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates values are within a range. */ | ||
export declare const RangeValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates regex using string representation of the member. */ | ||
export declare const RegexValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates required items. 0, 0n and false are allowed */ | ||
export declare const RequiredValidator: Validator; |
import { Validator } from '../models'; | ||
/** Validates type. */ | ||
export declare const TypeValidator: Validator; |
@@ -0,0 +0,0 @@ /** A constructor. */ |
{ | ||
"name": "@ne1410s/codl", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Indulge your apps with codl: a component model library", | ||
@@ -42,8 +42,8 @@ "main": "dist/ne14_codl.cjs.min.js", | ||
"mocha": "^10.2.0", | ||
"prettier": "^2.8.4", | ||
"rimraf": "^4.3.1", | ||
"rollup": "^3.18.0", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"tslib": "^2.5.0", | ||
"typescript": "^4.9.5" | ||
"prettier": "^3.0.0", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.26.3", | ||
"rollup-plugin-typescript2": "^0.35.0", | ||
"tslib": "^2.6.0", | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -50,0 +50,0 @@ "dependencies": { |
2656
118230