@amedia/user 0.14.23 → 0.14.25
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/user.d.ts +7 -3
- package/package.json +6 -6
package/dist/user.d.ts
CHANGED
|
@@ -585,15 +585,19 @@ declare module '@amedia/user/store/index' {
|
|
|
585
585
|
[index: string]: unknown;
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
|
-
|
|
588
|
+
internalState: {
|
|
589
|
+
isPoisoned: boolean;
|
|
590
|
+
};
|
|
589
591
|
};
|
|
590
592
|
type Listener<T> = (data: T) => void;
|
|
591
593
|
const _default: {
|
|
592
594
|
merge: <K extends keyof StoreDataMap>(key: K, value: Partial<StoreDataMap[K]>) => void;
|
|
593
|
-
set: (key: keyof StoreDataMap, value:
|
|
595
|
+
set: (key: keyof StoreDataMap, value: UserAttributes | State | {
|
|
594
596
|
[namespace: string]: {
|
|
595
597
|
[index: string]: unknown;
|
|
596
598
|
};
|
|
599
|
+
} | {
|
|
600
|
+
isPoisoned: boolean;
|
|
597
601
|
}) => void;
|
|
598
602
|
get: <K_1 extends keyof StoreDataMap, T = StoreDataMap[K_1]>(key: K_1) => T | undefined;
|
|
599
603
|
on: <K_2 extends keyof StoreDataMap, T_1 = StoreDataMap[K_2]>(key: K_2, listener: Listener<T_1>) => void;
|
|
@@ -681,7 +685,7 @@ declare module '@amedia/user/utils/debouncer' {
|
|
|
681
685
|
constructor(timeoutMs: number, defaultParams: ParamsType, paramAccumulator: (previousParams: ParamsType, newParams: ParamsType) => ParamsType, workload: (params: ParamsType) => Promise<ResultType>);
|
|
682
686
|
perform(newParams: ParamsType): Promise<ResultType>;
|
|
683
687
|
static stringListParamsAccumulator(accumulatedParams: string[], newParams: string[]): string[];
|
|
684
|
-
static stringMapParamsAccumulator(previousParams: Record<string, any>, newParams: Record<string, any>):
|
|
688
|
+
static stringMapParamsAccumulator(previousParams: Record<string, any>, newParams: Record<string, any>): any;
|
|
685
689
|
}
|
|
686
690
|
export default Debouncer;
|
|
687
691
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/user",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.25",
|
|
4
4
|
"description": "Client lib for working with aID user and associated data",
|
|
5
5
|
"repository": "https://github.com/amedia/amedia-user-js",
|
|
6
6
|
"author": "Amedia Utvikling (ID og data)",
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"@types/convict": "^6.1.1",
|
|
44
44
|
"@types/jest": "^27.4.0",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
|
46
|
-
"@typescript-eslint/parser": "^5.10.
|
|
46
|
+
"@typescript-eslint/parser": "^5.10.1",
|
|
47
47
|
"cors": "^2.8.5",
|
|
48
|
-
"esbuild": "^0.14.
|
|
48
|
+
"esbuild": "^0.14.13",
|
|
49
49
|
"eslint": "^8.6.0",
|
|
50
50
|
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
51
51
|
"eslint-config-prettier": "^8.3.0",
|
|
52
52
|
"eslint-plugin-import": "^2.25.4",
|
|
53
53
|
"eslint-plugin-prettier": "^4.0.0",
|
|
54
54
|
"express": "^4.17.2",
|
|
55
|
-
"jest": "^27.4.
|
|
55
|
+
"jest": "^27.4.7",
|
|
56
56
|
"jest-extended": "^1.2.0",
|
|
57
57
|
"jest-fetch-mock": "^3.0.3",
|
|
58
58
|
"mockdate": "^3.0.5",
|
|
59
59
|
"npm-dts": "^1.3.10",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"prettier": "^2.5.1",
|
|
62
|
-
"ts-jest": "^27.1.
|
|
62
|
+
"ts-jest": "^27.1.3",
|
|
63
63
|
"tslib": "^2.3.1",
|
|
64
|
-
"typescript": "^4.5.
|
|
64
|
+
"typescript": "^4.5.5"
|
|
65
65
|
}
|
|
66
66
|
}
|