Socket
Socket
Sign inDemoInstall

@effect/match

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/match - npm Package Compare versions

Comparing version 0.18.4 to 0.18.5

2

internal/ExtractMatch.d.ts

@@ -23,3 +23,3 @@ export type ExtractMatch<I, P> = [ReplaceUnions<I, P>] extends [infer EI] ? Extract<EI, P> : never;

type ReplaceUnions<I, P> = unknown extends P ? I : IsUnion<I> extends true ? ListOf<I> extends infer L ? L extends Array<any> ? FlattenUnionFails<{
[K in keyof L]: ReplaceUnions<L[K], P>;
[K in keyof L]: L[K] extends Array<I> ? L[K] : ReplaceUnions<L[K], P>;
}[number]> : never : never : IsPlainObject<I> extends true ? FlattenRecordFails<{

@@ -26,0 +26,0 @@ [RK in keyof I]-?: RK extends keyof P ? ReplaceUnions<I[RK], P[RK]> : I[RK];

{
"name": "@effect/match",
"version": "0.18.4",
"version": "0.18.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -81,3 +81,9 @@ /* eslint-disable @typescript-eslint/no-unnecessary-type-constraint */

? L extends Array<any>
? FlattenUnionFails<{ [K in keyof L]: ReplaceUnions<L[K], P> }[number]>
? FlattenUnionFails<
{
[K in keyof L]: L[K] extends Array<I>
? L[K]
: ReplaceUnions<L[K], P>
}[number]
>
: never

@@ -84,0 +90,0 @@ : never

Sorry, the diff of this file is not supported yet

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