Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@equinor/fusion-framework-module-context

Package Overview
Dependencies
Maintainers
4
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-framework-module-context - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7-beta.0

5

dist/esm/client/ContextClient.js

@@ -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 @@ }

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc