Socket
Socket
Sign inDemoInstall

@voiceflow/common

Package Overview
Dependencies
Maintainers
20
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.24.0 to 7.25.0

1

build/common/utils/array.d.ts

@@ -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 {};

4

build/common/utils/array.js
"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"
}
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