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.8.0 to 0.8.1

7

index.js

@@ -117,3 +117,4 @@ "use strict";

const values = pattern.slice(0, -1);
return self => self.add(new When(_ => typeof _ === "object" && _ != null && field in _ && values.includes(_[field]), f));
const pred = values.length === 1 ? _ => _[field] === values[0] : _ => values.includes(_[field]);
return self => self.add(new When(pred, f));
};

@@ -253,4 +254,6 @@ /**

}
const len = self.cases.length;
return input => {
for (const _case of self.cases) {
for (let i = 0; i < len; i++) {
const _case = self.cases[i];
if (_case._tag === "When" && _case.guard(input)) {

@@ -257,0 +260,0 @@ return E.right(_case.evaluate(input));

{
"name": "@effect/match",
"version": "0.8.0",
"version": "0.8.1",
"license": "MIT",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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