@typed-f/maybe
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -6,2 +6,15 @@ # Change Log | ||
<a name="0.2.1"></a> | ||
## [0.2.1](https://github.com/Ailrun/typed-f/compare/v0.2.0...v0.2.1) (2018-08-22) | ||
### Bug Fixes | ||
* **maybe:** fix the order of overloadings of from and its alias ([#19](https://github.com/Ailrun/typed-f/issues/19)) ([aaf1144](https://github.com/Ailrun/typed-f/commit/aaf1144)) | ||
* **package:** fix wrong return values of equals methods ([#20](https://github.com/Ailrun/typed-f/issues/20)) ([769d25a](https://github.com/Ailrun/typed-f/commit/769d25a)) | ||
<a name="0.2.0"></a> | ||
@@ -8,0 +21,0 @@ # [0.2.0](https://github.com/Ailrun/typed-f/compare/v0.1.0...v0.2.0) (2018-08-22) |
{ | ||
"name": "@typed-f/maybe", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"keywords": [ | ||
@@ -36,7 +36,7 @@ "Maybe", | ||
"dependencies": { | ||
"@typed-f/function": "^0.2.0", | ||
"@typed-f/matchable": "^0.2.0", | ||
"@typed-f/monad": "^0.2.0", | ||
"@typed-f/setoid": "^0.2.0", | ||
"@typed-f/tagged": "^0.2.0" | ||
"@typed-f/function": "^0.2.1", | ||
"@typed-f/matchable": "^0.2.1", | ||
"@typed-f/monad": "^0.2.1", | ||
"@typed-f/setoid": "^0.2.1", | ||
"@typed-f/tagged": "^0.2.1" | ||
}, | ||
@@ -56,3 +56,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4e8bd2dfff44251ab307a094001a3377843a44cf" | ||
"gitHead": "0bb91a468852883d06bcecab575ff6cb17bf651e" | ||
} |
@@ -136,3 +136,3 @@ /* | ||
typeof (this._value as any).equals === 'function') { | ||
return (this._value as any).equals(other.value); | ||
return Boolean((this._value as any).equals(other.value)); | ||
} | ||
@@ -173,4 +173,4 @@ | ||
export function from(value?: null): Nothing<any>; | ||
export function from<T>(value: T): Just<T>; | ||
export function from<T>(value?: null): Nothing<T>; | ||
export function from<T>(value?: T | null): Maybe<T> { | ||
@@ -184,7 +184,3 @@ if (value == undefined) { | ||
export function maybe<T>(value: T): Just<T>; | ||
export function maybe<T>(value?: null): Nothing<T>; | ||
export function maybe<T>(value?: T | null): Maybe<T> { | ||
return from<T>(value as any); | ||
} | ||
export const maybe = from; | ||
@@ -191,0 +187,0 @@ export function sequenceObject<O extends object>( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
32129
17
1
133
683
Updated@typed-f/function@^0.2.1
Updated@typed-f/matchable@^0.2.1
Updated@typed-f/monad@^0.2.1
Updated@typed-f/setoid@^0.2.1
Updated@typed-f/tagged@^0.2.1