Socket
Socket
Sign inDemoInstall

ezito-utils

Package Overview
Dependencies
5
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.1 to 3.0.0

public/crypto/random/index.js

2

package.json
{
"name": "ezito-utils",
"version": "2.6.1",
"version": "3.0.0",
"description": "ezito utils help you for faster programming",

@@ -5,0 +5,0 @@ "main": " ",

@@ -222,2 +222,2 @@ var MD5 = function(r){

]);
module.exports = MD5;
module.exports = MD5;
const haveConstructor = (value) => {
function haveConstructor (value){
return value.constructor != "undefined" ;
}
module.exports = haveConstructor;
'use strict';
const http = require('http');
const { Server , ServerResponse , ClientRequest } = require('http');
module.exports.server = function (obj){
return obj instanceof http.Server;
return obj instanceof Server;
}
module.exports.response = function (obj){
return obj instanceof http.ServerResponse;
return obj instanceof ServerResponse;
}
module.exports.request = function (obj){
return obj instanceof http.IncomingMessage;
return obj instanceof IncomingMessage;
}

@@ -11,4 +11,7 @@ 'use strict',

function : require('./function'),
date: require("./date"),
arrowFunction : require('./arrow-function'),
array : require("./array"),
class : require('./class'),
buffer : require("./buffer"),
string : require('./string'),

@@ -15,0 +18,0 @@ strict : require('./strict'),

@@ -10,9 +10,6 @@ 'use strict';

module.exports = function(num) {
if (typeof num === 'number') {
return num - num === 0;
}
if (typeof num === 'string' && num.trim() !== '') {
return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
}
if (typeof num === 'number') return num - num === 0;
if (typeof num === 'string' && num.trim() !== '') return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
if (typeof num === 'bigint') return true;
return false;
};
"use strict";
const is = require("ezito-utils/public/is");
/**

@@ -13,6 +15,11 @@ *

if('object' !== typeof object) return false;
if(!is.string(key)) key = "";
if(key.indexOf("/") > -1) check_keys = key.trim().split("/"); else check_keys = [ key ];
for (const iterator of check_keys) {
if(Object.prototype.hasOwnProperty.call(object , iterator) == true){
if(
(Object.prototype.hasOwnProperty.call(object , iterator) == true)
||
( iterator in object )
){
if( typeof valueType === "function"){

@@ -19,0 +26,0 @@ return valueType(object[iterator])

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc