Comparing version 3.0.2 to 3.0.3
@@ -189,3 +189,3 @@ 'use strict'; | ||
* results => `<ul>${results.map(result => `<li>${result}</li>`)}</ul>`, | ||
* searchResult | ||
* )(searchResult) | ||
* ); | ||
@@ -200,5 +200,4 @@ * ``` | ||
* @param onSuccess | ||
* @param monadA | ||
*/ | ||
var fold = function (onNotAsked, onLoading, onFailure, onSuccess, monadA) { | ||
var fold = function (onNotAsked, onLoading, onFailure, onSuccess) { return function (monadA) { | ||
switch (monadA._tag) { | ||
@@ -214,3 +213,3 @@ case 'NotAsked': | ||
} | ||
}; | ||
}; }; | ||
/** | ||
@@ -249,3 +248,3 @@ * Compare two dataway | ||
return false; | ||
} | ||
}, | ||
}; | ||
@@ -252,0 +251,0 @@ }; |
@@ -185,3 +185,3 @@ import { isLeft } from 'fp-ts/lib/Either'; | ||
* results => `<ul>${results.map(result => `<li>${result}</li>`)}</ul>`, | ||
* searchResult | ||
* )(searchResult) | ||
* ); | ||
@@ -196,5 +196,4 @@ * ``` | ||
* @param onSuccess | ||
* @param monadA | ||
*/ | ||
var fold = function (onNotAsked, onLoading, onFailure, onSuccess, monadA) { | ||
var fold = function (onNotAsked, onLoading, onFailure, onSuccess) { return function (monadA) { | ||
switch (monadA._tag) { | ||
@@ -210,3 +209,3 @@ case 'NotAsked': | ||
} | ||
}; | ||
}; }; | ||
/** | ||
@@ -245,3 +244,3 @@ * Compare two dataway | ||
return false; | ||
} | ||
}, | ||
}; | ||
@@ -248,0 +247,0 @@ }; |
@@ -1751,3 +1751,3 @@ (function (global, factory) { | ||
* results => `<ul>${results.map(result => `<li>${result}</li>`)}</ul>`, | ||
* searchResult | ||
* )(searchResult) | ||
* ); | ||
@@ -1762,5 +1762,4 @@ * ``` | ||
* @param onSuccess | ||
* @param monadA | ||
*/ | ||
var fold = function (onNotAsked, onLoading, onFailure, onSuccess, monadA) { | ||
var fold = function (onNotAsked, onLoading, onFailure, onSuccess) { return function (monadA) { | ||
switch (monadA._tag) { | ||
@@ -1776,3 +1775,3 @@ case 'NotAsked': | ||
} | ||
}; | ||
}; }; | ||
/** | ||
@@ -1811,3 +1810,3 @@ * Compare two dataway | ||
return false; | ||
} | ||
}, | ||
}; | ||
@@ -1814,0 +1813,0 @@ }; |
@@ -221,3 +221,3 @@ /** | ||
* results => `<ul>${results.map(result => `<li>${result}</li>`)}</ul>`, | ||
* searchResult | ||
* )(searchResult) | ||
* ); | ||
@@ -232,5 +232,4 @@ * ``` | ||
* @param onSuccess | ||
* @param monadA | ||
*/ | ||
export declare const fold: <E, A, B>(onNotAsked: () => B, onLoading: () => B, onFailure: (failure: E) => B, onSuccess: (success: A) => B, monadA: Dataway<E, A>) => B; | ||
export declare const fold: <E, A, B>(onNotAsked: () => B, onLoading: () => B, onFailure: (failure: E) => B, onSuccess: (success: A) => B) => (monadA: Dataway<E, A>) => B; | ||
/** | ||
@@ -237,0 +236,0 @@ * Compare two dataway |
{ | ||
"name": "dataway", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"main": "dist/dataway.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/dataway.esm.js", |
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
103888
2872