Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thisisagile/easy

Package Overview
Dependencies
Maintainers
2
Versions
1266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thisisagile/easy - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

1

dist/types/Is.d.ts
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;

3

dist/types/Is.js
"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

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