@voiceflow/common
Advanced tools
Comparing version 7.24.0 to 7.25.0
@@ -39,2 +39,3 @@ import { AnyRecord, ArrayUnionToIntersection, PrimitiveMap } from "../types"; | ||
export declare const inferUnion: <T extends ArrayLike<unknown>>(array: T) => import("../types").SafeArray<T[number], T>; | ||
export declare const toArray: <T>(valueOrArray: T | T[]) => T[]; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.inferUnion = exports.filterAndGetLastRemovedValue = exports.filterOutNullish = exports.isNotNullish = exports.isNullish = exports.asyncForEach = exports.hasIdenticalMembers = exports.diff = exports.findUnion = exports.createMap = exports.createEntries = exports.separate = exports.reorder = exports.tail = exports.head = exports.toggleMembership = exports.append = exports.insertAll = exports.insert = exports.replace = exports.withoutValues = exports.withoutValue = exports.without = exports.unique = void 0; | ||
exports.toArray = exports.inferUnion = exports.filterAndGetLastRemovedValue = exports.filterOutNullish = exports.isNotNullish = exports.isNullish = exports.asyncForEach = exports.hasIdenticalMembers = exports.diff = exports.findUnion = exports.createMap = exports.createEntries = exports.separate = exports.reorder = exports.tail = exports.head = exports.toggleMembership = exports.append = exports.insertAll = exports.insert = exports.replace = exports.withoutValues = exports.withoutValue = exports.without = exports.unique = void 0; | ||
const unique = (items) => Array.from(new Set(items)); | ||
@@ -126,1 +126,3 @@ exports.unique = unique; | ||
exports.inferUnion = inferUnion; | ||
const toArray = (valueOrArray) => (Array.isArray(valueOrArray) ? valueOrArray : [valueOrArray]); | ||
exports.toArray = toArray; |
@@ -39,2 +39,3 @@ import { AnyRecord, ArrayUnionToIntersection, PrimitiveMap } from "../types"; | ||
export declare const inferUnion: <T extends ArrayLike<unknown>>(array: T) => import("../types").SafeArray<T[number], T>; | ||
export declare const toArray: <T>(valueOrArray: T | T[]) => T[]; | ||
export {}; |
@@ -99,1 +99,2 @@ export const unique = (items) => Array.from(new Set(items)); | ||
export const inferUnion = (array) => array; | ||
export const toArray = (valueOrArray) => (Array.isArray(valueOrArray) ? valueOrArray : [valueOrArray]); |
{ | ||
"name": "@voiceflow/common", | ||
"description": "Junk drawer of utility functions", | ||
"version": "7.24.0", | ||
"version": "7.25.0", | ||
"author": "Voiceflow", | ||
@@ -79,3 +79,3 @@ "bugs": { | ||
}, | ||
"gitHead": "193c9abcd22354535987a5c1adc379f339877785" | ||
"gitHead": "667df22d884b655813e09d2fc6ca0adfb3463a8a" | ||
} |
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
255344
7262