Socket
Socket
Sign inDemoInstall

@voiceflow/common

Package Overview
Dependencies
Maintainers
24
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voiceflow/common - npm Package Compare versions

Comparing version 7.26.1 to 7.27.0

3

build/common/utils/object/common.d.ts

@@ -26,2 +26,5 @@ import { AnyRecord, Struct } from "../../types";

export declare const filterEntries: PickOmitBy;
export declare const mapValue: <T, R>(obj: Record<string | number | symbol, T>, callback: (value: T) => R) => {
[k: string]: R;
};
export {};

4

build/common/utils/object/common.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterEntries = exports.omitBy = exports.pickBy = exports.pick = exports.omit = exports.hasProperty = exports.isObject = exports.selectValue = exports.selectKey = exports.selectID = exports.selectField = void 0;
exports.mapValue = exports.filterEntries = exports.omitBy = exports.pickBy = exports.pick = exports.omit = exports.hasProperty = exports.isObject = exports.selectValue = exports.selectKey = exports.selectID = exports.selectField = void 0;
const selectField = (field) => (obj) => obj[field];

@@ -64,1 +64,3 @@ exports.selectField = selectField;

exports.filterEntries = exports.pickBy;
const mapValue = (obj, callback) => Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, callback(value)]));
exports.mapValue = mapValue;

@@ -26,2 +26,5 @@ import { AnyRecord, Struct } from "../../types";

export declare const filterEntries: PickOmitBy;
export declare const mapValue: <T, R>(obj: Record<string | number | symbol, T>, callback: (value: T) => R) => {
[k: string]: R;
};
export {};

@@ -54,1 +54,2 @@ export const selectField = (field) => (obj) => obj[field];

export const filterEntries = pickBy;
export const mapValue = (obj, callback) => Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, callback(value)]));
{
"name": "@voiceflow/common",
"description": "Junk drawer of utility functions",
"version": "7.26.1",
"version": "7.27.0",
"author": "Voiceflow",

@@ -79,3 +79,3 @@ "bugs": {

},
"gitHead": "d3c1af71d24f5b17dd6d78538b2c92c7fdfc3c43"
"gitHead": "aad20f39f18f98da96b48ad4ee7ff0c95e096421"
}
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