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 4.0.1 to 4.0.2

8

CHANGELOG.md

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

## [4.0.2](https://github.com/PacoteJS/pacote/compare/@pacote/option@4.0.1...@pacote/option@4.0.2) (2023-08-25)
**Note:** Version bump only for package @pacote/option
## [4.0.1](https://github.com/PacoteJS/pacote/compare/@pacote/option@4.0.0...@pacote/option@4.0.1) (2023-04-22)

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

4

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

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

},
"gitHead": "d0e1f3f1f0b32a28cf51f226dd2c9d247503b4ee"
"gitHead": "130affd281be18a42718fd9b47baa531a1146fb1"
}

@@ -169,3 +169,3 @@ const T_NONE = Symbol('None')

fn: (value: T) => Option<U>,
option: Option<T>
option: Option<T>,
): Option<U> {

@@ -187,3 +187,3 @@ return isSome(option) ? fn(option.value) : None

fn: (value: T) => boolean,
option: Option<T>
option: Option<T>,
): Option<T> {

@@ -233,5 +233,5 @@ return isSome(option) && fn(option.value) ? option : None

onNone: () => U,
option: Option<T>
option: Option<T>,
): U {
return isSome(option) ? onSome(option.value) : onNone()
}

@@ -43,3 +43,3 @@ import { assert, property, anything, func } from 'fast-check'

throw Error()
})
}),
).toEqual(O.None)

@@ -149,4 +149,4 @@ })

() => 0,
O.None
)
O.None,
),
).toEqual(0)

@@ -160,4 +160,4 @@ })

() => 0,
O.Some('test')
)
O.Some('test'),
),
).toEqual(4)

@@ -172,5 +172,5 @@ })

expect(O.flatMap((x) => O.Some(fn(x)), O.Some(value))).toEqual(
O.Some(fn(value))
O.Some(fn(value)),
)
})
}),
)

@@ -183,3 +183,3 @@ })

expect(O.flatMap(O.Some, O.Some(value))).toEqual(O.Some(value))
})
}),
)

@@ -198,9 +198,9 @@ })

(x) => O.Some(g(x)),
O.flatMap((x) => O.Some(f(x)), O.Some(value))
)
O.flatMap((x) => O.Some(f(x)), O.Some(value)),
),
).toEqual(O.flatMap((x) => O.Some(g(f(x))), O.Some(value)))
}
)
},
),
)
})
})
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