ciam-commons
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "ciam-commons", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Common types and functions for CIAM", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -24,4 +24,4 @@ export namespace Check { | ||
export function notEmpty(s: string, name: string) { | ||
if (s.length == 0) throw new Error(`${name} cannot be empty`); | ||
export function notEmpty(obj: string | Array<any>, name: string) { | ||
if (obj.length == 0) throw new Error(`${name} cannot be empty`); | ||
} | ||
@@ -28,0 +28,0 @@ |
11048