@equinor/fusion-framework-module-context
Advanced tools
Comparing version 0.3.4 to 0.4.0
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.4.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-context@0.3.4...@equinor/fusion-framework-module-context@0.4.0) (2022-11-14) | ||
### Features | ||
- update packages to use observable ([98024aa](https://github.com/equinor/fusion-framework/commit/98024aa466c68f03bd793bd564cf7b6bf65def72)) | ||
## 0.3.4 (2022-11-11) | ||
@@ -8,0 +14,0 @@ |
@@ -30,5 +30,2 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
} | ||
get status$() { | ||
return __classPrivateFieldGet(this, _ContextClient_client, "f").client.pipe(map((x) => x.status)); | ||
} | ||
get client() { | ||
@@ -35,0 +32,0 @@ return __classPrivateFieldGet(this, _ContextClient_client, "f"); |
@@ -11,3 +11,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { getContextSelector, queryContextSelector } from './selectors'; | ||
import { debounceTime } from 'rxjs/operators'; | ||
export class ContextModuleConfigurator { | ||
@@ -52,3 +51,2 @@ constructor() { | ||
key: (args) => JSON.stringify(args), | ||
queueOperator: (_) => ($) => $.pipe(debounceTime(250)), | ||
expire: this.defaultExpireTime, | ||
@@ -55,0 +53,0 @@ }, |
import { Observable } from 'rxjs'; | ||
import { Query, QueryCtorOptions } from '@equinor/fusion-observable/query'; | ||
import { QueryClientStatus } from '@equinor/fusion-observable/query/client'; | ||
import { ContextItem } from '../types'; | ||
@@ -15,3 +14,2 @@ export declare type ContextClientOptions = { | ||
get currentContext$(): Observable<ContextItem | undefined>; | ||
get status$(): Observable<QueryClientStatus>; | ||
get client(): Query<ContextItem, { | ||
@@ -18,0 +16,0 @@ id: string; |
{ | ||
"name": "@equinor/fusion-framework-module-context", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"description": "", | ||
@@ -36,4 +36,4 @@ "main": "./dist/esm/index.js", | ||
"@equinor/fusion-framework-module-event": "^1.1.4", | ||
"@equinor/fusion-framework-module-services": "^0.5.4", | ||
"@equinor/fusion-observable": "^1.3.1", | ||
"@equinor/fusion-framework-module-services": "^0.5.5", | ||
"@equinor/fusion-observable": "^1.4.0", | ||
"rxjs": "^7.5.7" | ||
@@ -46,3 +46,3 @@ }, | ||
}, | ||
"gitHead": "676b6bab4e586885185d21b14bd61f392e76f74d" | ||
"gitHead": "8d6faac0a36f2e1792e4112e362c6ce3cf98371e" | ||
} |
@@ -5,3 +5,2 @@ import { Observable, BehaviorSubject, EMPTY } from 'rxjs'; | ||
import { Query, QueryCtorOptions } from '@equinor/fusion-observable/query'; | ||
import { QueryClientStatus } from '@equinor/fusion-observable/query/client'; | ||
@@ -28,6 +27,2 @@ import { ContextItem } from '../types'; | ||
get status$(): Observable<QueryClientStatus> { | ||
return this.#client.client.pipe(map((x) => x.status)); | ||
} | ||
get client(): Query<ContextItem, { id: string }> { | ||
@@ -34,0 +29,0 @@ return this.#client; |
@@ -7,3 +7,2 @@ import { AnyModule, ModuleInitializerArgs } from '@equinor/fusion-framework-module'; | ||
import { getContextSelector, queryContextSelector } from './selectors'; | ||
import { debounceTime } from 'rxjs/operators'; | ||
@@ -76,3 +75,2 @@ export interface IContextModuleConfig { | ||
key: (args) => JSON.stringify(args), | ||
queueOperator: (_) => ($) => $.pipe(debounceTime(250)), | ||
expire: this.defaultExpireTime, | ||
@@ -79,0 +77,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
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
154225
773