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

@pacote/option

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pacote/option - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

8

CHANGELOG.md

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

## [1.0.9](https://github.com/PacoteJS/pacote/compare/@pacote/option@1.0.8...@pacote/option@1.0.9) (2021-04-06)
**Note:** Version bump only for package @pacote/option
## [1.0.8](https://github.com/PacoteJS/pacote/compare/@pacote/option@1.0.7...@pacote/option@1.0.8) (2021-02-14)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@pacote/option",
"description": "Option type inspired by Rust.",
"version": "1.0.8",
"version": "1.0.9",
"sideEffects": false,

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

},
"gitHead": "a51896ae873895fef9075608ca49daef5c2d1ee6"
"gitHead": "b4823ecb0bda0c46af495e59af72fc128d9adbce"
}

@@ -1,3 +0,2 @@

import fc from 'fast-check'
import { equals } from 'ramda'
import { assert, property, anything, func } from 'fast-check'
import * as O from '../src/index'

@@ -155,6 +154,5 @@

test('left identity', () => {
fc.assert(
fc.property(fc.func(fc.anything()), fc.anything(), (fn, value) => {
return equals(
O.flatMap((x) => O.Some(fn(x)), O.Some(value)),
assert(
property(func(anything()), anything(), (fn, value) => {
expect(O.flatMap((x) => O.Some(fn(x)), O.Some(value))).toEqual(
O.Some(fn(value))

@@ -167,5 +165,5 @@ )

test('right identity', () => {
fc.assert(
fc.property(fc.anything(), (value) => {
return equals(O.flatMap(O.Some, O.Some(value)), O.Some(value))
assert(
property(anything(), (value) => {
expect(O.flatMap(O.Some, O.Some(value))).toEqual(O.Some(value))
})

@@ -176,15 +174,14 @@ )

test('associativity', () => {
fc.assert(
fc.property(
fc.func(fc.anything()),
fc.func(fc.anything()),
fc.anything(),
assert(
property(
func(anything()),
func(anything()),
anything(),
(f, g, value) => {
return equals(
expect(
O.flatMap(
(x) => O.Some(g(x)),
O.flatMap((x) => O.Some(f(x)), O.Some(value))
),
O.flatMap((x) => O.Some(g(f(x))), O.Some(value))
)
)
).toEqual(O.flatMap((x) => O.Some(g(f(x))), O.Some(value)))
}

@@ -191,0 +188,0 @@ )

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