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.23 to 0.0.24

4

dist/utils.js

@@ -61,3 +61,5 @@ "use strict";

const fromPairs = subject => Object.fromEntries(subject);
const fromPairs = subject => subject.reduce((acc, [key, value]) => ({ ...acc,
[key]: value
}), {});

@@ -64,0 +66,0 @@ exports.fromPairs = fromPairs;

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

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

@@ -20,3 +20,3 @@ "description": "This library is a package of useful functions",

"@babel/cli": "7.8.4",
"@babel/core": "7.8.4",
"@babel/core": "7.8.7",
"@babel/plugin-transform-modules-commonjs": "7.8.3",

@@ -23,0 +23,0 @@ "@babel/preset-typescript": "7.8.3",

@@ -37,3 +37,6 @@ import { KeyValuePair, CondItem } from './types'

export const toPairs = <T extends {}>(subject: KeyValuePair) => Object.entries<T>(subject)
export const fromPairs = <T extends {}>(subject: Array<[string, any]>): T => Object.fromEntries(subject)
export const fromPairs = <T extends {}>(subject: Array<[string, any]>): T => subject.reduce((acc, [key, value]) => ({
...acc,
[key]: value
}), {} as T)

@@ -40,0 +43,0 @@ export const clearObject = (subject: KeyValuePair) => compose(

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