@plohoj/html-editor 0.1.0 → 0.1.1

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/dist/index.js CHANGED
@@ -352,7 +352,7 @@ function mergeMapByCondition(conditionOrOptions, project, options) {
352
352
  return source$ => source$.pipe(map(source => ({ source, isConditionPassed: conditionFn(source) })), connect(connectedSource$ => {
353
353
  let takeUntil$;
354
354
  if (takeUntilOption === 'fail') {
355
- takeUntil$ = connectedSource$.pipe(filter(({ isConditionPassed }) => isConditionPassed));
355
+ takeUntil$ = connectedSource$.pipe(filter(({ isConditionPassed }) => !isConditionPassed));
356
356
  }
357
357
  else if (takeUntilOption === 'pass') {
358
358
  let wasFailed = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plohoj/html-editor",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "html-editor it's a tool for helping modification html elements",
5
5
  "repository": {
6
6
  "type": "git",
@@ -76,7 +76,7 @@ export function mergeMapByCondition<I, O>(
76
76
  let takeUntil$: Observable<unknown> | undefined;
77
77
  if (takeUntilOption === 'fail') {
78
78
  takeUntil$ = connectedSource$.pipe(
79
- filter(({ isConditionPassed }) => isConditionPassed)
79
+ filter(({ isConditionPassed }) => !isConditionPassed)
80
80
  );
81
81
  } else if (takeUntilOption === 'pass') {
82
82
  let wasFailed = false