@voiceflow/common
Advanced tools
Comparing version 7.26.1 to 7.27.0
@@ -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 {}; |
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
266254
7508