@genesislcap/foundation-utils 14.102.0 → 14.103.0-auth-mf.23
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/custom-elements.json +5 -0
- package/dist/dts/error/errorMap.d.ts +5 -1
- package/dist/dts/error/errorMap.d.ts.map +1 -1
- package/dist/dts/observer/observer.d.ts +1 -0
- package/dist/dts/observer/observer.d.ts.map +1 -1
- package/dist/esm/error/errorMap.js +6 -0
- package/dist/foundation-utils.api.json +47 -2
- package/dist/foundation-utils.d.ts +6 -1
- package/docs/api/foundation-utils.defaulterrormap.md +1 -0
- package/docs/api/foundation-utils.defaulterrormap.values.md +16 -0
- package/docs/api/foundation-utils.errormap.md +2 -2
- package/docs/api-report.md +3 -1
- package/package.json +5 -5
|
@@ -9,7 +9,7 @@ export type ErrorMapLogger = (...args: any[]) => void;
|
|
|
9
9
|
/**
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size'> {
|
|
12
|
+
export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size' | 'values'> {
|
|
13
13
|
/**
|
|
14
14
|
* Error map as messages.
|
|
15
15
|
* @returns string
|
|
@@ -83,6 +83,10 @@ export declare class DefaultErrorMap<TErrorDetailMap extends ErrorDetailMap> imp
|
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
85
85
|
get size(): number;
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
values(): IterableIterator<Error>;
|
|
86
90
|
/** {@inheritDoc ErrorMap.messages} */
|
|
87
91
|
get messages(): string;
|
|
88
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorMap.d.ts","sourceRoot":"","sources":["../../../src/error/errorMap.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,eAAe,SAAS,cAAc,CAC9D,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"errorMap.d.ts","sourceRoot":"","sources":["../../../src/error/errorMap.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,eAAe,SAAS,cAAc,CAC9D,SAAQ,IAAI,CACV,GAAG,CAAC,MAAM,eAAe,EAAE,KAAK,CAAC,EACjC,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CACvD;IACD;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,eAAe,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAEpD;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;CAC3B;AAED;;GAEG;AACH,qBAAa,eAAe,CAAC,eAAe,SAAS,cAAc,CACjE,YAAW,QAAQ,CAAC,eAAe,CAAC;IAUxB,OAAO,CAAC,MAAM;IARd,OAAO,CAAC,GAAG,CAA2C;IAElE,uCAAuC;IAC3B,SAAS,EAAE,KAAK,CAAC;IAE7B;;OAEG;gBACiB,MAAM,EAAE,cAAc;IAE1C,iCAAiC;IACjC,GAAG,CAAC,GAAG,EAAE,MAAM,eAAe,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAMnD;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,eAAe,GAAG,KAAK,GAAG,SAAS;IAIlD;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,eAAe,GAAG,OAAO;IAIxC;;;;;;OAMG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,eAAe,GAAG,OAAO;IAa3C;;;OAGG;IACH,KAAK;IAKL;;;;;OAKG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,MAAM;IAIN,sCAAsC;IACtC,IAAI,QAAQ,IAAI,MAAM,CAUrB;CACF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mDACjB,cAAc,8BACoD,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export type Listener<EventType> = (ev: EventType) => void;
|
|
6
6
|
/**
|
|
7
7
|
* Subscribes a listener function to receive events of a specific type.
|
|
8
|
+
* @returns An unsubscribe function.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
export type Subscribe<EventType> = (listener: Listener<EventType>) => () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/observer/observer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;AAC1D
|
|
1
|
+
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/observer/observer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;AAC1D;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,KAAK,MAAM,IAAI,CAAC;AACjF;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,QAAQ,CAAC,SAAS;IACjC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sCAW1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YAAa,WAAW,mBAAmB,OAAO,KAAK,GAAG,SAYzF,CAAC"}
|
|
@@ -2109,6 +2109,51 @@
|
|
|
2109
2109
|
"isStatic": false,
|
|
2110
2110
|
"isProtected": false,
|
|
2111
2111
|
"isAbstract": false
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"kind": "Method",
|
|
2115
|
+
"canonicalReference": "@genesislcap/foundation-utils!DefaultErrorMap#values:member(1)",
|
|
2116
|
+
"docComment": "/**\n * @public\n */\n",
|
|
2117
|
+
"excerptTokens": [
|
|
2118
|
+
{
|
|
2119
|
+
"kind": "Content",
|
|
2120
|
+
"text": "values(): "
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"kind": "Reference",
|
|
2124
|
+
"text": "IterableIterator",
|
|
2125
|
+
"canonicalReference": "!IterableIterator:interface"
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
"kind": "Content",
|
|
2129
|
+
"text": "<"
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
"kind": "Reference",
|
|
2133
|
+
"text": "Error",
|
|
2134
|
+
"canonicalReference": "!Error:interface"
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"kind": "Content",
|
|
2138
|
+
"text": ">"
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"kind": "Content",
|
|
2142
|
+
"text": ";"
|
|
2143
|
+
}
|
|
2144
|
+
],
|
|
2145
|
+
"isStatic": false,
|
|
2146
|
+
"returnTypeTokenRange": {
|
|
2147
|
+
"startIndex": 1,
|
|
2148
|
+
"endIndex": 5
|
|
2149
|
+
},
|
|
2150
|
+
"releaseTag": "Public",
|
|
2151
|
+
"isProtected": false,
|
|
2152
|
+
"overloadIndex": 1,
|
|
2153
|
+
"parameters": [],
|
|
2154
|
+
"isOptional": false,
|
|
2155
|
+
"isAbstract": false,
|
|
2156
|
+
"name": "values"
|
|
2112
2157
|
}
|
|
2113
2158
|
],
|
|
2114
2159
|
"implementsTokenRanges": [
|
|
@@ -2730,7 +2775,7 @@
|
|
|
2730
2775
|
},
|
|
2731
2776
|
{
|
|
2732
2777
|
"kind": "Content",
|
|
2733
|
-
"text": ">, 'get' | 'has' | 'delete' | 'clear' | 'size'>"
|
|
2778
|
+
"text": ">, 'get' | 'has' | 'delete' | 'clear' | 'size' | 'values'>"
|
|
2734
2779
|
},
|
|
2735
2780
|
{
|
|
2736
2781
|
"kind": "Content",
|
|
@@ -11863,7 +11908,7 @@
|
|
|
11863
11908
|
{
|
|
11864
11909
|
"kind": "TypeAlias",
|
|
11865
11910
|
"canonicalReference": "@genesislcap/foundation-utils!Subscribe:type",
|
|
11866
|
-
"docComment": "/**\n * Subscribes a listener function to receive events of a specific type.\n *\n * @public\n */\n",
|
|
11911
|
+
"docComment": "/**\n * Subscribes a listener function to receive events of a specific type.\n *\n * @returns An unsubscribe function.\n *\n * @public\n */\n",
|
|
11867
11912
|
"excerptTokens": [
|
|
11868
11913
|
{
|
|
11869
11914
|
"kind": "Content",
|
|
@@ -220,6 +220,10 @@ export declare class DefaultErrorMap<TErrorDetailMap extends ErrorDetailMap> imp
|
|
|
220
220
|
* @public
|
|
221
221
|
*/
|
|
222
222
|
get size(): number;
|
|
223
|
+
/**
|
|
224
|
+
* @public
|
|
225
|
+
*/
|
|
226
|
+
values(): IterableIterator<Error>;
|
|
223
227
|
/** {@inheritDoc ErrorMap.messages} */
|
|
224
228
|
get messages(): string;
|
|
225
229
|
}
|
|
@@ -301,7 +305,7 @@ export declare type ErrorDetailMap = Record<string, unknown>;
|
|
|
301
305
|
/**
|
|
302
306
|
* @public
|
|
303
307
|
*/
|
|
304
|
-
export declare interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size'> {
|
|
308
|
+
export declare interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size' | 'values'> {
|
|
305
309
|
/**
|
|
306
310
|
* Error map as messages.
|
|
307
311
|
* @returns string
|
|
@@ -1592,6 +1596,7 @@ export declare let SOCKET_EXT: string;
|
|
|
1592
1596
|
|
|
1593
1597
|
/**
|
|
1594
1598
|
* Subscribes a listener function to receive events of a specific type.
|
|
1599
|
+
* @returns An unsubscribe function.
|
|
1595
1600
|
* @public
|
|
1596
1601
|
*/
|
|
1597
1602
|
export declare type Subscribe<EventType> = (listener: Listener<EventType>) => () => void;
|
|
@@ -35,4 +35,5 @@ export declare class DefaultErrorMap<TErrorDetailMap extends ErrorDetailMap> imp
|
|
|
35
35
|
| [get(key)](./foundation-utils.defaulterrormap.get.md) | | Get an error by key. |
|
|
36
36
|
| [has(key)](./foundation-utils.defaulterrormap.has.md) | | Has an error for key. |
|
|
37
37
|
| [set(key, error)](./foundation-utils.defaulterrormap.set.md) | | Set an error by key. |
|
|
38
|
+
| [values()](./foundation-utils.defaulterrormap.values.md) | | |
|
|
38
39
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [DefaultErrorMap](./foundation-utils.defaulterrormap.md) > [values](./foundation-utils.defaulterrormap.values.md)
|
|
4
|
+
|
|
5
|
+
## DefaultErrorMap.values() method
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
values(): IterableIterator<Error>;
|
|
12
|
+
```
|
|
13
|
+
**Returns:**
|
|
14
|
+
|
|
15
|
+
IterableIterator<Error>
|
|
16
|
+
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
**Signature:**
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size'>
|
|
11
|
+
export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size' | 'values'>
|
|
12
12
|
```
|
|
13
|
-
**Extends:** Pick<Map<keyof TErrorDetailMap, Error>, 'get' \| 'has' \| 'delete' \| 'clear' \| 'size'>
|
|
13
|
+
**Extends:** Pick<Map<keyof TErrorDetailMap, Error>, 'get' \| 'has' \| 'delete' \| 'clear' \| 'size' \| 'values'>
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
package/docs/api-report.md
CHANGED
|
@@ -144,6 +144,8 @@ export class DefaultErrorMap<TErrorDetailMap extends ErrorDetailMap> implements
|
|
|
144
144
|
get messages(): string;
|
|
145
145
|
set(key: keyof TErrorDetailMap, error: Error): void;
|
|
146
146
|
get size(): number;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
values(): IterableIterator<Error>;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
// @public
|
|
@@ -193,7 +195,7 @@ export interface DTOMapper<TDTO, TEntity> {
|
|
|
193
195
|
export type ErrorDetailMap = Record<string, unknown>;
|
|
194
196
|
|
|
195
197
|
// @public (undocumented)
|
|
196
|
-
export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size'> {
|
|
198
|
+
export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size' | 'values'> {
|
|
197
199
|
readonly lastError: Error;
|
|
198
200
|
readonly messages: string;
|
|
199
201
|
set(key: keyof TErrorDetailMap, error: Error): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.103.0-auth-mf.23",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"test": "genx test"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@genesislcap/foundation-testing": "14.
|
|
23
|
-
"@genesislcap/genx": "14.
|
|
22
|
+
"@genesislcap/foundation-testing": "14.103.0-auth-mf.23",
|
|
23
|
+
"@genesislcap/genx": "14.103.0-auth-mf.23",
|
|
24
24
|
"rimraf": "^3.0.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@genesislcap/foundation-logger": "14.
|
|
27
|
+
"@genesislcap/foundation-logger": "14.103.0-auth-mf.23",
|
|
28
28
|
"@microsoft/fast-components": "^2.21.3",
|
|
29
29
|
"@microsoft/fast-element": "^1.7.0",
|
|
30
30
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"customElements": "dist/custom-elements.json",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "66e311fb26ce45f26e0083e7075e73948e1765e9"
|
|
46
46
|
}
|