ciam-commons
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -10,3 +10,3 @@ export declare namespace Check { | ||
function strictFlag(flag: string, message?: string): void; | ||
function notEmpty(s: string, name: string): void; | ||
function notEmpty(obj: string | Array<any>, name: string): void; | ||
function min(n: number, min: number, name: string): void; | ||
@@ -13,0 +13,0 @@ function max(n: number, max: number, name: string): void; |
@@ -27,4 +27,4 @@ export var Check; | ||
Check.strictFlag = strictFlag; | ||
function notEmpty(s, name) { | ||
if (s.length == 0) | ||
function notEmpty(obj, name) { | ||
if (obj.length == 0) | ||
throw new Error(`${name} cannot be empty`); | ||
@@ -31,0 +31,0 @@ } |
{ | ||
"name": "ciam-commons", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Common types and functions for CIAM", | ||
@@ -5,0 +5,0 @@ "scripts": { |
11067