@rea-jet/fp-helpers
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,1 +0,2 @@ | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _fromPromise=_interopRequireDefault(require("./from-promise")),_callbagFromEvent=_interopRequireDefault(require("callbag-from-event")),fromObs=require("callbag-from-obs"),fromIter=require("callbag-from-iter"),fromAny=function(a,b){if(a.then)return(0,_fromPromise["default"])(a);if(a.subscribe)return fromObs(a);if(a.addEventListener)return(0,_callbagFromEvent["default"])(a,b);if(null!=a&&"undefined"!==Symbol&&"function"==typeof a[Symbol.iterator])return fromIter(a);throw new Error("cannot match object type: supported objests are Promises, Observables, Events, Iterables")},_default=fromAny;exports["default"]=_default; | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _fromPromise=_interopRequireDefault(require("./from-promise")),_callbagFromEvent=_interopRequireDefault(require("callbag-from-event")),fromObs=require("callbag-from-obs"),fromIter=require("callbag-from-iter"),fromAny=function(a,b){if(a.then)return(0,_fromPromise["default"])(a);if(a.subscribe)return fromObs(a);if(a.addEventListener)return(0,_callbagFromEvent["default"])(a,b);if(null!=a&&"undefined"!=typeof Symbol&&"function"==typeof a[Symbol.iterator])return fromIter(a);throw new Error("cannot match object type: supported objests are Promises, Observables, Events, Iterables")},_default=fromAny;exports["default"]=_default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jYWxsYmFnLWZyb20udHMiXSwibmFtZXMiOlsiZnJvbU9icyIsInJlcXVpcmUiLCJmcm9tSXRlciIsImZyb21BbnkiLCJzb3VyY2UiLCJuYW1lIiwidGhlbiIsInN1YnNjcmliZSIsImFkZEV2ZW50TGlzdGVuZXIiLCJTeW1ib2wiLCJpdGVyYXRvciIsIkVyc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AnY2FsbGJhZyc7XG5jb25zdCBmcm9tT2JzID0gcmVxdWlyZSgnY2FsbGJhZy1mcm9tLW9icycpO1xuY29uc3QgZnJvbUl0ZXIgPSByZXF1aXJlKCdjYWxsYmFnLWZyb20taXRlcicpO1xuXG5jb25zdCBmcm9tQW55ID0gKHNvdXJjZTogYW55LCBuYW1lPzogc3RyaW5nKTogU291cmNlPHVua25vd24+ID0+IHtcbiAgaWYgKHNvdXJjZS50aGVuKSByZXR1cm4gZnJvbVByb21pc2U8dW5rbm93bj4oc291cmNlKTtcbiAgZWxzZSBpZiAoc291cmNlLnN1YnNjcmliZSkgcmV0dXJuIGZyb21PYnMoc291cmNlKTtcbiAgZWxzZSBpZiAoc291cmNlLmFkZEV2ZW50TGlzdGVuZXIpIHJldHVybiBmcm9tRXZlbnQ8YW55Pihzb3VyY2UsIG5hbWUpO1xuICBlbHNlIGlmIChcbiAgICBzb3VyY2UgIT0gbnVsbCAmJlxuICAgIHR5cGVvZiBTeW1ib2wgIT09ICd1bmRlZmluZWQnICYmXG4gICAgdHlwZW9mIHNvdXJjZVtTeW1ib2wuaXRlcmF0b3JdID09PSAnZnVuY3Rpb24nXG4gIClcbiAgICByZXR1cm4gZnJvbUl0ZXIoc291cmNlKTtcbiAgZWxzZVxuICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICdjYW5ub3QgbWF0Y2ggb2JqZWN0IHR5cGU6IHN1cHBvcnRlZCBvYmplc3RzIGFyZSBQcm9taXNlcywgT2JzZXJ2YWJsZXMsIEV2ZW50cywgSXRlcmFibGVzJ1xuICAgICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmcm9tQW55O1xuIl19 |
@@ -1,1 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.catchErrorC=void 0;var catchError=function(a){return function(b){return function(c,d){0!==c||b(0,function(b,c){2===b&&"undefined"!=typeof c?d(1,a(c)):d(b,c)})}}},catchErrorC=catchError;exports.catchErrorC=catchErrorC; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.catchErrorC=void 0;var catchError=function(a){return function(b){return function(c,d){0!==c||b(0,function(b,c){2===b&&"undefined"!=typeof c?d(1,a(c)):d(b,c)})}}},catchErrorC=catchError;exports.catchErrorC=catchErrorC; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jYXRjaGVycm9yLnRzIl0sIm5hbWVzIjpbImNhdGNoRXJyb3IiLCJmbiIsInNvdXJjZSIsInN0YXJ0Iiwic2luayIsInR5cGUiLCJkYXRhIiwiY2F0Y2hFcnJvckMiXSwibWFwcGluZ3MiOiJrR0FFTUEsQ0FBQUEsVUFBVSxDQUFHLFNBQUNDLENBQUQsUUFBaUMsVUFBQ0MsQ0FBRCxRQUFzQixVQUN4RUMsQ0FEd0UsQ0FFeEVDLENBRndFLENBR3JFLENBQ1csQ0FBVixHQUFBRCxDQURELEVBR0hELENBQU0sQ0FBQyxDQUFELENBQUksU0FBQ0csQ0FBRCxDQUFxQkMsQ0FBckIsQ0FBdUMsQ0FDbEMsQ0FBVCxHQUFBRCxDQUFJLEVBQTBCLFdBQWhCLFFBQU9DLENBQUFBLENBRHNCLENBRTdDRixDQUFJLENBQUMsQ0FBRCxDQUFJSCxDQUFFLENBQUNLLENBQUQsQ0FBTixDQUZ5QyxDQUk3Q0YsQ0FBSSxDQUFDQyxDQUFELENBQU9DLENBQVAsQ0FFUCxDQU5LLENBT1AsQ0FibUQsQ0FBakMsQyxDQWVSQyxXQUFXLENBQUdQLFUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDYWxsYmFnU3RhdGUgfSBmcm9tICcuL3R5cGVzJztcblxuY29uc3QgY2F0Y2hFcnJvciA9IChmbjogKGRhdGE6IHVua25vd24pID0+IHZvaWQpID0+IChzb3VyY2U6IEZ1bmN0aW9uKSA9PiAoXG4gIHN0YXJ0OiBDYWxsYmFnU3RhdGUsXG4gIHNpbms6IEZ1bmN0aW9uXG4pID0+IHtcbiAgaWYgKHN0YXJ0ICE9PSAwKSByZXR1cm47XG5cbiAgc291cmNlKDAsICh0eXBlOiBDYWxsYmFnU3RhdGUsIGRhdGE6IHVua25vd24pID0+IHtcbiAgICBpZiAodHlwZSA9PT0gMiAmJiB0eXBlb2YgZGF0YSAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgIHNpbmsoMSwgZm4oZGF0YSkpO1xuICAgIH0gZWxzZSB7XG4gICAgICBzaW5rKHR5cGUsIGRhdGEpO1xuICAgIH1cbiAgfSk7XG59O1xuXG5leHBvcnQgdmFyIGNhdGNoRXJyb3JDID0gY2F0Y2hFcnJvcjtcbiJdfQ== |
@@ -10,2 +10,3 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.debounceWithCollectC=debounceWithCollectC;// https://github.com/atomrc/callbag-debounce/blob/master/src/debounce.ts | ||
* sends a t === 2 d !== undefined signal | ||
*/})}}}} | ||
*/})}}}} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWJvdW5jZXdpdGhjb2xsZWN0LnRzIl0sIm5hbWVzIjpbImRlYm91bmNlV2l0aENvbGxlY3RDIiwid2FpdCIsInNvdXJjZSIsInN0YXJ0Iiwic2luayIsInRpbWVvdXQiLCJhcmdzIiwidCIsImQiLCJjbGVhclRpbWVvdXQiLCJwdXNoIiwic2V0VGltZW91dCJdLCJtYXBwaW5ncyI6InNIQUFBO0FBRU8sUUFBU0EsQ0FBQUEsb0JBQVQsQ0FBOEJDLENBQTlCLENBQTRDLENBQ2pELE1BQU8sVUFBQ0MsQ0FBRCxRQUFpQixVQUFDQyxDQUFELENBQWdCQyxDQUFoQixDQUE4QixDQUNwRCxHQUFjLENBQVYsR0FBQUQsQ0FBSixLQUNJRSxDQUFBQSxDQURKLENBRUlDLENBQVcsQ0FBRyxFQUZsQix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JdfQ== |
@@ -1,1 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.dispose=void 0;var dispose=function(a){var b;return a(0,function(a,c){0===a&&(b=c),(1===a||0===a)&&b(1)}),function(){b(2)}};exports.dispose=dispose; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.dispose=void 0;var dispose=function(a){var b;return a(0,function(a,c){0===a&&(b=c),(1===a||0===a)&&b&&b(1)}),function(){b&&b(2)}};exports.dispose=dispose; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kaXNwb3NlLnRzIl0sIm5hbWVzIjpbImRpc3Bvc2UiLCJzb3VyY2UiLCJ0YWxrYmFjayIsInQiLCJkIl0sIm1hcHBpbmdzIjoiMkZBR08sR0FBTUEsQ0FBQUEsT0FBd0MsQ0FBRyxTQUFDQyxDQUFELENBQXNCLENBQzVFLEdBQUlDLENBQUFBLENBQUosQ0FhQSxNQVpBRCxDQUFBQSxDQUFNLENBQUMsQ0FBRCxDQUFJLFNBQUNFLENBQUQsQ0FBa0JDLENBQWxCLENBQWtDLENBQ2hDLENBQU4sR0FBQUQsQ0FEc0MsR0FFeENELENBQVEsQ0FBR0UsQ0FGNkIsR0FPaEMsQ0FBTixHQUFBRCxDQUFDLEVBQWdCLENBQU4sR0FBQUEsQ0FQMkIsR0FReENELENBQVEsRUFBSUEsQ0FBUSxDQUFDLENBQUQsQ0FFdkIsQ0FWSyxDQVlOLENBQU8sVUFBbUIsQ0FDeEJBLENBQVEsRUFBSUEsQ0FBUSxDQUFDLENBQUQsQ0FDckIsQ0FDRixDQWpCTSxDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU291cmNlIH0gZnJvbSAnY2FsbGJhZyc7XG5pbXBvcnQgeyBDYWxsYmFnU3RhdGUgfSBmcm9tICcuL3R5cGVzJztcblxuZXhwb3J0IGNvbnN0IGRpc3Bvc2U6IDxUPihzOiBTb3VyY2U8VD4pID0+ICgpID0+IHZvaWQgPSAoc291cmNlOiBGdW5jdGlvbikgPT4ge1xuICBsZXQgdGFsa2JhY2s6IEZ1bmN0aW9uIHwgbnVsbDtcbiAgc291cmNlKDAsICh0OiBDYWxsYmFnU3RhdGUsIGQ6IEZ1bmN0aW9uKSA9PiB7XG4gICAgaWYgKHQgPT09IDApIHtcbiAgICAgIHRhbGtiYWNrID0gZDtcbiAgICB9XG4gICAgLy8gaWYgKHQgPT09IDEpIHtcbiAgICAvLyAgIGNvbnNvbGUubG9nKGQpO1xuICAgIC8vIH1cbiAgICBpZiAodCA9PT0gMSB8fCB0ID09PSAwKSB7XG4gICAgICB0YWxrYmFjayAmJiB0YWxrYmFjaygxKTtcbiAgICB9XG4gIH0pO1xuXG4gIHJldHVybiBmdW5jdGlvbiBkaXNwb3NlKCkge1xuICAgIHRhbGtiYWNrICYmIHRhbGtiYWNrKDIpO1xuICB9O1xufTtcbiJdfQ== |
@@ -1,1 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var fromPromise=function(a){return function(b,c){if(0===b){var d=!1,e=function(a){d||(c(1,a),d||c(2))},f=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new Error;d||c(2,a)};a.then(e,f),c(0,function(a){2===a&&(d=!0)})}}},_default=fromPromise;exports["default"]=_default; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var fromPromise=function(a){return function(b,c){if(0===b){var d=!1,e=function(a){d||(c(1,a),d||c(2))},f=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new Error;d||c(2,a)};a.then(e,f),c(0,function(a){2===a&&(d=!0)})}}},_default=fromPromise;exports["default"]=_default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9mcm9tLXByb21pc2UudHMiXSwibmFtZXM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qcm9taXNlID0gPFQ+KHByb21pc2U6IFByb21pc2U8dW5rbm93bj4pOiBTb3VyY2U8VD4gPT4gKFxuICBzdGFydDogQ2FsbGJhZ1N0YXRlLFxuICBzaW5rOiBhbnlcbikgPT4ge1xuICBpZiAoc3RhcnQgIT09IDApIHJldHVybjtcbiAgbGV0IGVuZGVkID0gZmFsc2U7XG4gIGNvbnN0IG9uZnVsZmlsbGVkID0gKHZhbDogdW5rbm93bikgPT4ge1xuICAgIGlmIChlbmRlZCkgcmV0dXJuO1xuICAgIHNpbmsoMSwgdmFsKTtcbiAgICBpZiAoZW5kZWQpIHJldHVybjtcbiAgICBzaW5rKDIpO1xuICB9O1xuICBjb25zdCBvbnJlamVjdGVkID0gKGVyciA9IG5ldyBFcnJvcigpKSA9PiB7XG4gICAgaWYgKGVuZGVkKSByZXR1cm47XG4gICAgc2luaygyLCBlcnIpO1xuICB9O1xuICBwcm9taXNlLnRoZW4ob25mdWxmaWxsZWQsIG9ucmVqZWN0ZWQpO1xuICBzaW5rKDAsICh0OiBDYWxsYmFnU3RhdGUpID0+IHtcbiAgICBpZiAodCA9PT0gMikgZW5kZWQgPSB0cnVlO1xuICB9KTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IGZyb21Qcm9taXNlO1xuIl19 |
@@ -1,3 +0,2 @@ | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _exportNames={fromStreamC:!0,fromAnyC:!0,subscribeC:!0,fromPromiseC:!0,mergeC:!0,fromEventsC:!0,shareC:!0,fromIterC:!0,debounceC:!0,waitC:!0,pipeC:!0,filterC:!0,mapC:!0,forEachC:!0,mapAsyncC:!0,disposeC:!0,onDisposeC:!0,mapPromiseC:!0,catchErrorC:!0,debounceWithCollectC:!0,pipeR:!0,filterR:!0,mapR:!0,intersectionR:!0,pathR:!0,pathOrR:!0,splitEveryR:!0,setR:!0,lensPathR:!0,lensPropR:!0,uniqR:!0,rangeR:!0,propR:!0,propsR:!0,complementR:!0,pickByR:!0,partitionR:!0,isNilR:!0,replaceR:!0,overR:!0,allPassR:!0,isR:!0,toLowerR:!0,toUpperR:!0,__:!0,forEachR:!0,unlessR:!0,findR:!0,propEqR:!0,pathSatisfiesR:!0,lastR:!0,juxtR:!0,sliceR:!0,flattenR:!0,removeR:!0,findIndexR:!0,equalsR:!0,viewR:!0};var _maybe=require("./maybe");Object.defineProperty(exports,"__esModule",{value:!0});Object.defineProperty(exports,"pipeC",{enumerable:!0,get:function get(){return _callbagBasics.pipe}}),Object.defineProperty(exports,"filterC",{enumerable:!0,get:function get(){return _callbagBasics.filter}}),Object.defineProperty(exports,"mapC",{enumerable:!0,get:function get(){return _callbagBasics.map}}),Object.defineProperty(exports,"forEachC",{enumerable:!0,get:function get(){return _callbagBasics.forEach}}),Object.defineProperty(exports,"mapAsyncC",{enumerable:!0,get:function get(){return _mapasync.mapAsync}}),Object.defineProperty(exports,"disposeC",{enumerable:!0,get:function get(){return _dispose.dispose}}),Object.defineProperty(exports,"onDisposeC",{enumerable:!0,get:function get(){return _ondispose.onDispose}}),Object.defineProperty(exports,"mapPromiseC",{enumerable:!0,get:function get(){return _mappromise.mapPromise}}),Object.defineProperty(exports,"catchErrorC",{enumerable:!0,get:function get(){return _catcherror.catchErrorC}}),Object.defineProperty(exports,"debounceWithCollectC",{enumerable:!0,get:function get(){return _debouncewithcollect.debounceWithCollectC}}),Object.defineProperty(exports,"pipeR",{enumerable:!0,get:function get(){return _ramda.pipe}}),Object.defineProperty(exports,"filterR",{enumerable:!0,get:function get(){return _ramda.filter}}),Object.defineProperty(exports,"mapR",{enumerable:!0,get:function get(){return _ramda.map}}),Object.defineProperty(exports,"intersectionR",{enumerable:!0,get:function get(){return _ramda.intersection}}),Object.defineProperty(exports,"pathR",{enumerable:!0,get:function get(){return _ramda.path}}),Object.defineProperty(exports,"pathOrR",{enumerable:!0,get:function get(){return _ramda.pathOr}}),Object.defineProperty(exports,"splitEveryR",{enumerable:!0,get:function get(){return _ramda.splitEvery}}),Object.defineProperty(exports,"setR",{enumerable:!0,get:function get(){return _ramda.set}}),Object.defineProperty(exports,"lensPathR",{enumerable:!0,get:function get(){return _ramda.lensPath}}),Object.defineProperty(exports,"lensPropR",{enumerable:!0,get:function get(){return _ramda.lensProp}}),Object.defineProperty(exports,"uniqR",{enumerable:!0,get:function get(){return _ramda.uniq}}),Object.defineProperty(exports,"rangeR",{enumerable:!0,get:function get(){return _ramda.range}}),Object.defineProperty(exports,"propR",{enumerable:!0,get:function get(){return _ramda.prop}}),Object.defineProperty(exports,"propsR",{enumerable:!0,get:function get(){return _ramda.props}}),Object.defineProperty(exports,"complementR",{enumerable:!0,get:function get(){return _ramda.complement}}),Object.defineProperty(exports,"pickByR",{enumerable:!0,get:function get(){return _ramda.pickBy}}),Object.defineProperty(exports,"partitionR",{enumerable:!0,get:function get(){return _ramda.partition}}),Object.defineProperty(exports,"isNilR",{enumerable:!0,get:function get(){return _ramda.isNil}}),Object.defineProperty(exports,"replaceR",{enumerable:!0,get:function get(){return _ramda.replace}}),Object.defineProperty(exports,"overR",{enumerable:!0,get:function get(){return _ramda.over}}),Object.defineProperty(exports,"allPassR",{enumerable:!0,get:function get(){return _ramda.allPass}}),Object.defineProperty(exports,"isR",{enumerable:!0,get:function get(){return _ramda.is}}),Object.defineProperty(exports,"toLowerR",{enumerable:!0,get:function get(){return _ramda.toLower}}),Object.defineProperty(exports,"toUpperR",{enumerable:!0,get:function get(){return _ramda.toUpper}}),Object.defineProperty(exports,"__",{enumerable:!0,get:function get(){return _ramda.__}}),Object.defineProperty(exports,"forEachR",{enumerable:!0,get:function get(){return _ramda.forEach}}),Object.defineProperty(exports,"unlessR",{enumerable:!0,get:function get(){return _ramda.unless}}),Object.defineProperty(exports,"findR",{enumerable:!0,get:function get(){return _ramda.find}}),Object.defineProperty(exports,"propEqR",{enumerable:!0,get:function get(){return _ramda.propEq}}),Object.defineProperty(exports,"pathSatisfiesR",{enumerable:!0,get:function get(){return _ramda.pathSatisfies}}),Object.defineProperty(exports,"lastR",{enumerable:!0,get:function get(){return _ramda.last}}),Object.defineProperty(exports,"juxtR",{enumerable:!0,get:function get(){return _ramda.juxt}}),Object.defineProperty(exports,"sliceR",{enumerable:!0,get:function get(){return _ramda.slice}}),Object.defineProperty(exports,"flattenR",{enumerable:!0,get:function get(){return _ramda.flatten}}),Object.defineProperty(exports,"removeR",{enumerable:!0,get:function get(){return _ramda.remove}}),Object.defineProperty(exports,"findIndexR",{enumerable:!0,get:function get(){return _ramda.findIndex}}),Object.defineProperty(exports,"equalsR",{enumerable:!0,get:function get(){return _ramda.equals}}),Object.defineProperty(exports,"viewR",{enumerable:!0,get:function get(){return _ramda.view}}),exports.waitC=exports.debounceC=exports.fromIterC=exports.shareC=exports.fromEventsC=exports.mergeC=exports.fromPromiseC=exports.subscribeC=exports.fromAnyC=exports.fromStreamC=void 0;var _callbagBasics=require("callbag-basics"),_callbagFromStream=_interopRequireDefault(require("callbag-from-stream")),_callbagFrom=_interopRequireDefault(require("./callbag-from")),_callbagSubscribe=_interopRequireDefault(require("callbag-subscribe")),_fromPromise=_interopRequireDefault(require("./from-promise")),_callbagFromEvents=_interopRequireDefault(require("callbag-from-events")),_callbagShare=_interopRequireDefault(require("callbag-share")),_callbagFromIter=_interopRequireDefault(require("callbag-from-iter")),_callbagDebounce=require("callbag-debounce"),_mapasync=require("./mapasync"),_dispose=require("./dispose"),_ondispose=require("./ondispose"),_mappromise=require("./mappromise"),_catcherror=require("./catcherror"),_debouncewithcollect=require("./debouncewithcollect"),_utils=require("./utils");Object.keys(_utils).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(_exportNames,a)||Object.defineProperty(exports,a,{enumerable:!0,get:function get(){return _utils[a]}})});Object.keys(_maybe).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(_exportNames,a)||Object.defineProperty(exports,a,{enumerable:!0,get:function get(){return _maybe[a]}})});var _ramda=require("ramda"),fromStreamC=_callbagFromStream["default"];exports.fromStreamC=fromStreamC;var fromAnyC=_callbagFrom["default"];exports.fromAnyC=fromAnyC;var subscribeC=_callbagSubscribe["default"];// import mapPromise from 'callbag-map-promise'; | ||
// export var mapPromiseC = mapPromise; | ||
exports.subscribeC=subscribeC;var fromPromiseC=_fromPromise["default"];exports.fromPromiseC=fromPromiseC;var merge=require("callbag-merge"),mergeC=merge["default"]||merge;exports.mergeC=mergeC;var fromEventsC=_callbagFromEvents["default"];exports.fromEventsC=fromEventsC;var shareC=_callbagShare["default"];exports.shareC=shareC;var fromIterC=_callbagFromIter["default"];exports.fromIterC=fromIterC;var debounceC=_callbagDebounce.debounce;exports.debounceC=debounceC;var waitC=require("callbag-wait");exports.waitC=waitC; | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _exportNames={pipeC:!0,filterC:!0,mapC:!0,forEachC:!0,fromStreamC:!0,fromAnyC:!0,subscribeC:!0,fromPromiseC:!0,mergeC:!0,fromEventsC:!0,shareC:!0,fromIterC:!0,debounceC:!0,waitC:!0,mapAsyncC:!0,disposeC:!0,onDisposeC:!0,mapPromiseC:!0,catchErrorC:!0,debounceWithCollectC:!0,pipeR:!0,filterR:!0,mapR:!0,intersectionR:!0,pathR:!0,pathOrR:!0,splitEveryR:!0,setR:!0,lensPathR:!0,lensPropR:!0,uniqR:!0,rangeR:!0,propR:!0,propsR:!0,complementR:!0,pickByR:!0,partitionR:!0,isNilR:!0,replaceR:!0,overR:!0,allPassR:!0,isR:!0,toLowerR:!0,toUpperR:!0,__:!0,forEachR:!0,unlessR:!0,findR:!0,propEqR:!0,pathSatisfiesR:!0,lastR:!0,juxtR:!0,sliceR:!0,flattenR:!0,removeR:!0,findIndexR:!0,equalsR:!0,viewR:!0};var _maybe=require("./maybe");var _lensUtils=require("./lens-utils");Object.defineProperty(exports,"__esModule",{value:!0});Object.defineProperty(exports,"mapAsyncC",{enumerable:!0,get:function get(){return _mapasync.mapAsync}}),Object.defineProperty(exports,"disposeC",{enumerable:!0,get:function get(){return _dispose.dispose}}),Object.defineProperty(exports,"onDisposeC",{enumerable:!0,get:function get(){return _ondispose.onDispose}}),Object.defineProperty(exports,"mapPromiseC",{enumerable:!0,get:function get(){return _mappromise.mapPromise}}),Object.defineProperty(exports,"catchErrorC",{enumerable:!0,get:function get(){return _catcherror.catchErrorC}}),Object.defineProperty(exports,"debounceWithCollectC",{enumerable:!0,get:function get(){return _debouncewithcollect.debounceWithCollectC}}),Object.defineProperty(exports,"pipeR",{enumerable:!0,get:function get(){return _ramda.pipe}}),Object.defineProperty(exports,"filterR",{enumerable:!0,get:function get(){return _ramda.filter}}),Object.defineProperty(exports,"mapR",{enumerable:!0,get:function get(){return _ramda.map}}),Object.defineProperty(exports,"intersectionR",{enumerable:!0,get:function get(){return _ramda.intersection}}),Object.defineProperty(exports,"pathR",{enumerable:!0,get:function get(){return _ramda.path}}),Object.defineProperty(exports,"pathOrR",{enumerable:!0,get:function get(){return _ramda.pathOr}}),Object.defineProperty(exports,"splitEveryR",{enumerable:!0,get:function get(){return _ramda.splitEvery}}),Object.defineProperty(exports,"setR",{enumerable:!0,get:function get(){return _ramda.set}}),Object.defineProperty(exports,"lensPathR",{enumerable:!0,get:function get(){return _ramda.lensPath}}),Object.defineProperty(exports,"lensPropR",{enumerable:!0,get:function get(){return _ramda.lensProp}}),Object.defineProperty(exports,"uniqR",{enumerable:!0,get:function get(){return _ramda.uniq}}),Object.defineProperty(exports,"rangeR",{enumerable:!0,get:function get(){return _ramda.range}}),Object.defineProperty(exports,"propR",{enumerable:!0,get:function get(){return _ramda.prop}}),Object.defineProperty(exports,"propsR",{enumerable:!0,get:function get(){return _ramda.props}}),Object.defineProperty(exports,"complementR",{enumerable:!0,get:function get(){return _ramda.complement}}),Object.defineProperty(exports,"pickByR",{enumerable:!0,get:function get(){return _ramda.pickBy}}),Object.defineProperty(exports,"partitionR",{enumerable:!0,get:function get(){return _ramda.partition}}),Object.defineProperty(exports,"isNilR",{enumerable:!0,get:function get(){return _ramda.isNil}}),Object.defineProperty(exports,"replaceR",{enumerable:!0,get:function get(){return _ramda.replace}}),Object.defineProperty(exports,"overR",{enumerable:!0,get:function get(){return _ramda.over}}),Object.defineProperty(exports,"allPassR",{enumerable:!0,get:function get(){return _ramda.allPass}}),Object.defineProperty(exports,"isR",{enumerable:!0,get:function get(){return _ramda.is}}),Object.defineProperty(exports,"toLowerR",{enumerable:!0,get:function get(){return _ramda.toLower}}),Object.defineProperty(exports,"toUpperR",{enumerable:!0,get:function get(){return _ramda.toUpper}}),Object.defineProperty(exports,"__",{enumerable:!0,get:function get(){return _ramda.__}}),Object.defineProperty(exports,"forEachR",{enumerable:!0,get:function get(){return _ramda.forEach}}),Object.defineProperty(exports,"unlessR",{enumerable:!0,get:function get(){return _ramda.unless}}),Object.defineProperty(exports,"findR",{enumerable:!0,get:function get(){return _ramda.find}}),Object.defineProperty(exports,"propEqR",{enumerable:!0,get:function get(){return _ramda.propEq}}),Object.defineProperty(exports,"pathSatisfiesR",{enumerable:!0,get:function get(){return _ramda.pathSatisfies}}),Object.defineProperty(exports,"lastR",{enumerable:!0,get:function get(){return _ramda.last}}),Object.defineProperty(exports,"juxtR",{enumerable:!0,get:function get(){return _ramda.juxt}}),Object.defineProperty(exports,"sliceR",{enumerable:!0,get:function get(){return _ramda.slice}}),Object.defineProperty(exports,"flattenR",{enumerable:!0,get:function get(){return _ramda.flatten}}),Object.defineProperty(exports,"removeR",{enumerable:!0,get:function get(){return _ramda.remove}}),Object.defineProperty(exports,"findIndexR",{enumerable:!0,get:function get(){return _ramda.findIndex}}),Object.defineProperty(exports,"equalsR",{enumerable:!0,get:function get(){return _ramda.equals}}),Object.defineProperty(exports,"viewR",{enumerable:!0,get:function get(){return _ramda.view}}),exports.waitC=exports.debounceC=exports.fromIterC=exports.shareC=exports.fromEventsC=exports.mergeC=exports.fromPromiseC=exports.subscribeC=exports.fromAnyC=exports.fromStreamC=exports.forEachC=exports.mapC=exports.filterC=exports.pipeC=void 0;var _callbagFrom=_interopRequireDefault(require("./callbag-from")),_callbagSubscribe=_interopRequireDefault(require("callbag-subscribe")),_fromPromise=_interopRequireDefault(require("./from-promise")),_callbagFromEvents=_interopRequireDefault(require("callbag-from-events")),_callbagShare=_interopRequireDefault(require("callbag-share")),_callbagDebounce=require("callbag-debounce"),_mapasync=require("./mapasync"),_dispose=require("./dispose"),_ondispose=require("./ondispose"),_mappromise=require("./mappromise"),_catcherror=require("./catcherror"),_debouncewithcollect=require("./debouncewithcollect"),_utils=require("./utils");Object.keys(_utils).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(_exportNames,a)||Object.defineProperty(exports,a,{enumerable:!0,get:function get(){return _utils[a]}})});Object.keys(_maybe).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(_exportNames,a)||Object.defineProperty(exports,a,{enumerable:!0,get:function get(){return _maybe[a]}})});Object.keys(_lensUtils).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(_exportNames,a)||Object.defineProperty(exports,a,{enumerable:!0,get:function get(){return _lensUtils[a]}})});var _ramda=require("ramda"),basics=require("callbag-basics"),pipeC=basics.pipe;exports.pipeC=pipeC;var filterC=basics.filter;exports.filterC=filterC;var mapC=basics.map;exports.mapC=mapC;var forEachC=basics.forEach;exports.forEachC=forEachC;var fromStreamC=require("callbag-from-stream");exports.fromStreamC=fromStreamC;var fromAnyC=_callbagFrom["default"];exports.fromAnyC=fromAnyC;var subscribeC=_callbagSubscribe["default"];exports.subscribeC=subscribeC;var fromPromiseC=_fromPromise["default"];exports.fromPromiseC=fromPromiseC;var merge=require("callbag-merge"),mergeC=merge["default"]||merge;exports.mergeC=mergeC;var fromEventsC=_callbagFromEvents["default"];exports.fromEventsC=fromEventsC;var shareC=_callbagShare["default"];exports.shareC=shareC;var fromIterC=require("callbag-from-iter");exports.fromIterC=fromIterC;var debounceC=_callbagDebounce.debounce;exports.debounceC=debounceC;var waitC=require("callbag-wait");exports.wait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F0aFNhdGlzZmllcyBhcyBwYXRoU2F0aXNmaWVzUixcbiAgbGFzdCBhcyBsYXN0UixcbiAganV4dCBhcyBqdXh0UixcbiAgc2xpY2UgYXMgc2xpY2VSLFxuICBmbGF0dGVuIGFzIGZsYXR0ZW5SLFxuICByZW1vdmUgYXMgcmVtb3ZlUixcbiAgZmluZEluZGV4IGFzIGZpbmRJbmRleFIsXG4gIGVxdWFscyBhcyBlcXVhbHNSLFxuICB2aWV3IGFzIHZpZXdSLFxufSBmcm9tICdyYW1kYSc7XG5cbmV4cG9ydCB0eXBlIHNvdXJjZVIgPSBhbnk7XG4iXX0= |
@@ -1,1 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapAsync=void 0;var mapAsync=function(a){return function(b){return function(c,f){0!==c||b(0,function(b,c){return 1===b?void a(c).then(function(a){f(b,a)})["catch"](function(a){console.log(a),f(b,void 0)}):void f(b,c)})}}};exports.mapAsync=mapAsync; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapAsync=void 0;var mapAsync=function(a){return function(b){return function(c,f){0!==c||b(0,function(b,c){return 1===b?void a(c).then(function(a){f(b,a)})["catch"](function(a){console.log(a),f(b,void 0)}):void f(b,c)})}}};exports.mapAsync=mapAsync; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXBhc3luYy50cyJdLCJuYW1lcyI6WyJtYXBBc3luYyIsImYiLCJzb3VyY2UiLCJzdGFydCIsInNpbmsiLCJ0IiwiZCIsInRoZW4iLCJyZXMiLCJlIiwiY29uc29sZSIsImxvZyJdLCJtYXBwaW5ncyI6IjRGQUdPLEdBQU1BLENBQUFBLFFBQVEsQ0FBRyxTQUFJQyxDQUFKLFFBQStCLFVBQUNDLENBQUQsUUFBaUIsVUFDdEVDLENBRHNFLENBRXRFQyxDQUZzRSxDQUduRSxDQUNXLENBQVYsR0FBQUQsQ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AgICAgICAgIGNvbnNvbGUubG9nKGUpO1xuICAgICAgICAgIHNpbmsodCwgdW5kZWZpbmVkKTtcbiAgICAgICAgfSk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHNpbmsodCwgZCk7XG4gIH0pO1xufTtcbiJdfQ== |
@@ -1,1 +0,2 @@ | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapPromise=void 0;var _fromPromise=_interopRequireDefault(require("./from-promise")),flatmap=function(a,b){return function(c){return function(d,e){if(0===d){b||(b=function(a,b){return b});var f=0,g={},h=!1,i=null,j=function(a){var b=Object.values(g).pop();1===a&&(b?b(1):h?e(2):i(1)),2===a&&(b&&b(2),i(2))},k=function(a){e(2,a)},l=function(a,c,d){return function(f,g){0===f&&(d[a]=g,d[a](1)),1===f&&e(1,b(c,g)),2===f&&(delete d[a],k(g))}};c(0,function(b,c){0===b&&(i=c,e(0,j)),1===b&&a(c)(0,l(f++,c,g)),2===b&&(h=!0,k(c))})}}}},transfer=function(a){return function(b,c){return 2===b&&a?void c(2,a):void(0!==b||(c(0,function(){}),c(1,a)))}},mapPromise=function(a,b){return function(c){return flatmap(function(b){return b=a(b),b instanceof Promise?(0,_fromPromise["default"])(b):transfer(b)},b)(c)}};exports.mapPromise=mapPromise; | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapPromise=void 0;var _fromPromise=_interopRequireDefault(require("./from-promise")),flatmap=function(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:function(a,b){return b};return function(c){return function(d,e){if(0===d){var f=0,g={},h=!1,i=null,j=function(a){var b=Object.values(g).pop();1===a&&(b?b(1):h?e(2):i&&i(1)),2===a&&(b&&b(2),i&&i(2))},k=function(a){e(2,a)},l=function(a,c,d){return function(f,g){0===f&&(d[a]=g,d[a](1)),1===f&&e(1,b(c,g)),2===f&&(delete d[a],k(g))}};c(0,function(b,c){0===b&&(i=c,e(0,j)),1===b&&a(c)(0,l(f++,c,g)),2===b&&(h=!0,k(c))})}}}},transfer=function(a){return function(b,c){return 2===b&&a?void c(2,a):void(0!==b||(c(0,function(){}),c(1,a)))}},mapPromise=function(a,b){return function(c){return flatmap(function(b){return b=a(b),b instanceof Promise?(0,_fromPromise["default"])(b):transfer(b)},b)(c)}};exports.mapPromise=mapPromise; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXBwcm9taXNlLnRzIl0sIm5hbWVzIjpbImZsYXRtYXAiLCJtYWtlU291cmNlIiwiY29tYmluZVJlc3VsdHMiLCJ4IiwieSIsImlucHV0U291cmNlIiwic3RhcnQiLCJzaW5rIiwiaW5kZXgiLCJ0YWxrYmFja3MiLCJzb3VyY2VFbmRlZCIsImlucHV0U291cmNlVGFsa2JhY2siLCJwdWxsSGFuZGxlIiwidCIsImN1cnJUYWxrYmFjayIsIk9iamVjdCIsInZhbHVlcyIsInBvcCIsInN0b3BPckNvbnRpbnVlIiwiZCIsIm1ha2VTaW5rIiwiaSIsImN1cnJUIiwiY3VyckQiLCJ0cmFuc2ZlciIsImRhdGEiLCJ0eXBlIiwibWFwUHJvbWlzZSIsImZuIiwiZW5kcG9pbnQiLCJzb3VyY2UiLCJQcm9taXNlIl0sIm1hcHBpbmdzIjoib1BBT01BLE9BQU8sQ0FBRyxTQUNkQyxDQURjLEtBRWRDLENBQUFBLENBRmMsd0RBRWEsU0FBQ0MsQ0FBRCxDQUFhQyxDQUFiLFFBQTRCQSxDQUFBQSxDQUE1QixDQUZiLE9BR1gsVUFBQ0MsQ0FBRCxRQUEyQixVQUFDQyxDQUFELENBQXNCQyxDQUF0QixDQUF5QyxDQUN2RSxHQUFjLENBQVYsR0FBQUQsQ0FBSixLQUVJRSxDQUFBQSxDQUFLLENBQUcsQ0FGWixDQUdJQyxDQUFTLENBQU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VuY3Rpb25cbikgPT4ge1xuICByZXR1cm4gZmxhdG1hcCgoZDogdW5rbm93bikgPT4ge1xuICAgIGQgPSBmbihkKTtcbiAgICByZXR1cm4gZCBpbnN0YW5jZW9mIFByb21pc2UgPyBmcm9tUHJvbWlzZShkKSA6IHRyYW5zZmVyKGQpO1xuICB9LCBlbmRwb2ludCkoc291cmNlKTtcbn07XG4iXX0= |
@@ -1,5 +0,6 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Option",{enumerable:!0,get:function get(){return _Option.Option}}),Object.defineProperty(exports,"fromNullable",{enumerable:!0,get:function get(){return _Option.fromNullable}}),Object.defineProperty(exports,"some",{enumerable:!0,get:function get(){return _Option.some}}),Object.defineProperty(exports,"none",{enumerable:!0,get:function get(){return _Option.none}}),Object.defineProperty(exports,"getOrElse",{enumerable:!0,get:function get(){return _Option.getOrElse}}),Object.defineProperty(exports,"chainO",{enumerable:!0,get:function get(){return _Option.chain}}),Object.defineProperty(exports,"mapO",{enumerable:!0,get:function get(){return _Option.map}}),Object.defineProperty(exports,"pipeO",{enumerable:!0,get:function get(){return _pipeable.pipe}}),exports.viewM=exports.mapOrElse=exports.withOption=exports.isOption=exports.isNone=exports.isSome=void 0;var _Option=require("fp-ts/lib/Option"),_pipeable=require("fp-ts/lib/pipeable"),_ramda=require("ramda"),isSome=function(a){return a&&a._tag&&(0,_Option.isSome)(a)};exports.isSome=isSome;var isNone=function(a){return a&&a._tag&&(0,_Option.isNone)(a)};exports.isNone=isNone;var isOption=function(a){return isSome(a)||isNone(a)};/** | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"fromNullable",{enumerable:!0,get:function get(){return _Option.fromNullable}}),Object.defineProperty(exports,"some",{enumerable:!0,get:function get(){return _Option.some}}),Object.defineProperty(exports,"none",{enumerable:!0,get:function get(){return _Option.none}}),Object.defineProperty(exports,"getOrElse",{enumerable:!0,get:function get(){return _Option.getOrElse}}),Object.defineProperty(exports,"chainO",{enumerable:!0,get:function get(){return _Option.chain}}),Object.defineProperty(exports,"mapO",{enumerable:!0,get:function get(){return _Option.map}}),Object.defineProperty(exports,"pipeO",{enumerable:!0,get:function get(){return _pipeable.pipe}}),exports.viewM=exports.mapOrElse=exports.withOption=exports.isOption=exports.isNone=exports.isSome=void 0;var _Option=require("fp-ts/lib/Option"),_pipeable=require("fp-ts/lib/pipeable"),_ramda=require("ramda"),isSome=function(a){return a&&a._tag&&(0,_Option.isSome)(a)};exports.isSome=isSome;var isNone=function(a){return a&&a._tag&&(0,_Option.isNone)(a)};exports.isNone=isNone;var isOption=function(a){return isSome(a)||isNone(a)};/** | ||
* Apply a function to an Option and return the value or null if its a Nothing | ||
* @param {*} fn | ||
* @param {*} option | ||
*/exports.isOption=isOption;var withOption=function(a,b){return(0,_pipeable.pipe)(b,(0,_Option.map)(a),(0,_Option.getOrElse)(function(){return null}))};exports.withOption=withOption;var mapOrElse=function(a,b,c){return(0,_pipeable.pipe)(c,(0,_Option.map)(b),(0,_Option.getOrElse)(function(){return a}))};exports.mapOrElse=mapOrElse;var viewM=(0,_ramda.curry)(function(a,b){return(0,_pipeable.pipe)(b,(0,_ramda.view)(a),_Option.fromNullable)});exports.viewM=viewM; | ||
*/exports.isOption=isOption;var withOption=function(a,b){return(0,_pipeable.pipe)(b,(0,_Option.map)(a),(0,_Option.getOrElse)(function(){return null}))};exports.withOption=withOption;var mapOrElse=function(a,b,c){return(0,_pipeable.pipe)(c,(0,_Option.map)(b),(0,_Option.getOrElse)(function(){return a}))};exports.mapOrElse=mapOrElse;var viewM=(0,_ramda.curry)(function(a,b){return(0,_pipeable.pipe)(b,(0,_ramda.view)(a),_Option.fromNullable)});exports.viewM=viewM; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXliZS50cyJdLCJuYW1lcyI6WyJpc1NvbWUiLCJ4IiwiX3RhZyIsIm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Wx1ZSBvciBudWxsIGlmIGl0cyBhIE5vdGhpbmdcbiAqIEBwYXJhbSB7Kn0gZm5cbiAqIEBwYXJhbSB7Kn0gb3B0aW9uXG4gKi9cbmV4cG9ydCBjb25zdCB3aXRoT3B0aW9uID0gKGZuOiAoYTogYW55KSA9PiBhbnksIG9wdGlvbjogT3B0aW9uPHVua25vd24+KSA9PlxuICBwaXBlTyhcbiAgICBvcHRpb24sXG4gICAgbWFwKGZuKSxcbiAgICBnZXRPckVsc2UoKCkgPT4gbnVsbClcbiAgKTtcblxuZXhwb3J0IGNvbnN0IG1hcE9yRWxzZSA9IChcbiAgZmFsbGJhY2s6IHVua25vd24sXG4gIGZuOiAoYTogdW5rbm93bikgPT4gYW55LFxuICBtYXliZTogT3B0aW9uPHVua25vd24+XG4pID0+XG4gIHBpcGVPKFxuICAgIG1heWJlLFxuICAgIG1hcChmbiksXG4gICAgZ2V0T3JFbHNlKCgpID0+IGZhbGxiYWNrKVxuICApO1xuXG5leHBvcnQgY29uc3Qgdmlld00gPSBjdXJyeSgobGVucywgb2JqKSA9PiBwaXBlTyhvYmosIHZpZXcobGVucyksIGZyb21OdWxsYWJsZSkpO1xuIl19 |
@@ -1,1 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.onDispose=void 0;var onDispose=function(a){return function(b){return function(c,e){0!==c||b(0,function(b,c){if(0===b){e(b,function talkback(b){2===b&&a(),c(b)})}else 1===b?e(1,c):e(b,c)})}}};exports.onDispose=onDispose; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.onDispose=void 0;var onDispose=function(a){return function(b){return function(c,e){0!==c||b(0,function(b,c){if(0===b){e(b,function talkback(b){2===b&&a(),c(b)})}else 1===b?e(1,c):e(b,c)})}}};exports.onDispose=onDispose; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9vbmRpc3Bvc2UudHMiXSwibmF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iA8Q2FsbGJhZzxJLCBPPj4oXG4gICAgZnVuY3Rpb24gb3V0cHV0U291cmNlKHN0YXJ0OiBDYWxsYmFnU3RhdGUsIG91dHB1dFNpbms6IEZ1bmN0aW9uKSB7XG4gICAgICBpZiAoc3RhcnQgIT09IDApIHJldHVybjtcbiAgICAgIGlucHV0U291cmNlKDAsICh0OiBDYWxsYmFnU3RhdGUsIGQ6IGFueSkgPT4ge1xuICAgICAgICBpZiAodCA9PT0gMCkge1xuICAgICAgICAgIGxldCB0YWxrYmFjayA9IChzdGF0dXM6IENhbGxiYWdTdGF0ZSkgPT4ge1xuICAgICAgICAgICAgaWYgKHN0YXR1cyA9PT0gMikge1xuICAgICAgICAgICAgICBmbigpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZChzdGF0dXMpO1xuICAgICAgICAgIH07XG4gICAgICAgICAgb3V0cHV0U2luayh0LCB0YWxrYmFjayk7XG4gICAgICAgIH0gZWxzZSBpZiAodCA9PT0gMSkge1xuICAgICAgICAgIG91dHB1dFNpbmsoMSwgZCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgb3V0cHV0U2luayh0LCBkKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgfVxuICApO1xufTtcbiJdfQ== |
@@ -1,5 +0,6 @@ | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.zipLongest=exports.viewOr=exports.ensureArray=exports.pipeM=exports.lensEq=exports.replaceOrAdd=exports.replaceOne=exports.mapBy=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")),_ramda=require("ramda"),mapBy=function(a,b,c){return(0,_ramda.map)((0,_ramda.when)(a,b),c)};exports.mapBy=mapBy;var replaceOne=function(a,b,c){return(0,_ramda.adjust)((0,_ramda.findIndex)(a,c),b,c)};exports.replaceOne=replaceOne;var replaceOrAdd=(0,_ramda.curryN)(3,function(a,b){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:[],d=(0,_ramda.findIndex)(a,c);return-1<d?(0,_ramda.adjust)(d,b,c):[].concat((0,_toConsumableArray2["default"])(c),[b()])});exports.replaceOrAdd=replaceOrAdd;var lensEq=(0,_ramda.curryN)(3,function(a,b,c){return(0,_ramda.pipe)((0,_ramda.view)(a),(0,_ramda.equals)(b))(c)});/* | ||
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.tapLogT=exports.tapLog=exports.joinCompact=exports.compact=exports.isEmpty=exports.zipLongest=exports.viewOrRun=exports.viewOr=exports.ensureArray=exports.pipeM=exports.containsPromise=exports.isPromise=exports.isFunction=exports.replaceOrAdd=exports.replaceOne=exports.mapBy=exports.logAndReturn=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")),_ramda=require("ramda"),logAndReturn=function(a,b){return function(c){return console.log(a,c),b||c}};exports.logAndReturn=logAndReturn;var mapBy=function(a,b,c){return(0,_ramda.map)((0,_ramda.when)(a,b),c)};exports.mapBy=mapBy;var replaceOne=function(a,b,c){return(0,_ramda.adjust)((0,_ramda.findIndex)(a,c),b,c)};exports.replaceOne=replaceOne;var replaceOrAdd=(0,_ramda.curry)(function(a,b,c){var d=(0,_ramda.findIndex)(a,c);return-1<d?(0,_ramda.adjust)(d,b,c):[].concat((0,_toConsumableArray2["default"])(c),[b()])});exports.replaceOrAdd=replaceOrAdd;var isFunction=function(a){return"function"==typeof a};exports.isFunction=isFunction;var isPromise=function(a){return isFunction(a.then)&&isFunction(a["catch"])};exports.isPromise=isPromise;var containsPromise=function(a){return(0,_ramda.find)(isPromise,a)};/* | ||
pipeM is a mixed pipe | ||
can work with pipelines that contain sync & async functions | ||
*/exports.lensEq=lensEq;var pipeM=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];var d=b[0],e=b.slice(1);return function(){return(0,_ramda.reduce)(function(a,b){return a.then(b)},Promise.resolve(d.apply(void 0,arguments)),e)}};exports.pipeM=pipeM;var ensureArray=function(a){return(0,_ramda.isNil)(a)?[]:Array.isArray(a)?a:[a]};exports.ensureArray=ensureArray;var viewOr=function(a,b,c){return(0,_ramda.view)(b,c)||a};// https://github.com/ramda/ramda/wiki/Cookbook#ziplongest-zip-lists-to-the-longest-lists-length | ||
exports.viewOr=viewOr;var zipLongest=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},d=a,e=b;return a.length<b.length?d=(0,_ramda.concat)(a,(0,_ramda.repeat)(c,b.length-a.length)):b.length<a.length&&(e=(0,_ramda.concat)(b,(0,_ramda.repeat)(c,a.length-b.length))),(0,_ramda.zip)(d,e)};exports.zipLongest=zipLongest; | ||
*/exports.containsPromise=containsPromise;var pipeM=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];var d=b[0],e=b.slice(1);return function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return(0,_ramda.reduce)(function(a,b){return isPromise(a)?a.then(b):b(a)},containsPromise(b)?Promise.all(b).then(function(a){return d.apply(void 0,(0,_toConsumableArray2["default"])(a))}):d.apply(void 0,b),e)}};exports.pipeM=pipeM;var ensureArray=function(a){return(0,_ramda.isNil)(a)?[]:Array.isArray(a)?a:[a]};exports.ensureArray=ensureArray;var viewOr=(0,_ramda.curry)(function(a,b,c){return(0,_ramda.view)(b,c)||a});exports.viewOr=viewOr;var viewOrRun=(0,_ramda.curry)(function(a,b,c){var d=(0,_ramda.view)(b,c);return(0,_ramda.isNil)(d)?a():d});// https://github.com/ramda/ramda/wiki/Cookbook#ziplongest-zip-lists-to-the-longest-lists-length | ||
exports.viewOrRun=viewOrRun;var zipLongest=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},d=a,e=b;return a.length<b.length?d=(0,_ramda.concat)(a,(0,_ramda.repeat)(c,b.length-a.length)):b.length<a.length&&(e=(0,_ramda.concat)(b,(0,_ramda.repeat)(c,a.length-b.length))),(0,_ramda.zip)(d,e)};exports.zipLongest=zipLongest;var isEmpty=function(a){return""===a||(0,_ramda.isNil)(a)};exports.isEmpty=isEmpty;var compact=function(a){return(0,_ramda.reject)(isEmpty,a)};exports.compact=compact;var joinCompact=(0,_ramda.curryN)(2,function(a,b){return(0,_ramda.pipe)(compact,(0,_ramda.join)(a))(b)});exports.joinCompact=joinCompact;var tapLog=(0,_ramda.tap)(function(a){return console.log(a)});exports.tapLog=tapLog;var tapLogT=function(a){return(0,_ramda.tap)(function(b){return console.log(a,b)})};exports.tapLogT=tapLogT; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy50cyJdLCJuYW1lcyI6WyJsb2dBbmRSZXR1cm4iLCJsb2ciLCJyZXR1cm5WYWx1ZSIsInZhbHVlIiwiY29uc29sZSIsIm1hcEJ5IiwicHJlZGljYXRlIiwiY2hhbmdlRm4iLCJsaXN0IiwicmVwbGFjZU9uZSIsInJlcGxhY2VPckFkZCIsImlkeCIsImlzRnVuY3Rpb24iLCJzb21lVmFsdWUiLCJpc1Byb21pc2UiLCJ0aGVuIiwiY29udGFpbnNQcm9taXNlIiwic29tZUxpc3QiLCJwaXBlTSIsImZzdCIsInBpcGVsaW5lIiwiYXJncyIsImFjYyIsImZuIiwiUHJvbWlzZSIsImFsbCIsImVuc3VyZUFycmF5IiwibWl4ZWQiLCJBcnJheSIsImlzQXJyYXkiLCJ2aWV3T3IiLCJkZWZhdWx0VmFsdWUiLCJsZW5zIiwiZGF0YSIsInZpZXdPclJ1biIsImRlZmF1bHRWYWx1ZUZuIiwiemlwTG9uZ2VzdCIsInhzIiwieXMiLCJmaWxsIiwibDEiLCJsMiIsImxlbmd0aCIsImlzRW1wdHkiLCJ4IiwiY29tcGFjdCIsImpvaW5Db21wYWN0IiwicyIsInRhcExvZyIsInRhcExvZ1QiLCJ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cblxuZXhwb3J0IGNvbnN0IGlzRW1wdHkgPSAoeDogdW5rbm93bikgPT4geCA9PT0gJycgfHwgaXNOaWwoeCk7XG5cbmV4cG9ydCBjb25zdCBjb21wYWN0ID0gKHhzOiB1bmtub3duW10pID0+IHtcbiAgcmV0dXJuIHJlamVjdChpc0VtcHR5LCB4cyk7XG59O1xuXG5leHBvcnQgY29uc3Qgam9pbkNvbXBhY3QgPSBjdXJyeU4oMiwgKHM6IHN0cmluZywgeHM6IHVua25vd25bXSkgPT5cbiAgcGlwZShjb21wYWN0LCBqb2luKHMpKSh4cylcbik7XG5cbmV4cG9ydCBjb25zdCB0YXBMb2cgPSB0YXAoKHg6IGFueSkgPT4gY29uc29sZS5sb2coeCkpO1xuZXhwb3J0IGNvbnN0IHRhcExvZ1QgPSAodG9waWM6IGFueSkgPT4gdGFwKCh4OiBhbnkpID0+IGNvbnNvbGUubG9nKHRvcGljLCB4KSk7XG4iXX0= |
{ | ||
"name": "@rea-jet/fp-helpers", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "babel src --out-dir dist", | ||
"test": "jest", | ||
"flow": "flow", | ||
"prepublishOnly": "yarn run build && set-package-main --to dist/index.js", | ||
"postpublish": "set-package-main --to src/index.js" | ||
"type-check": "tsc --noEmit", | ||
"type-check:watch": "npm run type-check -- --watch", | ||
"build": "npm run build:types && npm run build:js", | ||
"build:types": "tsc --emitDeclarationOnly --declaration true", | ||
"build:js": "babel src --out-dir dist --extensions \".ts,.tsx\" --source-maps inline", | ||
"test": "react-scripts test", | ||
"prepublishOnly": "yarn run build && set-package-main --to dist/index.js && set-package-types --to dist/index.d.ts", | ||
"postpublish": "set-package-main --to src/index.ts && set-package-types" | ||
}, | ||
@@ -16,3 +19,3 @@ "author": "Daniel Schuech", | ||
"dependencies": { | ||
"@babel/runtime": "7.5.5", | ||
"@babel/runtime": "7.13.10", | ||
"callbag-basics": "^3.0.0", | ||
@@ -34,6 +37,11 @@ "callbag-debounce": "2.1.2", | ||
"devDependencies": { | ||
"@rea-jet/devtools": "3.10.0", | ||
"@rea-jet/devtools": "https://github.com/rea-jet/devtools.git#feat/v4/set-package-types", | ||
"@rea-jet/react-scripts": "3.4.0-3", | ||
"@types/jest": "23.3.13", | ||
"@types/ramda": "0.26.12", | ||
"babel-preset-minify": "^0.5.0", | ||
"flow-bin": "^0.77.0" | ||
} | ||
"typescript": "3.8.2" | ||
}, | ||
"types": "dist/index.d.ts" | ||
} | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances 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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
76698
33
232
6
9
1
+ Added@babel/runtime@7.13.10(transitive)
- Removed@babel/runtime@7.5.5(transitive)
Updated@babel/runtime@7.13.10