@thisisagile/easy
Advanced tools
Comparing version 1.4.1 to 1.4.2
import { Constructor } from "./Constructor"; | ||
export declare const isDefined: (o?: unknown) => boolean; | ||
export declare const isEmpty: (o?: unknown) => boolean; | ||
export declare const isNotEmpty: (o?: unknown) => boolean; | ||
export declare const isString: (o?: unknown) => o is string; | ||
@@ -5,0 +6,0 @@ export declare const isObject: (o?: unknown) => o is Object; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isError = exports.isIn = exports.isInstance = exports.isArray = exports.isFunction = exports.isObject = exports.isString = exports.isEmpty = exports.isDefined = void 0; | ||
exports.isError = exports.isIn = exports.isInstance = exports.isArray = exports.isFunction = exports.isObject = exports.isString = exports.isNotEmpty = exports.isEmpty = exports.isDefined = void 0; | ||
const class_validator_1 = require("class-validator"); | ||
@@ -8,2 +8,3 @@ const IsA_1 = require("./IsA"); | ||
exports.isEmpty = (o) => o === "" || o === null || o === undefined; | ||
exports.isNotEmpty = (o) => o !== "" && o !== null && o !== undefined; | ||
exports.isString = (o) => o instanceof String || typeof o === "string"; | ||
@@ -10,0 +11,0 @@ exports.isObject = (o) => class_validator_1.isObject(o); |
{ | ||
"name": "@thisisagile/easy", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Straightforward library for building domain-driven microservice architectures", | ||
@@ -5,0 +5,0 @@ "author": "Sander Hoogendoorn", |
# easy | ||
[![Easy pipeline](https://github.com/thisisagile/easy/workflows/Easy%20pipeline/badge.svg?branch=main)](https://github.com/thisisagile/easy/actions?query=workflow%3A%22Easy+pipeline%22) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=thisisagile_easy&metric=alert_status)](https://sonarcloud.io/dashboard?id=thisisagile_easy) | ||
@@ -3,0 +4,0 @@ [![npm package](https://img.shields.io/npm/v/@thisisagile/easy.svg)](https://www.npmjs.com/package/@thisisagile/easy) |
@@ -9,2 +9,4 @@ import { isInstance as asInstance, isObject as asObject } from "class-validator"; | ||
export const isNotEmpty = (o?: unknown): boolean => o !== "" && o !== null && o !== undefined; | ||
export const isString = (o?: unknown): o is string => o instanceof String || typeof o === "string"; | ||
@@ -11,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69675
981
24