@equinor/fusion-framework-module-context
Advanced tools
Comparing version 2.0.6 to 2.0.7-beta.0
@@ -15,2 +15,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
import { catchError, map } from 'rxjs/operators'; | ||
import equal from 'fast-deep-equal'; | ||
import { Query } from '@equinor/fusion-query'; | ||
@@ -38,5 +39,5 @@ export class ContextClient extends Observable { | ||
.pipe(catchError(() => EMPTY)) | ||
.subscribe((value) => __classPrivateFieldGet(this, _ContextClient_currentContext$, "f").next(value)); | ||
.subscribe((value) => this.setCurrentContext(value)); | ||
} | ||
else if (idOrItem !== __classPrivateFieldGet(this, _ContextClient_currentContext$, "f").value) { | ||
else if (!equal(idOrItem, __classPrivateFieldGet(this, _ContextClient_currentContext$, "f").value)) { | ||
__classPrivateFieldGet(this, _ContextClient_currentContext$, "f").next(idOrItem); | ||
@@ -43,0 +44,0 @@ } |
{ | ||
"name": "@equinor/fusion-framework-module-context", | ||
"version": "2.0.6", | ||
"version": "2.0.7-beta.0", | ||
"description": "", | ||
@@ -34,3 +34,4 @@ "main": "./dist/esm/index.js", | ||
"dependencies": { | ||
"@equinor/fusion-query": "^2.0.5" | ||
"@equinor/fusion-query": "^2.0.5", | ||
"fast-deep-equal": "^3.1.3" | ||
}, | ||
@@ -47,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "62bfdc6ccd6dcad4b1379a79b2529124a406f4cf" | ||
"gitHead": "8a1776230ab6b0176f41d875e91d1b18b5c2bc91" | ||
} |
import { Observable, BehaviorSubject, EMPTY } from 'rxjs'; | ||
import { catchError, map } from 'rxjs/operators'; | ||
import equal from 'fast-deep-equal'; | ||
import { Query, QueryCtorOptions } from '@equinor/fusion-query'; | ||
@@ -38,5 +40,5 @@ | ||
.pipe(catchError(() => EMPTY)) | ||
.subscribe((value) => this.#currentContext$.next(value)); | ||
.subscribe((value) => this.setCurrentContext(value)); | ||
/** only add context if not match */ | ||
} else if (idOrItem !== this.#currentContext$.value) { | ||
} else if (!equal(idOrItem, this.#currentContext$.value)) { | ||
this.#currentContext$.next(idOrItem); | ||
@@ -43,0 +45,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191603
1061
4
2
+ Addedfast-deep-equal@^3.1.3
+ Addedfast-deep-equal@3.1.3(transitive)