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

option-t

Package Overview
Dependencies
Maintainers
1
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

option-t - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 0.5.0
### Breaking Change
* `OptionType<T>` is obsolated. This API will be no longer supported.
## 0.4.0

@@ -7,0 +12,0 @@

11

option-t.d.ts

@@ -26,13 +26,2 @@ /*

declare module 'option-t' {
/**
* @deprecated
*/
export class OptionType<T> {
constructor(val?: T);
isSome: boolean;
unwrap(): T;
map<U>(fn: (v: T) => U): OptionType<U>;
flatMap<U>(fn: (v: T) => OptionType<U>): OptionType<U>;
drop(): void;
}

@@ -39,0 +28,0 @@ interface Option<T> {

2

package.json
{
"name": "option-t",
"version": "0.4.0",
"version": "0.5.0",
"description": "Option type implementation whose APIs are inspired by Rust's `Option<T>`.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -59,3 +59,2 @@ # option-t

* Implementation: See inline JSDoc.
* [`OptionType`](./src/OptionType.js) (__Deperecated__)
* [`Option<T>`](./src/OptionT.js)

@@ -62,0 +61,0 @@

@@ -28,6 +28,4 @@ /*

var Option = require('./OptionT');
var OptionType = require('./OptionType');
var OptionT = {
OptionType: OptionType,
Some: Option.Some,

@@ -34,0 +32,0 @@ None: Option.None,

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