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

@codegateinc/g-utils

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codegateinc/g-utils - npm Package Compare versions

Comparing version 0.0.20 to 0.0.23

src/tests/compareFunctions.spec.ts

8

dist/utils.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.is = exports.values = exports.clearObject = exports.fromPairs = exports.toPairs = exports.all = exports.hasElements = exports.hasKeys = exports.always = exports.T = exports.call = exports.ifDefined = exports.isDefined = exports.cond = exports.compose = void 0;
exports.compareFunctions = exports.is = exports.values = exports.clearObject = exports.fromPairs = exports.toPairs = exports.all = exports.hasElements = exports.hasKeys = exports.always = exports.T = exports.call = exports.ifDefined = exports.isDefined = exports.cond = exports.compose = void 0;

@@ -76,2 +76,6 @@ const compose = (...functions) => firstArg => functions.reverse().reduce((acc, fn) => fn(acc), firstArg);

exports.is = is;
exports.is = is;
const compareFunctions = (a, b) => a.toString() === b.toString();
exports.compareFunctions = compareFunctions;

@@ -19,2 +19,3 @@ import { CondItem, KeyValuePair } from './src/types'

export function all(...args: Array<boolean>): boolean
export function compareFunctions(a: Function, b: Function): boolean;
}

@@ -6,3 +6,3 @@ {

"typings": "index.d.ts",
"version": "0.0.20",
"version": "0.0.23",
"main": "dist/index.js",

@@ -9,0 +9,0 @@ "description": "This library is a package of useful functions",

@@ -40,1 +40,2 @@ ## [![Coverage Status](https://coveralls.io/repos/github/codegateinc/gUtils/badge.svg?branch=master)](https://coveralls.io/github/codegateinc/gUtils?branch=master)

|hasElements |`(subject: any): boolean` |check if given value is array and has got any elemnts
|compareFunctions|`(a: Function, b: Function): boolean` |check if given functions are the same

@@ -48,1 +48,3 @@ import { KeyValuePair, CondItem } from './types'

export const is = (type: any, subject: any) => subject.constructor === type || subject instanceof type
export const compareFunctions = (a: Function, b: Function) => a.toString() === b.toString()
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