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

@equinor/fusion-query

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-query - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

3

dist/esm/Query.js

@@ -46,3 +46,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

};
export class Query {
class Query {
get client() {

@@ -154,3 +154,4 @@ return __classPrivateFieldGet(this, _Query_client, "f");

Query.extractQueryValue = queryValue;
export { Query };
export default Query;
//# sourceMappingURL=Query.js.map

@@ -1,26 +0,3 @@

import type { CacheSortFn, QueryCacheRecord, QueryCacheStateData } from './types';
import { ActionBuilder } from './actions';
export default function <TType, TArgs>(actions: ActionBuilder<TType, TArgs>, initial?: QueryCacheStateData<TType, TArgs>): import("@equinor/fusion-observable").ReducerWithInitialState<QueryCacheStateData<TType, TArgs>, {
payload: string;
type: "cache/remove";
} | {
payload: string;
type: "cache/invalidate";
} | {
payload: {
key: string;
entry: {
value: TType;
args: TArgs;
transaction: string;
};
};
type: "cache/set";
} | {
payload: {
sort?: CacheSortFn<TType, TArgs> | undefined;
validate?: ((item: QueryCacheRecord<TType, TArgs>) => boolean) | undefined;
size?: number | undefined;
};
type: "cache/trim";
}>;
import type { QueryCacheStateData } from './types';
import { ActionBuilder, Actions } from './actions';
export default function <TType, TArgs>(actions: ActionBuilder<TType, TArgs>, initial?: QueryCacheStateData<TType, TArgs>): import("@equinor/fusion-observable").ReducerWithInitialState<QueryCacheStateData<TType, TArgs>, Actions<TType, TArgs>>;
import type { OperatorFunction } from 'rxjs';
import { QueryTaskCompleted, QueryTaskValue } from './types';
export declare const filterQueryTaskComplete: <TType, TArgs>() => OperatorFunction<QueryTaskValue<any, any>, QueryTaskCompleted<TType, TArgs>>;
export declare const filterQueryTaskComplete: <TType, TArgs>() => OperatorFunction<QueryTaskValue, QueryTaskCompleted<TType, TArgs>>;

@@ -29,4 +29,4 @@ import { Observable, Subject, Subscription } from 'rxjs';

complete(): void;
asObservable(): Observable<State<any, any>>;
asObservable(): Observable<State>;
}
export default QueryClient;
import type { State } from './types';
export declare const createReducer: (initial?: State) => import("@equinor/fusion-observable").ReducerWithInitialState<State<any, any>, import("@equinor/fusion-observable").AnyAction>;
export declare const createReducer: (initial?: State) => import("@equinor/fusion-observable").ReducerWithInitialState<State, import("@equinor/fusion-observable").AnyAction>;
export default createReducer;

@@ -5,5 +5,5 @@ import type { Observable } from 'rxjs';

import type { QueryQueueItem } from './types';
export declare const concatQueue: <TArgs, TType>(cb: (args: QueryQueueItem<TArgs, TType>) => Observable<QueryTaskValue<TType, any>>) => (source$: Observable<QueryQueueItem<TArgs, TType>>) => Observable<QueryTaskValue<TType, any>>;
export declare const mergeQueue: <TArgs, TType>(cb: (args: QueryQueueItem<TArgs, TType>) => Observable<QueryTaskValue<TType, any>>) => (source$: Observable<QueryQueueItem<TArgs, TType>>) => Observable<QueryTaskValue<TType, any>>;
export declare const switchQueue: <TArgs, TType>(cb: (args: QueryQueueItem<TArgs, TType>) => Observable<QueryTaskValue<TType, any>>) => (source$: Observable<QueryQueueItem<TArgs, TType>>) => Observable<QueryTaskValue<TType, any>>;
export declare const concatQueue: <TArgs, TType>(cb: (args: QueryQueueItem<TArgs, TType>) => Observable<QueryTaskValue<TType>>) => (source$: Observable<QueryQueueItem<TArgs, TType>>) => Observable<QueryTaskValue<TType>>;
export declare const mergeQueue: <TArgs, TType>(cb: (args: QueryQueueItem<TArgs, TType>) => Observable<QueryTaskValue<TType>>) => (source$: Observable<QueryQueueItem<TArgs, TType>>) => Observable<QueryTaskValue<TType>>;
export declare const switchQueue: <TArgs, TType>(cb: (args: QueryQueueItem<TArgs, TType>) => Observable<QueryTaskValue<TType>>) => (source$: Observable<QueryQueueItem<TArgs, TType>>) => Observable<QueryTaskValue<TType>>;
export declare const queryValue: <TType, TArgs>(source$: Observable<import("./types").QueryTaskCached<TType, TArgs> | import("./client").QueryTaskCompleted<TType, TArgs>>) => Observable<TType>;
{
"name": "@equinor/fusion-query",
"version": "3.0.2",
"version": "3.0.3",
"description": "WIP",

@@ -60,12 +60,12 @@ "keywords": [

"dependencies": {
"@equinor/fusion-observable": "^8.0.1",
"@equinor/fusion-observable": "^8.0.2",
"immer": "^9.0.16",
"rxjs": "^7.5.7",
"uuid": "^8.3.2"
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/react": "^17.0.2",
"@types/uuid": "^8.3.4",
"@types/uuid": "^9.0.2",
"react": "^17.0.2",
"typescript": "^4.9.3"
"typescript": "^5.0.4"
},

@@ -83,4 +83,3 @@ "peerDependencies": {

}
},
"gitHead": "4bb2b57a6b10b1805f3c1e428af237da669b1c26"
}
}

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