New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pacote/jest-either

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pacote/jest-either - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [4.0.4](https://github.com/PacoteJS/pacote/compare/@pacote/jest-either@4.0.3...@pacote/jest-either@4.0.4) (2020-07-17)
### Bug Fixes
- 🐛 fixes toBeEither check ([813bda1](https://github.com/PacoteJS/pacote/commit/813bda1956a704df2c0e8bba890fa9fb618f62c1))
## [4.0.3](https://github.com/PacoteJS/pacote/compare/@pacote/jest-either@4.0.2...@pacote/jest-either@4.0.3) (2020-07-07)

@@ -8,0 +14,0 @@

2

lib/cjs/toBeEither.js

@@ -21,3 +21,3 @@ "use strict";

actual !== null &&
(Either_1.isLeft(actual) === true || Either_1.isLeft(actual) === false));
(Either_1.isLeft(actual) === true || Either_1.isRight(actual) === true));
}

@@ -24,0 +24,0 @@ function toBeEither(actual) {

@@ -6,3 +6,2 @@ "use strict";

var Either_1 = require("fp-ts/lib/Either");
var pipeable_1 = require("fp-ts/lib/pipeable");
var passMessage = function () { return function () {

@@ -19,3 +18,3 @@ return jest_matcher_utils_1.matcherHint('.not.toBeLeft', 'received', '') +

function toBeLeft(actual) {
var pass = pipeable_1.pipe(actual, Either_1.isLeft);
var pass = Either_1.isLeft(actual);
return {

@@ -22,0 +21,0 @@ pass: pass,

@@ -6,3 +6,2 @@ "use strict";

var Either_1 = require("fp-ts/lib/Either");
var pipeable_1 = require("fp-ts/lib/pipeable");
var passMessage = function () { return function () {

@@ -19,3 +18,3 @@ return jest_matcher_utils_1.matcherHint('.not.toBeRight', 'received', '') +

function toBeRight(actual) {
var pass = pipeable_1.pipe(actual, Either_1.isRight);
var pass = Either_1.isRight(actual);
return {

@@ -22,0 +21,0 @@ pass: pass,

import { matcherHint, printReceived } from 'jest-matcher-utils';
import { isLeft } from 'fp-ts/lib/Either';
import { isLeft, isRight } from 'fp-ts/lib/Either';
const passMessage = (actual) => () => matcherHint('.not.toBeEither', 'received', '') +

@@ -14,3 +14,3 @@ '\n\n' +

actual !== null &&
(isLeft(actual) === true || isLeft(actual) === false));
(isLeft(actual) === true || isRight(actual) === true));
}

@@ -17,0 +17,0 @@ export function toBeEither(actual) {

import { matcherHint } from 'jest-matcher-utils';
import { isLeft } from 'fp-ts/lib/Either';
import { pipe } from 'fp-ts/lib/pipeable';
const passMessage = () => () => matcherHint('.not.toBeLeft', 'received', '') +

@@ -11,3 +10,3 @@ '\n\n' +

export function toBeLeft(actual) {
const pass = pipe(actual, isLeft);
const pass = isLeft(actual);
return {

@@ -14,0 +13,0 @@ pass,

import { matcherHint } from 'jest-matcher-utils';
import { isRight } from 'fp-ts/lib/Either';
import { pipe } from 'fp-ts/lib/pipeable';
const passMessage = () => () => matcherHint('.not.toBeRight', 'received', '') +

@@ -11,3 +10,3 @@ '\n\n' +

export function toBeRight(actual) {
const pass = pipe(actual, isRight);
const pass = isRight(actual);
return {

@@ -14,0 +13,0 @@ pass,

{
"name": "@pacote/jest-either",
"description": "Jest matcher for Either objects.",
"version": "4.0.3",
"version": "4.0.4",
"sideEffects": false,

@@ -49,3 +49,3 @@ "license": "MIT",

},
"gitHead": "813f740742ef0e5327252540e62ae13ac21d3a90"
"gitHead": "dc69d8d0fd95edb455c745b4bb9235efea157867"
}
import { matcherHint, printReceived } from 'jest-matcher-utils'
import { Either, isLeft } from 'fp-ts/lib/Either'
import { Either, isLeft, isRight } from 'fp-ts/lib/Either'

@@ -29,3 +29,3 @@ declare global {

actual !== null &&
(isLeft(actual) === true || isLeft(actual) === false)
(isLeft(actual) === true || isRight(actual) === true)
)

@@ -32,0 +32,0 @@ }

import { matcherHint } from 'jest-matcher-utils'
import { Either, isLeft } from 'fp-ts/lib/Either'
import { pipe } from 'fp-ts/lib/pipeable'

@@ -25,3 +24,3 @@ declare global {

export function toBeLeft(actual: Either<any, any>) {
const pass = pipe(actual, isLeft)
const pass = isLeft(actual)
return {

@@ -28,0 +27,0 @@ pass,

import { matcherHint } from 'jest-matcher-utils'
import { Either, isRight } from 'fp-ts/lib/Either'
import { pipe } from 'fp-ts/lib/pipeable'

@@ -25,3 +24,3 @@ declare global {

export function toBeRight(actual: Either<any, any>) {
const pass = pipe(actual, isRight)
const pass = isRight(actual)

@@ -28,0 +27,0 @@ return {

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