@typed/fx 0.0.10 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/cjs/Fx.d.ts +0 -6
- package/cjs/Fx.d.ts.map +1 -1
- package/cjs/Fx.js.map +1 -1
- package/cjs/Subject.d.ts +22 -0
- package/cjs/Subject.d.ts.map +1 -0
- package/cjs/Subject.js +58 -0
- package/cjs/Subject.js.map +1 -0
- package/cjs/hold.d.ts +1 -0
- package/cjs/hold.d.ts.map +1 -1
- package/cjs/hold.js +1 -0
- package/cjs/hold.js.map +1 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +1 -0
- package/cjs/index.js.map +1 -1
- package/esm/Fx.d.ts +0 -6
- package/esm/Fx.d.ts.map +1 -1
- package/esm/Fx.js.map +1 -1
- package/esm/Subject.d.ts +22 -0
- package/esm/Subject.d.ts.map +1 -0
- package/esm/Subject.js +32 -0
- package/esm/Subject.js.map +1 -0
- package/esm/hold.d.ts +1 -0
- package/esm/hold.d.ts.map +1 -1
- package/esm/hold.js +1 -0
- package/esm/hold.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/package.json +11 -2
- package/src/Fx.ts +0 -7
- package/src/Subject.ts +46 -0
- package/src/during.test.ts +23 -14
- package/src/hold.ts +2 -0
- package/src/index.ts +1 -0
- package/src/since.test.ts +24 -15
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts":"1","/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts":"2","/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts":"3","/Users/TylorSteinberger/code/tylors/fx/src/combine.ts":"4","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts":"5","/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts":"6","/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts":"7","/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts":"8","/Users/TylorSteinberger/code/tylors/fx/src/delay.ts":"9","/Users/TylorSteinberger/code/tylors/fx/src/during.ts":"10","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts":"11","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts":"12","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts":"13","/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts":"14","/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts":"15","/Users/TylorSteinberger/code/tylors/fx/src/hold.ts":"16","/Users/TylorSteinberger/code/tylors/fx/src/index.ts":"17","/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts":"18","/Users/TylorSteinberger/code/tylors/fx/src/merge.ts":"19","/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts":"20","/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts":"21","/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts":"22","/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts":"23","/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts":"24","/Users/TylorSteinberger/code/tylors/fx/src/provide.ts":"25","/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts":"26","/Users/TylorSteinberger/code/tylors/fx/src/since.ts":"27","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts":"28","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts":"29","/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts":"30","/Users/TylorSteinberger/code/tylors/fx/src/slice.ts":"31","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts":"32","/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts":"33","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts":"34","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts":"35","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts":"36","/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts":"37","/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts":"38","/Users/TylorSteinberger/code/tylors/fx/src/transform.ts":"39","/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts":"40","/Users/TylorSteinberger/code/tylors/fx/src/until.ts":"41","/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts":"42","/Users/TylorSteinberger/code/tylors/fx/src/zip.ts":"43","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts":"44","/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts":"45","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts":"46","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts":"47","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts":"48","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts":"49","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts":"50","/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts":"51","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts":"52","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts":"53","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts":"54","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts":"55","/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts":"56","/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts":"57","/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts":"58","/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts":"59","/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts":"60","/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts":"61","/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts":"62","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts":"63","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts":"64","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts":"65","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts":"66","/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts":"67","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts":"68","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts":"69","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts":"70","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts":"71"},{"size":1348,"mtime":1666901407822,"results":"72","hashOfConfig":"73"},{"size":2390,"mtime":1666909836963,"results":"74","hashOfConfig":"73"},{"size":919,"mtime":1666901217496,"results":"75","hashOfConfig":"73"},{"size":2060,"mtime":1666901217496,"results":"76","hashOfConfig":"73"},{"size":591,"mtime":1666901217497,"results":"77","hashOfConfig":"73"},{"size":522,"mtime":1666901217497,"results":"78","hashOfConfig":"73"},{"size":1617,"mtime":1666901217497,"results":"79","hashOfConfig":"73"},{"size":701,"mtime":1666901217498,"results":"80","hashOfConfig":"73"},{"size":557,"mtime":1666909013033,"results":"81","hashOfConfig":"73"},{"size":1674,"mtime":1666909765898,"results":"82","hashOfConfig":"73"},{"size":1506,"mtime":1666901217500,"results":"83","hashOfConfig":"73"},{"size":1186,"mtime":1666902358042,"results":"84","hashOfConfig":"73"},{"size":706,"mtime":1666906589152,"results":"85","hashOfConfig":"73"},{"size":3805,"mtime":1666901217501,"results":"86","hashOfConfig":"73"},{"size":1443,"mtime":1666901217502,"results":"87","hashOfConfig":"73"},{"size":3387,"mtime":1666909078898,"results":"88","hashOfConfig":"73"},{"size":1215,"mtime":1666902477327,"results":"89","hashOfConfig":"73"},{"size":530,"mtime":1666901217504,"results":"90","hashOfConfig":"73"},{"size":977,"mtime":1666901217505,"results":"91","hashOfConfig":"73"},{"size":1293,"mtime":1666901217505,"results":"92","hashOfConfig":"73"},{"size":3290,"mtime":1666909109055,"results":"93","hashOfConfig":"73"},{"size":1034,"mtime":1666901391894,"results":"94","hashOfConfig":"73"},{"size":648,"mtime":1666901217507,"results":"95","hashOfConfig":"73"},{"size":429,"mtime":1666900225601,"results":"96","hashOfConfig":"73"},{"size":2095,"mtime":1666901217508,"results":"97","hashOfConfig":"73"},{"size":2515,"mtime":1666901217509,"results":"98","hashOfConfig":"73"},{"size":1010,"mtime":1666909377506,"results":"99","hashOfConfig":"73"},{"size":959,"mtime":1666901217510,"results":"100","hashOfConfig":"73"},{"size":1300,"mtime":1666901217511,"results":"101","hashOfConfig":"73"},{"size":530,"mtime":1666901217511,"results":"102","hashOfConfig":"73"},{"size":1145,"mtime":1666901217511,"results":"103","hashOfConfig":"73"},{"size":1607,"mtime":1666909839710,"results":"104","hashOfConfig":"73"},{"size":152,"mtime":1666901217512,"results":"105","hashOfConfig":"73"},{"size":976,"mtime":1666901217513,"results":"106","hashOfConfig":"73"},{"size":1628,"mtime":1666901217513,"results":"107","hashOfConfig":"73"},{"size":777,"mtime":1666901217514,"results":"108","hashOfConfig":"73"},{"size":527,"mtime":1666901217515,"results":"109","hashOfConfig":"73"},{"size":1810,"mtime":1666901217515,"results":"110","hashOfConfig":"73"},{"size":1672,"mtime":1666901217516,"results":"111","hashOfConfig":"73"},{"size":577,"mtime":1666910433646,"results":"112","hashOfConfig":"73"},{"size":859,"mtime":1666909733301,"results":"113","hashOfConfig":"73"},{"size":832,"mtime":1666901217517,"results":"114","hashOfConfig":"73"},{"size":2163,"mtime":1666901217517,"results":"115","hashOfConfig":"73"},{"size":654,"mtime":1666901217496,"results":"116","hashOfConfig":"73"},{"size":982,"mtime":1666910428351,"results":"117","hashOfConfig":"73"},{"size":2106,"mtime":1666901217498,"results":"118","hashOfConfig":"73"},{"size":3443,"mtime":1666905987476,"results":"119","hashOfConfig":"73"},{"size":917,"mtime":1666901217499,"results":"120","hashOfConfig":"73"},{"size":2108,"mtime":1666901217499,"results":"121","hashOfConfig":"73"},{"size":715,"mtime":1666901217501,"results":"122","hashOfConfig":"73"},{"size":460,"mtime":1666901217502,"results":"123","hashOfConfig":"73"},{"size":988,"mtime":1666901217503,"results":"124","hashOfConfig":"73"},{"size":615,"mtime":1666901217504,"results":"125","hashOfConfig":"73"},{"size":557,"mtime":1666901217504,"results":"126","hashOfConfig":"73"},{"size":474,"mtime":1666901217504,"results":"127","hashOfConfig":"73"},{"size":578,"mtime":1666901217506,"results":"128","hashOfConfig":"73"},{"size":1519,"mtime":1666901217507,"results":"129","hashOfConfig":"73"},{"size":502,"mtime":1666901217508,"results":"130","hashOfConfig":"73"},{"size":619,"mtime":1666901217508,"results":"131","hashOfConfig":"73"},{"size":915,"mtime":1666901217508,"results":"132","hashOfConfig":"73"},{"size":1535,"mtime":1666901217509,"results":"133","hashOfConfig":"73"},{"size":993,"mtime":1666910431162,"results":"134","hashOfConfig":"73"},{"size":770,"mtime":1666901217510,"results":"135","hashOfConfig":"73"},{"size":1116,"mtime":1666901217510,"results":"136","hashOfConfig":"73"},{"size":1270,"mtime":1666901217512,"results":"137","hashOfConfig":"73"},{"size":1080,"mtime":1666901217513,"results":"138","hashOfConfig":"73"},{"size":656,"mtime":1666901217514,"results":"139","hashOfConfig":"73"},{"size":671,"mtime":1666902216590,"results":"140","hashOfConfig":"73"},{"size":1681,"mtime":1666902176888,"results":"141","hashOfConfig":"73"},{"size":597,"mtime":1666901217517,"results":"142","hashOfConfig":"73"},{"size":1364,"mtime":1666901217517,"results":"143","hashOfConfig":"73"},{"filePath":"144","messages":"145","suppressedMessages":"146","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"f2rawx",{"filePath":"147","messages":"148","suppressedMessages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"153","messages":"154","suppressedMessages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","suppressedMessages":"158","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","suppressedMessages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","suppressedMessages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","suppressedMessages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","suppressedMessages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","suppressedMessages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","suppressedMessages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","suppressedMessages":"206","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"207","messages":"208","suppressedMessages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","suppressedMessages":"212","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"213","messages":"214","suppressedMessages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","suppressedMessages":"218","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"219","messages":"220","suppressedMessages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","suppressedMessages":"224","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"225","messages":"226","suppressedMessages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","suppressedMessages":"230","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"231","messages":"232","suppressedMessages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","suppressedMessages":"236","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"237","messages":"238","suppressedMessages":"239","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"240","messages":"241","suppressedMessages":"242","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"243","messages":"244","suppressedMessages":"245","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"246","messages":"247","suppressedMessages":"248","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"249","messages":"250","suppressedMessages":"251","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"252","messages":"253","suppressedMessages":"254","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"255","messages":"256","suppressedMessages":"257","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"258","messages":"259","suppressedMessages":"260","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"261","messages":"262","suppressedMessages":"263","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"264","messages":"265","suppressedMessages":"266","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"267","messages":"268","suppressedMessages":"269","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"270","messages":"271","suppressedMessages":"272","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"273","messages":"274","suppressedMessages":"275","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"276","messages":"277","suppressedMessages":"278","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"279","messages":"280","suppressedMessages":"281","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"282","messages":"283","suppressedMessages":"284","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"285","messages":"286","suppressedMessages":"287","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"288","messages":"289","suppressedMessages":"290","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"291","messages":"292","suppressedMessages":"293","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"294","messages":"295","suppressedMessages":"296","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"297","messages":"298","suppressedMessages":"299","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"300","messages":"301","suppressedMessages":"302","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"303","messages":"304","suppressedMessages":"305","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"306","messages":"307","suppressedMessages":"308","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"309","messages":"310","suppressedMessages":"311","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"312","messages":"313","suppressedMessages":"314","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"315","messages":"316","suppressedMessages":"317","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"318","messages":"319","suppressedMessages":"320","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"321","messages":"322","suppressedMessages":"323","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"324","messages":"325","suppressedMessages":"326","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"327","messages":"328","suppressedMessages":"329","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"330","messages":"331","suppressedMessages":"332","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"333","messages":"334","suppressedMessages":"335","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"336","messages":"337","suppressedMessages":"338","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"339","messages":"340","suppressedMessages":"341","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"342","messages":"343","suppressedMessages":"344","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"345","messages":"346","suppressedMessages":"347","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"348","messages":"349","suppressedMessages":"350","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"351","messages":"352","suppressedMessages":"353","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"354","messages":"355","suppressedMessages":"356","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/index.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/transform.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts",[],[]]
|
|
1
|
+
[{"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts":"1","/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts":"2","/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts":"3","/Users/TylorSteinberger/code/tylors/fx/src/combine.ts":"4","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts":"5","/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts":"6","/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts":"7","/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts":"8","/Users/TylorSteinberger/code/tylors/fx/src/delay.ts":"9","/Users/TylorSteinberger/code/tylors/fx/src/during.ts":"10","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts":"11","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts":"12","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts":"13","/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts":"14","/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts":"15","/Users/TylorSteinberger/code/tylors/fx/src/hold.ts":"16","/Users/TylorSteinberger/code/tylors/fx/src/index.ts":"17","/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts":"18","/Users/TylorSteinberger/code/tylors/fx/src/merge.ts":"19","/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts":"20","/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts":"21","/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts":"22","/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts":"23","/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts":"24","/Users/TylorSteinberger/code/tylors/fx/src/provide.ts":"25","/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts":"26","/Users/TylorSteinberger/code/tylors/fx/src/since.ts":"27","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts":"28","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts":"29","/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts":"30","/Users/TylorSteinberger/code/tylors/fx/src/slice.ts":"31","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts":"32","/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts":"33","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts":"34","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts":"35","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts":"36","/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts":"37","/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts":"38","/Users/TylorSteinberger/code/tylors/fx/src/transform.ts":"39","/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts":"40","/Users/TylorSteinberger/code/tylors/fx/src/until.ts":"41","/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts":"42","/Users/TylorSteinberger/code/tylors/fx/src/zip.ts":"43","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts":"44","/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts":"45","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts":"46","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts":"47","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts":"48","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts":"49","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts":"50","/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts":"51","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts":"52","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts":"53","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts":"54","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts":"55","/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts":"56","/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts":"57","/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts":"58","/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts":"59","/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts":"60","/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts":"61","/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts":"62","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts":"63","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts":"64","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts":"65","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts":"66","/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts":"67","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts":"68","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts":"69","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts":"70","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts":"71","/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts":"72"},{"size":1301,"mtime":1666910682244,"results":"73","hashOfConfig":"74"},{"size":2390,"mtime":1666909836963,"results":"75","hashOfConfig":"74"},{"size":919,"mtime":1666901217496,"results":"76","hashOfConfig":"74"},{"size":2060,"mtime":1666901217496,"results":"77","hashOfConfig":"74"},{"size":591,"mtime":1666901217497,"results":"78","hashOfConfig":"74"},{"size":522,"mtime":1666901217497,"results":"79","hashOfConfig":"74"},{"size":1617,"mtime":1666901217497,"results":"80","hashOfConfig":"74"},{"size":701,"mtime":1666901217498,"results":"81","hashOfConfig":"74"},{"size":557,"mtime":1666909013033,"results":"82","hashOfConfig":"74"},{"size":1674,"mtime":1666909765898,"results":"83","hashOfConfig":"74"},{"size":1506,"mtime":1666901217500,"results":"84","hashOfConfig":"74"},{"size":1186,"mtime":1666902358042,"results":"85","hashOfConfig":"74"},{"size":706,"mtime":1666906589152,"results":"86","hashOfConfig":"74"},{"size":3805,"mtime":1666901217501,"results":"87","hashOfConfig":"74"},{"size":1443,"mtime":1666901217502,"results":"88","hashOfConfig":"74"},{"size":3436,"mtime":1667237790531,"results":"89","hashOfConfig":"74"},{"size":1244,"mtime":1667238226241,"results":"90","hashOfConfig":"74"},{"size":530,"mtime":1666901217504,"results":"91","hashOfConfig":"74"},{"size":977,"mtime":1666901217505,"results":"92","hashOfConfig":"74"},{"size":1293,"mtime":1666901217505,"results":"93","hashOfConfig":"74"},{"size":3290,"mtime":1666909109055,"results":"94","hashOfConfig":"74"},{"size":1034,"mtime":1666901391894,"results":"95","hashOfConfig":"74"},{"size":648,"mtime":1666901217507,"results":"96","hashOfConfig":"74"},{"size":429,"mtime":1666900225601,"results":"97","hashOfConfig":"74"},{"size":2095,"mtime":1666901217508,"results":"98","hashOfConfig":"74"},{"size":2515,"mtime":1666901217509,"results":"99","hashOfConfig":"74"},{"size":1010,"mtime":1666909377506,"results":"100","hashOfConfig":"74"},{"size":959,"mtime":1666901217510,"results":"101","hashOfConfig":"74"},{"size":1300,"mtime":1666901217511,"results":"102","hashOfConfig":"74"},{"size":530,"mtime":1666901217511,"results":"103","hashOfConfig":"74"},{"size":1145,"mtime":1666901217511,"results":"104","hashOfConfig":"74"},{"size":1607,"mtime":1666909839710,"results":"105","hashOfConfig":"74"},{"size":152,"mtime":1666901217512,"results":"106","hashOfConfig":"74"},{"size":976,"mtime":1666901217513,"results":"107","hashOfConfig":"74"},{"size":1628,"mtime":1666901217513,"results":"108","hashOfConfig":"74"},{"size":777,"mtime":1666901217514,"results":"109","hashOfConfig":"74"},{"size":527,"mtime":1666901217515,"results":"110","hashOfConfig":"74"},{"size":1810,"mtime":1666901217515,"results":"111","hashOfConfig":"74"},{"size":1672,"mtime":1666901217516,"results":"112","hashOfConfig":"74"},{"size":577,"mtime":1666910433646,"results":"113","hashOfConfig":"74"},{"size":859,"mtime":1666909733301,"results":"114","hashOfConfig":"74"},{"size":832,"mtime":1666901217517,"results":"115","hashOfConfig":"74"},{"size":2163,"mtime":1666901217517,"results":"116","hashOfConfig":"74"},{"size":654,"mtime":1666901217496,"results":"117","hashOfConfig":"74"},{"size":1195,"mtime":1666923294384,"results":"118","hashOfConfig":"74"},{"size":2106,"mtime":1666901217498,"results":"119","hashOfConfig":"74"},{"size":3443,"mtime":1666905987476,"results":"120","hashOfConfig":"74"},{"size":917,"mtime":1666901217499,"results":"121","hashOfConfig":"74"},{"size":2108,"mtime":1666901217499,"results":"122","hashOfConfig":"74"},{"size":715,"mtime":1666901217501,"results":"123","hashOfConfig":"74"},{"size":460,"mtime":1666901217502,"results":"124","hashOfConfig":"74"},{"size":988,"mtime":1666901217503,"results":"125","hashOfConfig":"74"},{"size":615,"mtime":1666901217504,"results":"126","hashOfConfig":"74"},{"size":557,"mtime":1666901217504,"results":"127","hashOfConfig":"74"},{"size":474,"mtime":1666901217504,"results":"128","hashOfConfig":"74"},{"size":578,"mtime":1666901217506,"results":"129","hashOfConfig":"74"},{"size":1519,"mtime":1666901217507,"results":"130","hashOfConfig":"74"},{"size":502,"mtime":1666901217508,"results":"131","hashOfConfig":"74"},{"size":619,"mtime":1666901217508,"results":"132","hashOfConfig":"74"},{"size":915,"mtime":1666901217508,"results":"133","hashOfConfig":"74"},{"size":1535,"mtime":1666901217509,"results":"134","hashOfConfig":"74"},{"size":1202,"mtime":1666923495584,"results":"135","hashOfConfig":"74"},{"size":770,"mtime":1666901217510,"results":"136","hashOfConfig":"74"},{"size":1116,"mtime":1666901217510,"results":"137","hashOfConfig":"74"},{"size":1270,"mtime":1666901217512,"results":"138","hashOfConfig":"74"},{"size":1080,"mtime":1666901217513,"results":"139","hashOfConfig":"74"},{"size":656,"mtime":1666901217514,"results":"140","hashOfConfig":"74"},{"size":671,"mtime":1666902216590,"results":"141","hashOfConfig":"74"},{"size":1681,"mtime":1666902176888,"results":"142","hashOfConfig":"74"},{"size":597,"mtime":1666901217517,"results":"143","hashOfConfig":"74"},{"size":1364,"mtime":1666901217517,"results":"144","hashOfConfig":"74"},{"size":1546,"mtime":1667238121584,"results":"145","hashOfConfig":"74"},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1338ja8",{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"227","messages":"228","suppressedMessages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","suppressedMessages":"232","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"233","messages":"234","suppressedMessages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","suppressedMessages":"238","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"239","messages":"240","suppressedMessages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","suppressedMessages":"244","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"245","messages":"246","suppressedMessages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","suppressedMessages":"250","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"251","messages":"252","suppressedMessages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","suppressedMessages":"256","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"257","messages":"258","suppressedMessages":"259","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"260","messages":"261","suppressedMessages":"262","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"263","messages":"264","suppressedMessages":"265","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"266","messages":"267","suppressedMessages":"268","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"269","messages":"270","suppressedMessages":"271","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"272","messages":"273","suppressedMessages":"274","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"275","messages":"276","suppressedMessages":"277","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"278","messages":"279","suppressedMessages":"280","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"281","messages":"282","suppressedMessages":"283","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"284","messages":"285","suppressedMessages":"286","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"287","messages":"288","suppressedMessages":"289","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"290","messages":"291","suppressedMessages":"292","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"293","messages":"294","suppressedMessages":"295","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"296","messages":"297","suppressedMessages":"298","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"299","messages":"300","suppressedMessages":"301","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"302","messages":"303","suppressedMessages":"304","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"305","messages":"306","suppressedMessages":"307","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"308","messages":"309","suppressedMessages":"310","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"311","messages":"312","suppressedMessages":"313","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"314","messages":"315","suppressedMessages":"316","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"317","messages":"318","suppressedMessages":"319","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"320","messages":"321","suppressedMessages":"322","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"323","messages":"324","suppressedMessages":"325","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"326","messages":"327","suppressedMessages":"328","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"329","messages":"330","suppressedMessages":"331","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"332","messages":"333","suppressedMessages":"334","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"335","messages":"336","suppressedMessages":"337","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"338","messages":"339","suppressedMessages":"340","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"341","messages":"342","suppressedMessages":"343","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"344","messages":"345","suppressedMessages":"346","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"347","messages":"348","suppressedMessages":"349","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"350","messages":"351","suppressedMessages":"352","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"353","messages":"354","suppressedMessages":"355","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"356","messages":"357","suppressedMessages":"358","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"359","messages":"360","suppressedMessages":"361","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/index.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/transform.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts",[],["362"],{"ruleId":"363","severity":2,"message":"364","line":35,"column":5,"nodeType":"365","messageId":"366","endLine":35,"endColumn":24,"suppressions":"367"},"@typescript-eslint/ban-ts-comment","Include a description after the \"@ts-expect-error\" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer.","Line","tsDirectiveCommentRequiresDescription",["368"],{"kind":"369","justification":"370"},"directive",""]
|
package/cjs/Fx.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { Cause } from '@effect/core/io/Cause';
|
|
2
2
|
import * as Effect from '@effect/core/io/Effect';
|
|
3
3
|
import { Scope } from '@effect/core/io/Scope';
|
|
4
|
-
/**
|
|
5
|
-
* TODOS:
|
|
6
|
-
* until
|
|
7
|
-
* since
|
|
8
|
-
* during
|
|
9
|
-
*/
|
|
10
4
|
export interface Fx<R, E, A> {
|
|
11
5
|
run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown>;
|
|
12
6
|
}
|
package/cjs/Fx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fx.d.ts","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAE7C
|
|
1
|
+
{"version":3,"file":"Fx.d.ts","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAE7C,MAAM,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACzB,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;CACnF;AAED,wBAAgB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAIhE;AAED,yBAAiB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ED,yBAAiB,OAAO,CAAC;IACvB,KAAY,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IAC7E,KAAY,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IAC1E,KAAY,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;CAC3E"}
|
package/cjs/Fx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fx.js","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Fx.js","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":";;;AAQA,SAAgB,EAAE,CAAU,GAAuB;IACjD,OAAO;QACL,GAAG;KACJ,CAAA;AACH,CAAC;AAJD,gBAIC;AAcD,SAAgB,OAAO,CACrB,IAA8B,EAC9B,SAAwC,EACxC,GAA4B;IAE5B,OAAO;QACL,IAAI;QACJ,SAAS;QACT,GAAG;KACJ,CAAA;AACH,CAAC;AAVD,0BAUC"}
|
package/cjs/Subject.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Effect from '@effect/core/io/Effect';
|
|
2
|
+
import * as Maybe from '@tsplus/stdlib/data/Maybe';
|
|
3
|
+
import { LazyArg } from 'node_modules/@tsplus/stdlib/data/Function.js';
|
|
4
|
+
import { Emitter, Fx } from './Fx.js';
|
|
5
|
+
export interface Subject<E, A> extends Emitter<never, E, A>, Fx<never, E, A> {
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Subject {
|
|
8
|
+
const unsafeMake: <E, A>() => Subject<E, A>;
|
|
9
|
+
}
|
|
10
|
+
export interface HoldSubject<E, A> extends Subject<E, A> {
|
|
11
|
+
readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace HoldSubject {
|
|
14
|
+
const unsafeMake: <E, A>() => HoldSubject<E, A>;
|
|
15
|
+
}
|
|
16
|
+
export interface BehaviorSubject<E, A> extends Subject<E, A> {
|
|
17
|
+
readonly get: Effect.Effect<never, never, A>;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace BehaviorSubject {
|
|
20
|
+
const unsafeMake: <E, A>(initial: LazyArg<A>) => BehaviorSubject<E, A>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=Subject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subject.d.ts","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAA;AAEtE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAKrC,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;CAAG;AAE/E,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,2BAA+D,CAAA;CACvF;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;CAC1D;AAED,yBAAiB,WAAW,CAAC;IACpB,MAAM,UAAU,+BAA8D,CAAA;CACtF;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;CAC7C;AAED,yBAAiB,eAAe,CAAC;IACxB,MAAM,UAAU,sDAetB,CAAA;CACF"}
|
package/cjs/Subject.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.BehaviorSubject = exports.HoldSubject = exports.Subject = void 0;
|
|
27
|
+
const Effect = __importStar(require("@effect/core/io/Effect"));
|
|
28
|
+
const Maybe = __importStar(require("@tsplus/stdlib/data/Maybe"));
|
|
29
|
+
const Function_js_1 = require("node_modules/@fp-ts/data/Function.js");
|
|
30
|
+
const fromEffect_js_1 = require("./fromEffect.js");
|
|
31
|
+
const hold_js_1 = require("./hold.js");
|
|
32
|
+
const multicast_js_1 = require("./multicast.js");
|
|
33
|
+
var Subject;
|
|
34
|
+
(function (Subject) {
|
|
35
|
+
Subject.unsafeMake = () => new multicast_js_1.Multicast(fromEffect_js_1.never);
|
|
36
|
+
})(Subject = exports.Subject || (exports.Subject = {}));
|
|
37
|
+
var HoldSubject;
|
|
38
|
+
(function (HoldSubject) {
|
|
39
|
+
HoldSubject.unsafeMake = () => new hold_js_1.Hold(fromEffect_js_1.never);
|
|
40
|
+
})(HoldSubject = exports.HoldSubject || (exports.HoldSubject = {}));
|
|
41
|
+
var BehaviorSubject;
|
|
42
|
+
(function (BehaviorSubject) {
|
|
43
|
+
BehaviorSubject.unsafeMake = (initial) => {
|
|
44
|
+
const hold = new hold_js_1.Hold(fromEffect_js_1.never);
|
|
45
|
+
// We're mutating a protected variable here to ensure an initial value is held.
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
hold._value = Maybe.some(initial());
|
|
49
|
+
return {
|
|
50
|
+
emit: hold.emit.bind(hold),
|
|
51
|
+
failCause: hold.failCause.bind(hold),
|
|
52
|
+
end: hold.end,
|
|
53
|
+
run: hold.run.bind(hold),
|
|
54
|
+
get: (0, Function_js_1.pipe)(hold.get, Effect.map(Maybe.getOrElse(initial))),
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
})(BehaviorSubject = exports.BehaviorSubject || (exports.BehaviorSubject = {}));
|
|
58
|
+
//# sourceMappingURL=Subject.js.map
|
|
@@ -0,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AAA;IACH,CAAC,CAAA;AACH,CAAC,EAjBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAiB/B"}
|
package/cjs/hold.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class Hold<R, E, A> extends Multicast<R, E, A> {
|
|
|
12
12
|
protected _pendingEmitters: Array<readonly [Emitter<unknown, E, A>, A[]]>;
|
|
13
13
|
protected _scheduledFiber: Fiber.RealFiber<any, any> | undefined;
|
|
14
14
|
constructor(fx: Fx<R, E, A>);
|
|
15
|
+
readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
|
|
15
16
|
run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown>;
|
|
16
17
|
emit(value: A): Effect.Effect<never, never, void>;
|
|
17
18
|
failCause(cause: Cause<E>): Effect.Effect<never, never, void>;
|
package/cjs/hold.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hold.d.ts","sourceRoot":"","sources":["../src/hold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAG7C,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE7D,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAE1D;AAED,qBAAa,IAAI,CAAC,CAAC,EAAE,C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,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;IAWlF,IAAI,CAAC,KAAK,EAAE,CAAC;IAWb,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IASzB,IAAI,GAAG,sCAON;IAED,SAAS,CAAC,mBAAmB;IAI7B,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IA6BrD,SAAS,CAAC,YAAY;IAsBtB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IAQ3B,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;CAG7F"}
|
package/cjs/hold.js
CHANGED
|
@@ -43,6 +43,7 @@ class Hold extends multicast_js_1.Multicast {
|
|
|
43
43
|
super(fx);
|
|
44
44
|
this.fx = fx;
|
|
45
45
|
}
|
|
46
|
+
get = Effect.sync(() => this._value);
|
|
46
47
|
run(emitter) {
|
|
47
48
|
if (this.shouldScheduleFlush()) {
|
|
48
49
|
return (0, Function_1.pipe)(this.scheduleFlush(emitter), Effect.flatMap(() => super.run(emitter)));
|
package/cjs/hold.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hold.js","sourceRoot":"","sources":["../src/hold.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAgD;AAEhD,iEAAkD;AAElD,mDAA2C;AAC3C,uEAAwD;AACxD,iEAAkD;AAGlD,iDAA6D;AAE7D,SAAgB,IAAI,CAAU,EAAe;IAC3C,OAAO,IAAI,IAAI,CAAC,EAAE,CA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AQ;QACzB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAE/B,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACJ,CAAC;IAES,YAAY,CAAC,OAA+B;QACpD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAA;IAC1D,CAAC;CACF;AArHD,oBAqHC"}
|
package/cjs/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './skipRepeats.js';
|
|
|
28
28
|
export * from './skipWhile.js';
|
|
29
29
|
export * from './slice.js';
|
|
30
30
|
export * from './snapshot.js';
|
|
31
|
+
export * from './Subject.js';
|
|
31
32
|
export * from './suspendSucceed.js';
|
|
32
33
|
export * from './switchMap.js';
|
|
33
34
|
export * from './takeWhile.js';
|
package/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gB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,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
package/cjs/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./skipRepeats.js"), exports);
|
|
|
44
44
|
__exportStar(require("./skipWhile.js"), exports);
|
|
45
45
|
__exportStar(require("./slice.js"), exports);
|
|
46
46
|
__exportStar(require("./snapshot.js"), exports);
|
|
47
|
+
__exportStar(require("./Subject.js"), exports);
|
|
47
48
|
__exportStar(require("./suspendSucceed.js"), exports);
|
|
48
49
|
__exportStar(require("./switchMap.js"), exports);
|
|
49
50
|
__exportStar(require("./takeWhile.js"), exports);
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,6CAA0B;AAC1B,8CAA2B;AAC3B,kDAA+B;AAC/B,iDAA8B;AAC9B,+CAA4B;AAC5B,2DAAwC;AACxC,kDAA+B;AAC/B,oDAAiC;AACjC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,8CAA2B;AAC3B,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,gDAA6B;AAC7B,kDAA+B;AAC/B,iDAA8B;AAC9B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,iDAA8B;AAC9B,6CAA0B;AAC1B,gDAA6B;AAC7B,sDAAmC;AACnC,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,2CAAwB;AACxB,mDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,6CAA0B;AAC1B,8CAA2B;AAC3B,kDAA+B;AAC/B,iDAA8B;AAC9B,+CAA4B;AAC5B,2DAAwC;AACxC,kDAA+B;AAC/B,oDAAiC;AACjC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,8CAA2B;AAC3B,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,gDAA6B;AAC7B,kDAA+B;AAC/B,iDAA8B;AAC9B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,iDAA8B;AAC9B,6CAA0B;AAC1B,gDAA6B;AAC7B,+CAA4B;AAC5B,sDAAmC;AACnC,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,2CAAwB;AACxB,mDAAgC"}
|
package/esm/Fx.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { Cause } from '@effect/core/io/Cause';
|
|
2
2
|
import * as Effect from '@effect/core/io/Effect';
|
|
3
3
|
import { Scope } from '@effect/core/io/Scope';
|
|
4
|
-
/**
|
|
5
|
-
* TODOS:
|
|
6
|
-
* until
|
|
7
|
-
* since
|
|
8
|
-
* during
|
|
9
|
-
*/
|
|
10
4
|
export interface Fx<R, E, A> {
|
|
11
5
|
run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown>;
|
|
12
6
|
}
|
package/esm/Fx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fx.d.ts","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAE7C
|
|
1
|
+
{"version":3,"file":"Fx.d.ts","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAE7C,MAAM,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACzB,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;CACnF;AAED,wBAAgB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAIhE;AAED,yBAAiB,EAAE,CA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,OAAO,CAAC;IACvB,KAAY,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IAC7E,KAAY,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IAC1E,KAAY,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;CAC3E"}
|
package/esm/Fx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fx.js","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Fx.js","sourceRoot":"","sources":["../src/Fx.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,EAAE,CAAU,GAAuB;IACjD,OAAO;QACL,GAAG;KACJ,CAAA;AACH,CAAC;AAcD,MAAM,UAAU,OAAO,CACrB,IAA8B,EAC9B,SAAwC,EACxC,GAA4B;IAE5B,OAAO;QACL,IAAI;QACJ,SAAS;QACT,GAAG;KACJ,CAAA;AACH,CAAC"}
|
package/esm/Subject.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Effect from '@effect/core/io/Effect';
|
|
2
|
+
import * as Maybe from '@tsplus/stdlib/data/Maybe';
|
|
3
|
+
import { LazyArg } from 'node_modules/@tsplus/stdlib/data/Function.js';
|
|
4
|
+
import { Emitter, Fx } from './Fx.js';
|
|
5
|
+
export interface Subject<E, A> extends Emitter<never, E, A>, Fx<never, E, A> {
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Subject {
|
|
8
|
+
const unsafeMake: <E, A>() => Subject<E, A>;
|
|
9
|
+
}
|
|
10
|
+
export interface HoldSubject<E, A> extends Subject<E, A> {
|
|
11
|
+
readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace HoldSubject {
|
|
14
|
+
const unsafeMake: <E, A>() => HoldSubject<E, A>;
|
|
15
|
+
}
|
|
16
|
+
export interface BehaviorSubject<E, A> extends Subject<E, A> {
|
|
17
|
+
readonly get: Effect.Effect<never, never, A>;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace BehaviorSubject {
|
|
20
|
+
const unsafeMake: <E, A>(initial: LazyArg<A>) => BehaviorSubject<E, A>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=Subject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subject.d.ts","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAA;AAEtE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAKrC,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;CAAG;AAE/E,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,2BAA+D,CAAA;CACvF;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;CAC1D;AAED,yBAAiB,WAAW,CAAC;IACpB,MAAM,UAAU,+BAA8D,CAAA;CACtF;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;CAC7C;AAED,yBAAiB,eAAe,CAAC;IACxB,MAAM,UAAU,sDAetB,CAAA;CACF"}
|
package/esm/Subject.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Effect from '@effect/core/io/Effect';
|
|
2
|
+
import * as Maybe from '@tsplus/stdlib/data/Maybe';
|
|
3
|
+
import { pipe } from 'node_modules/@fp-ts/data/Function.js';
|
|
4
|
+
import { never } from './fromEffect.js';
|
|
5
|
+
import { Hold } from './hold.js';
|
|
6
|
+
import { Multicast } from './multicast.js';
|
|
7
|
+
export var Subject;
|
|
8
|
+
(function (Subject) {
|
|
9
|
+
Subject.unsafeMake = () => new Multicast(never);
|
|
10
|
+
})(Subject || (Subject = {}));
|
|
11
|
+
export var HoldSubject;
|
|
12
|
+
(function (HoldSubject) {
|
|
13
|
+
HoldSubject.unsafeMake = () => new Hold(never);
|
|
14
|
+
})(HoldSubject || (HoldSubject = {}));
|
|
15
|
+
export var BehaviorSubject;
|
|
16
|
+
(function (BehaviorSubject) {
|
|
17
|
+
BehaviorSubject.unsafeMake = (initial) => {
|
|
18
|
+
const hold = new Hold(never);
|
|
19
|
+
// We're mutating a protected variable here to ensure an initial value is held.
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
hold._value = Maybe.some(initial());
|
|
23
|
+
return {
|
|
24
|
+
emit: hold.emit.bind(hold),
|
|
25
|
+
failCause: hold.failCause.bind(hold),
|
|
26
|
+
end: hold.end,
|
|
27
|
+
run: hold.run.bind(hold),
|
|
28
|
+
get: pipe(hold.get, Effect.map(Maybe.getOrElse(initial))),
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
})(BehaviorSubject || (BehaviorSubject = {}));
|
|
32
|
+
//# sourceMappingURL=Subject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAA;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI1C,MAAM,KAAW,OAAO,CAEvB;AAFD,WAAiB,OAAO;IACT,kBAAU,GAAG,GAAwB,EAAE,CAAC,IAAI,SAAS,CAAc,KAAK,CAAC,CAAA;AACxF,CAAC,EAFgB,OAAO,KAAP,OAAO,QAEvB;AAMD,MAAM,KAAW,WAAW,CAE3B;AAFD,WAAiB,WAAW;IACb,sBAAU,GAAG,GAA4B,EAAE,CAAC,IAAI,IAAI,CAAc,KAAK,CAAC,CAAA;AACvF,CAAC,EAFgB,WAAW,KAAX,WAAW,QAE3B;AAMD,MAAM,KAAW,eAAe,CAiB/B;AAjBD,WAAiB,eAAe;IACjB,0BAAU,GAAG,CAAO,OAAmB,EAAyB,EAAE;QAC7E,MAAM,IAAI,GAAG,IAAI,IAAI,CAAc,KAAK,CAAC,CAAA;QAEzC,+EAA+E;QAC/E,6DAA6D;QAC7D,mBAAmB;QACnB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA;QAEnC,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YAC1B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YACpC,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;YACxB,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;SAC1D,CAAA;IACH,CAAC,CAAA;AACH,CAAC,EAjBgB,eAAe,KAAf,eAAe,QAiB/B"}
|
package/esm/hold.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class Hold<R, E, A> extends Multicast<R, E, A> {
|
|
|
12
12
|
protected _pendingEmitters: Array<readonly [Emitter<unknown, E, A>, A[]]>;
|
|
13
13
|
protected _scheduledFiber: Fiber.RealFiber<any, any> | undefined;
|
|
14
14
|
constructor(fx: Fx<R, E, A>);
|
|
15
|
+
readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
|
|
15
16
|
run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown>;
|
|
16
17
|
emit(value: A): Effect.Effect<never, never, void>;
|
|
17
18
|
failCause(cause: Cause<E>): Effect.Effect<never, never, void>;
|
package/esm/hold.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hold.d.ts","sourceRoot":"","sources":["../src/hold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAG7C,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,SAAS,EA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CAAA;YAE3C,IAAI,CAAC,QAAQ,EAAE;gBACb,OAAO,MAAM,CAAC,IAAI,CAAA;aACnB;YAED,OAAO,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;QACjF,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAES,QAAQ,CAAC,KAAQ;QACzB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAE/B,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACJ,CAAC;IAES,YAAY,CAAC,OAA+B;QACpD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAA;IAC1D,CAAC;CACF"}
|
package/esm/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './skipRepeats.js';
|
|
|
28
28
|
export * from './skipWhile.js';
|
|
29
29
|
export * from './slice.js';
|
|
30
30
|
export * from './snapshot.js';
|
|
31
|
+
export * from './Subject.js';
|
|
31
32
|
export * from './suspendSucceed.js';
|
|
32
33
|
export * from './switchMap.js';
|
|
33
34
|
export * from './takeWhile.js';
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc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mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
package/esm/index.js
CHANGED
|
@@ -28,6 +28,7 @@ export * from './skipRepeats.js';
|
|
|
28
28
|
export * from './skipWhile.js';
|
|
29
29
|
export * from './slice.js';
|
|
30
30
|
export * from './snapshot.js';
|
|
31
|
+
export * from './Subject.js';
|
|
31
32
|
export * from './suspendSucceed.js';
|
|
32
33
|
export * from './switchMap.js';
|
|
33
34
|
export * from './takeWhile.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,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AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed/fx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "High-performance Asynchronous Effects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "esm/index.js",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"concurrently": "^7.3.0",
|
|
66
66
|
"eslint": "^8.22.0",
|
|
67
67
|
"eslint-config-prettier": "^8.5.0",
|
|
68
|
-
"eslint-import-resolver-custom-alias": "^1.3.0",
|
|
69
68
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
70
69
|
"eslint-plugin-import": "^2.26.0",
|
|
71
70
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -107,6 +106,16 @@
|
|
|
107
106
|
"types": "./esm/Fx.d.ts"
|
|
108
107
|
}
|
|
109
108
|
},
|
|
109
|
+
"./Subject": {
|
|
110
|
+
"require": {
|
|
111
|
+
"default": "./cjs/Subject.js",
|
|
112
|
+
"types": "./cjs/Subject.d.ts"
|
|
113
|
+
},
|
|
114
|
+
"import": {
|
|
115
|
+
"default": "./esm/Subject.js",
|
|
116
|
+
"types": "./esm/Subject.d.ts"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
110
119
|
"./_internal": {
|
|
111
120
|
"require": {
|
|
112
121
|
"default": "./cjs/_internal.js",
|
package/src/Fx.ts
CHANGED
|
@@ -2,13 +2,6 @@ import { Cause } from '@effect/core/io/Cause'
|
|
|
2
2
|
import * as Effect from '@effect/core/io/Effect'
|
|
3
3
|
import { Scope } from '@effect/core/io/Scope'
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* TODOS:
|
|
7
|
-
* until
|
|
8
|
-
* since
|
|
9
|
-
* during
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
5
|
export interface Fx<R, E, A> {
|
|
13
6
|
run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown>
|
|
14
7
|
}
|
package/src/Subject.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Effect from '@effect/core/io/Effect'
|
|
2
|
+
import * as Maybe from '@tsplus/stdlib/data/Maybe'
|
|
3
|
+
import { pipe } from 'node_modules/@fp-ts/data/Function.js'
|
|
4
|
+
import { LazyArg } from 'node_modules/@tsplus/stdlib/data/Function.js'
|
|
5
|
+
|
|
6
|
+
import { Emitter, Fx } from './Fx.js'
|
|
7
|
+
import { never } from './fromEffect.js'
|
|
8
|
+
import { Hold } from './hold.js'
|
|
9
|
+
import { Multicast } from './multicast.js'
|
|
10
|
+
|
|
11
|
+
export interface Subject<E, A> extends Emitter<never, E, A>, Fx<never, E, A> {}
|
|
12
|
+
|
|
13
|
+
export namespace Subject {
|
|
14
|
+
export const unsafeMake = <E, A>(): Subject<E, A> => new Multicast<never, E, A>(never)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface HoldSubject<E, A> extends Subject<E, A> {
|
|
18
|
+
readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace HoldSubject {
|
|
22
|
+
export const unsafeMake = <E, A>(): HoldSubject<E, A> => new Hold<never, E, A>(never)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface BehaviorSubject<E, A> extends Subject<E, A> {
|
|
26
|
+
readonly get: Effect.Effect<never, never, A>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace BehaviorSubject {
|
|
30
|
+
export const unsafeMake = <E, A>(initial: LazyArg<A>): BehaviorSubject<E, A> => {
|
|
31
|
+
const hold = new Hold<never, E, A>(never)
|
|
32
|
+
|
|
33
|
+
// We're mutating a protected variable here to ensure an initial value is held.
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
35
|
+
// @ts-expect-error
|
|
36
|
+
hold._value = Maybe.some(initial())
|
|
37
|
+
|
|
38
|
+
return {
|
|
39
|
+
emit: hold.emit.bind(hold),
|
|
40
|
+
failCause: hold.failCause.bind(hold),
|
|
41
|
+
end: hold.end,
|
|
42
|
+
run: hold.run.bind(hold),
|
|
43
|
+
get: pipe(hold.get, Effect.map(Maybe.getOrElse(initial))),
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/src/during.test.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { deepStrictEqual } from 'assert'
|
|
2
2
|
|
|
3
3
|
import * as Effect from '@effect/core/io/Effect'
|
|
4
|
+
import * as Fiber from '@effect/core/io/Fiber'
|
|
5
|
+
import * as TestClock from '@effect/core/testing/TestClock'
|
|
6
|
+
import { TestEnvironment } from '@effect/core/testing/TestEnvironment'
|
|
4
7
|
import { pipe } from '@fp-ts/data/Function'
|
|
5
8
|
import { millis } from '@tsplus/stdlib/data/Duration'
|
|
6
9
|
|
|
@@ -9,22 +12,28 @@ import * as Fx from './index.js'
|
|
|
9
12
|
describe(import.meta.url, () => {
|
|
10
13
|
describe(Fx.during.name, () => {
|
|
11
14
|
it('runs a stream during a signal is emitted to stop', async () => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const sut = Effect.gen(function* ($) {
|
|
16
|
+
const fiber = yield* $(
|
|
17
|
+
pipe(
|
|
18
|
+
Fx.periodic(millis(10)),
|
|
19
|
+
Fx.scan(0, (x) => x + 1),
|
|
20
|
+
Fx.during(Fx.at(millis(50))(Fx.at(millis(50))(null))),
|
|
21
|
+
Fx.runCollect,
|
|
22
|
+
Effect.fork,
|
|
23
|
+
),
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
for (let i = 0; i < 10; i++) {
|
|
27
|
+
yield* $(TestClock.adjust(millis(10)))
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return yield* $(Fiber.join(fiber))
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const test = pipe(sut, Effect.provideLayer(TestEnvironment))
|
|
18
34
|
const events = await Effect.unsafeRunPromise(test)
|
|
19
35
|
|
|
20
|
-
|
|
21
|
-
// so we first test what we actually expect, and if that fails, test that it worked, but
|
|
22
|
-
// the timing was slightly off.
|
|
23
|
-
try {
|
|
24
|
-
deepStrictEqual(events, [5, 6, 7, 8, 9])
|
|
25
|
-
} catch (e) {
|
|
26
|
-
deepStrictEqual(events, [5, 6, 7, 8])
|
|
27
|
-
}
|
|
36
|
+
deepStrictEqual(events, [6, 7, 8, 9, 10])
|
|
28
37
|
})
|
|
29
38
|
})
|
|
30
39
|
})
|
package/src/hold.ts
CHANGED
|
@@ -23,6 +23,8 @@ export class Hold<R, E, A> extends Multicast<R, E, A> {
|
|
|
23
23
|
super(fx)
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
readonly get = Effect.sync(() => this._value)
|
|
27
|
+
|
|
26
28
|
run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown> {
|
|
27
29
|
if (this.shouldScheduleFlush()) {
|
|
28
30
|
return pipe(
|
package/src/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './skipRepeats.js'
|
|
|
28
28
|
export * from './skipWhile.js'
|
|
29
29
|
export * from './slice.js'
|
|
30
30
|
export * from './snapshot.js'
|
|
31
|
+
export * from './Subject.js'
|
|
31
32
|
export * from './suspendSucceed.js'
|
|
32
33
|
export * from './switchMap.js'
|
|
33
34
|
export * from './takeWhile.js'
|
package/src/since.test.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { deepStrictEqual } from 'assert'
|
|
2
2
|
|
|
3
3
|
import * as Effect from '@effect/core/io/Effect'
|
|
4
|
+
import * as Fiber from '@effect/core/io/Fiber'
|
|
5
|
+
import * as TestClock from '@effect/core/testing/TestClock'
|
|
6
|
+
import { TestEnvironment } from '@effect/core/testing/TestEnvironment'
|
|
4
7
|
import { pipe } from '@fp-ts/data/Function'
|
|
5
8
|
import { millis } from '@tsplus/stdlib/data/Duration'
|
|
6
9
|
|
|
@@ -9,23 +12,29 @@ import * as Fx from './index.js'
|
|
|
9
12
|
describe(import.meta.url, () => {
|
|
10
13
|
describe(Fx.since.name, () => {
|
|
11
14
|
it('runs a stream since a signal is emitted to stop', async () => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const sut = Effect.gen(function* ($) {
|
|
16
|
+
const fiber = yield* $(
|
|
17
|
+
pipe(
|
|
18
|
+
Fx.periodic(millis(10)),
|
|
19
|
+
Fx.scan(0, (x) => x + 1),
|
|
20
|
+
Fx.since(Fx.at(millis(100))(null)),
|
|
21
|
+
Fx.take(5),
|
|
22
|
+
Fx.runCollect,
|
|
23
|
+
Effect.fork,
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
for (let i = 0; i < 15; i++) {
|
|
28
|
+
yield* $(TestClock.adjust(millis(10)))
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return yield* $(Fiber.join(fiber))
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const test = pipe(sut, Effect.provideLayer(TestEnvironment))
|
|
19
35
|
const events = await Effect.unsafeRunPromise(test)
|
|
20
36
|
|
|
21
|
-
|
|
22
|
-
// so we first test what we actually expect, and if that fails, test that it worked, but
|
|
23
|
-
// the timing was slightly off.
|
|
24
|
-
try {
|
|
25
|
-
deepStrictEqual(events, [10, 11, 12, 13, 14])
|
|
26
|
-
} catch (e) {
|
|
27
|
-
deepStrictEqual(events, [9, 10, 11, 12, 13])
|
|
28
|
-
}
|
|
37
|
+
deepStrictEqual(events, [11, 12, 13, 14, 15])
|
|
29
38
|
})
|
|
30
39
|
})
|
|
31
40
|
})
|