New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ukon1990/js-utilities

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ukon1990/js-utilities - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

1

dist/utils/text.util.d.ts
import { Match } from '../models/match.model';
export declare class TextUtil {
static isEmpty(source: string): boolean;
static contains(source: string, target: string): boolean;

@@ -4,0 +5,0 @@ static getIndexOf(source: string, target: string): number;

@@ -6,2 +6,11 @@ "use strict";

class TextUtil {
static isEmpty(source) {
if (!source)
return true;
if (source === null)
return true;
if (source.length === 0)
return true;
return false;
}
static contains(source, target) {

@@ -8,0 +17,0 @@ if (empty_util_1.EmptyUtil.isNullOrUndefined(source) || empty_util_1.EmptyUtil.isNullOrUndefined(target)) {

5

package.json
{
"name": "@ukon1990/js-utilities",
"version": "0.0.4",
"version": "0.0.5",
"description": "A light weight package for object and array manipulation. As well as some utilities for matching text.",

@@ -20,3 +20,4 @@ "main": "dist/index.js",

"Difference",
"Equality"
"Equality",
"isEmpty"
],

@@ -23,0 +24,0 @@ "author": "Jonas Munthe Flønes",

@@ -5,2 +5,8 @@ import {Match} from '../models/match.model';

export class TextUtil {
public static isEmpty(source: string): boolean {
if (!source) return true;
if (source === null) return true;
if (source.length === 0) return true;
return false;
}

@@ -7,0 +13,0 @@ public static contains(source: string, target: string): boolean {

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